Smorodov / Multitarget-tracker

Multiple Object Tracker, Based on Hungarian algorithm + Kalman filter.
Apache License 2.0
2.2k stars 652 forks source link

Point tracking, exe execution bug! #429

Open weihongwei-zg opened 1 year ago

weihongwei-zg commented 1 year ago

root@4a48baf3e279:/home/radar_calibration_track/track_cpp/Multitarget-tracker/build# ./MultitargetTracker -e=0 -o=res_mouse.mp4

Examples of the Multitarget tracking algorithm Usage: ./MultitargetTracker [--example]=<number of example 0..7> [--start_frame]= [--end_frame]= [--end_delay]= [--out]= [--show_logs]= [--async]= [--res]= [--settings]= [--batch_size=]

Press: 'm' key for change mode: play|pause. When video is paused you can press any key for get next frame.

Press Esc to exit from video

Usage: MultitargetTracker [params] 1

    -a, --async (value:1)
            Use 2 theads for processing pipeline
    --batch_size, --bs (value:1)
            Batch size - frames count for processing
    --cvat_res
            Path to the xml file in cvat format with tracking result
    -e, --example (value:0)
            number of example 0 - MouseTracking, 1 - MotionDetector, 2 - FaceDetector, 3 - PedestrianDetector, 4 - OpenCV dnn objects detector, 5 - YOLO Darknet detector, 6 - YOLO TensorRT Detector, 7 - Cars counting
    --ed, --end_delay (value:0)
            Delay in milliseconds after video ending
    --ef, --end_frame (value:0)
            Play a video to this position (if 0 then played to the end of file)
    -g, --gpu (value:0)
            Use OpenCL acceleration
    --geo_bind (value:geo_bind.ini)
            For CarsCounting: ini file with geographical binding
    --heat_map, --hm (value:0)
            For CarsCounting: Draw heat map
    --log_res, -r
            Path to the csv file with tracking result
    -o, --out (value:res_mouse.mp4)
            Name of result video file
    -s, --settings
            Path to the ini file with tracking settings
    --sf, --start_frame (value:0)
            Start a video from this position
    --show_logs, --sl (value:1)
            Show Trackers logs
    --wf, --write_n_frame (value:1)
            Write logs on each N frame: 1 for writing each frame

    1 (value:../data/atrium.avi)
            movie file

OpenCL not used OpenCV: FFMPEG: tag 0x314d4950/'PIM1' is not supported with codec id 1 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v' 4 MultitargetTracker: /home/radar_calibration_track/track_cpp/Multitarget-tracker/src/Tracker/Ctracker.cpp:574: void CTracker::CreateDistaceMatrix(const regions_t&, const std::vector&, distMatrix_t&, track_t, track_t&): Assertion `0' failed. Aborted

weihongwei-zg commented 1 year ago

May I ask how to solve it?

Nuzhny007 commented 1 year ago

Sorry for the long answer, fixed: https://github.com/Smorodov/Multitarget-tracker/pull/431