Skip to content

Suggestion for instruction improvements #21

@timint

Description

@timint

Hi, appreciate the availability of this work and the hours put into it.

I had some things that (might be obvious for some but) I was missing a few parts in the instructions.
The following packages are key for proceeding with the rest of the instructions: make, cmake, build-essential, and git.

I am suggesting the following changes. Added in an all in one shell script for less hassle:

# Install packages
sudo apt update
sudo apt install -y make cmake build-essential git ffmpeg libopencv-dev wget

# Clone the project to drive
git clone https://github.com/alsoc/fmdt.git fmdt

# Step into the cloned project directory
cd fmdt

# Install git submodules (ffmpeg-io, nrc2, c-vector and streampu)
git submodule update --init --recursive

# Compile the software using CMake
mkdir build
cd build
cmake .. -DFMDT_OPENCV_LINK=ON -DFMDT_SPU_RUNTIME=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O3 -g" -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O3 -g" -DCMAKE_CXX_FLAGS="-Wall -funroll-loops -fstrict-aliasing -march=native" -DCMAKE_C_FLAGS="-funroll-loops -fstrict-aliasing -march=native"
make -j4
mv bin/ ../
cd ..

# Download the sample video
mkdir sample
cd sample
wget https://perso.lip6.fr/adrien.cassagne/data/tauh/in/2022_05_31_tauh_34_meteors.mp4

# Try to detect meteors in the sample video
../bin/fmdt-detect --vid-in-path 2022_05_31_tauh_34_meteors.mp4 --log-path detect_log --trk-roi-path tracks_2_rois.txt
../bin/fmdt-log-parser --log-path ./detect_log --trk-roi-path ./tracks_2_rois.txt --trk-path ./out_detect_tracks.txt --trk-bb-path ../out_detect_bb.txt

# Run the visualization tool to output a video sequence with highlighted detection:
../bin/fmdt-visu --vid-in-path 2022_05_31_tauh_34_meteors.mp4 --trk-path out_detect_tracks.txt --trk-bb-path out_detect_bb.txt --vid-out-path out_visu.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions