-
Notifications
You must be signed in to change notification settings - Fork 652
Run examples
The base examples (you can change parameters and use advanced options):
- Mouse tracking example:
MultitargetTracker.exe -e=0 -o=res_mouse.mp4
- Motion detector with background/foreground segmentation:
MultitargetTracker.exe ../../data/atrium.avi -e=1 -a=0 -o=res_bgfg.mp4
- Haar face detection and tracking:
MultitargetTracker.exe ../../data/smuglanka.mp4 -e=2 -a=0 -o=res_face.mp4
- HOG pedestrian detection and tracking:
MultitargetTracker.exe ../../data/atrium.avi -e=3 -a=0 -o=res_pedestrians.mp4
- MobileNet detector with opencv_dnn backend. MobileNetSSD weights you must download manually and set paths to cfg and weight file in examples.h in SSDMobileNetExample::InitDetector method:
MultitargetTracker.exe ../../data/atrium.avi -e=4 -a=0 -o=res_ocvdnn_mobilenet.mp4
- YOLO detector with opencv_dnn backend. YOLO weights you must download manually and set paths to cfg and weight file in examples.h in YoloExample::InitDetector method:
MultitargetTracker.exe ../../data/atrium.avi -e=5 -a=0 -o=res_ocvdnn_yolo.mp4
- YOLO detector with Darknet backend (build project with -DBUILD_YOLO_LIB=ON). YOLO weights you must download manually and set paths to cfg and weight file in examples.h in YoloDarknetExample::InitDetector method:
MultitargetTracker.exe ../../data/atrium.avi -e=6 -a=0 -o=res_darknet_yolo.mp4
- YOLO detector with TensorRT backend (build project with -DBUILD_YOLO_TENSORRT=ON). YOLO weights you must download manually and set paths to cfg and weight file in examples.h in YoloTensorRTExample::InitDetector method:
MultitargetTracker.exe ../../data/atrium.avi -e=7 -a=0 -o=res_tensorrt_yolo.mp4
- CarsCounting example works with:
- YOLO network and Darknet backend (build project with -DBUILD_CARS_COUNTING=ON -DBUILD_YOLO_LIB=ON): -inf=darknet
- any NN and opencv_dnn backend: -inf=ocvdnn YOLO weights you must download manually and set paths to cfg and weight file in CarsCounting.cpp in CarsCounting::InitTracker method. Lines configuration in cars_counting/main.cpp by cars_counting.AddLine:
CarsCounting.exe video_with_traffic.mp4 -o=cars_count_speed.avi -w="../../data/yolov3.weights" -c="../../data/yolov3.cfg" -n="../../data/coco.names" -inf=darknet
- AsyncDetector also works with YOLO network and Darknet backend (build project with -DBUILD_ASYNC_DETECTOR=ON -DBUILD_YOLO_LIB=ON). YOLO weights you must download manually and set paths to cfg and weight file in AsyncDetector.cpp in AsyncDetector::CaptureThread method:
AsyncDetector.exe ../../data/atrium.avi -g=0