Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dengyu
Beginner
80 Views

Cannot use pi4 camera V2 for real-time object detection。

Jump to solution

pi@raspberrypi:~/open_model_zoo/demos/object_detection_demo/python $ python3 object_detection_demo.py -m person-vehicle-bike-detection-2001.xml -at ssd -d MYRIAD -i cam
/usr/lib/python3/dist-packages/scipy/linalg/__init__.py:212: DeprecationWarning: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.
from numpy.dual import register_func
/usr/lib/python3/dist-packages/scipy/special/orthogonal.py:81: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
from numpy import (exp, inf, pi, sqrt, floor, sin, cos, around, int,
/home/pi/openvino_dist/python/python3.7/ngraph/utils/types.py:37: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
(NgraphType.boolean, np.bool),
[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
[ INFO ] Use SingleOutputParser
[ INFO ] Loading network to MYRIAD plugin...
[ERROR:0] global /home/pi/opencv/modules/videoio/src/cap.cpp (162) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.2) /home/pi/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): cam in function 'icvExtractPattern'


Can't find the image by cam
Can't find the dir by cam
Can't open the video from cam
Can't find the camera cam

The camera confirms that there is no problem,please help me。

0 Kudos
1 Solution
Wan_Intel
Moderator
50 Views

Hi Dengyu,

 

Thanks for reaching out to us.

 

The command for this object_detection_demo.py should be:

python3 object_detection_demo.py -m person-vehicle-bike-detection-2001.xml -at ssd -d MYRIAD -i 0

 

You may get all these parameters from the link below:

https://github.com/openvinotoolkit/open_model_zoo/blob/master/demos/object_detection_demo/python/REA...

 

 

Regards,

Wan

 

View solution in original post

2 Replies
Wan_Intel
Moderator
51 Views

Hi Dengyu,

 

Thanks for reaching out to us.

 

The command for this object_detection_demo.py should be:

python3 object_detection_demo.py -m person-vehicle-bike-detection-2001.xml -at ssd -d MYRIAD -i 0

 

You may get all these parameters from the link below:

https://github.com/openvinotoolkit/open_model_zoo/blob/master/demos/object_detection_demo/python/REA...

 

 

Regards,

Wan

 

View solution in original post

Wan_Intel
Moderator
33 Views

Hi Dengyu,


This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.



Regards,

Wan


Reply