/object-detection-inference

Object detection inference from rtsp ip camera stream using gstreamer

Primary LanguageC++MIT LicenseMIT

Object detection inference from IP camera RTSP and video stream using GStreamer HW acceleration and OpenCV

Dependencies

  • GStreamer 1.18.5-1 and OpenCV 4.5.1

To Build and Compile

  • mkdir build
  • cd build
  • cmake ..
  • make

Running object detection with yolov4

./object-detection-inference --type=yolov4(or yolov4-tiny) --min_confidence=0.6 --link="rtsp://cameraip:port/somelivefeed"  

Running object detection with Mobilenet SSD using Caffe framework

./object-detection-inference --type=mobilenet --min_confidence=CONF_VALUE(for example 0.6) --link="rtsp://cameraip:port/somelivefeed"  

Running with HoG + SVM People Detector

./object-detection-inference --type=svm --link="rtsp://cameraip:port/somelivefeed"

To check all available options:

./object-detection-inference --help

TO DO

  • Planning to restore and update inference on tensorflow models from object detection API
  • Inference on pytorch models from torchvision object detection API
  • Add support for inference with onnxruntime, openvino and tensorrt
  • Multi-object Tracking (Sort?)

References