intel-iot-devkit / people-counter-cpp

Create a smart video application using the Intel Distribution of OpenVINO toolkit. The toolkit uses models and inference to run single-class object detection.
https://software.intel.com/content/www/us/en/develop/topics/iot/reference-implementations/people-counter-system.html
BSD 3-Clause "New" or "Revised" License
71 stars 28 forks source link

Not able to see video in demo #1

Open gangooteli opened 6 years ago

gangooteli commented 6 years ago

In People-counter demo, I am not able to see visual. In object detection, there is not option to pass input as a camera. Only path of video can be passed.

Below is the command I am running. ./obj_recognition -i Pedestrain_Detect_2_1_1.mp4 -m /opt/intel/computer_vision_sdk/deployment_tools/intel_models/person-detection-retail-0013/FP32/person-detection-retail-0013.xml -l /opt/intel/computer_vision_sdk/deployment_tools/intel_models/person-detection-retail-0013/FP32/person-detection-retail-0013.bin -t SSD -thresh 0.7 -d CPU 0 2>/dev/null | ffmpeg -v warning -f rawvideo -pixel_format bgr24 -video_size 544x320 -i - http://localhost:8090/fac.ffm

I am only able to see people count. The processed video is not visible.

Running without argument i gives below error: ERROR: image(s) for inference - not set

Can we run this demo for camera setup? Please help !!

Propanu commented 6 years ago

Hi @gangooteli, if I remember correctly you can pass a v4l camera device number to the input flag, e.g. -i 0 with this demo. The video not displaying seems like an issue with ffserver. Try opening the stream directly with ffplay or vlc to see if this is indeed a server configuration issue or something to do with the browser.

saket424 commented 5 years ago

For v4l2 the following syntax worked ./obj_recognition -i /dev/video0 -m /opt/intel/computer_vision_sdk/deployment_tools/intel_models/person-detection-retail-0013/FP32/person-detection-retail-0013.xml -l /opt/intel/computer_vision_sdk/deployment_tools/intel_models/person-detection-retail-0013/FP32/person-detection-retail-0013.bin -t SSD -thresh 0.7 -d CPU 0 2>/dev/null | ffmpeg -v warning -f rawvideo -pixel_format bgr24 -video_size 544x320 -i - http://localhost:8090/fac.ffm