Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6506 Discussions

openvino demos, webcam input for windows

erasmus
Beginner
1,546 Views

Anyone running 2021.2 Openvino demos on windows?

-i  cam does not appear to work now????

 

(cnnwork) Sun_ C:\repo\omz_demo21\intel64\Release\object_detection_demo.exe -i cam -at yolo -m C:\repo\OpenVINO-YoloV3\frozen_yolo_v3.xml -d MYRIAD

 

[ INFO ] InferenceEngine: API version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
[ INFO ] Parsing input parameters
[ INFO ] Reading input
MFX: Unsupported extension: cam
[ERROR:0] global C:\jenkins\workspace\OpenCV\OpenVINO\2021.2\build\windows\opencv\modules\videoio\src\cap.cpp (142) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.1-openvino) C:\jenkins\workspace\OpenCV\OpenVINO\2021.2\build\windows\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 'cv::icvExtractPattern'


[ ERROR ] [ ERROR ] Can't read cam

 

 

 

0 Kudos
1 Solution
erasmus
Beginner
1,540 Views

camera input appears to work now with just a number on windows...

 

(cnnwork) Sun_ C:\repo\omz_demo21\intel64\Release\object_detection_demo.exe -i 0 -at yolo -m C:\repo\OpenVINO-YoloV3\frozen_yolo_v3.xml -d MYRIAD -loop 1000
[ INFO ] InferenceEngine: API version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading Inference Engine
[ INFO ] Device info:
[ INFO ] MYRIAD
myriadPlugin version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
Loading network files
[ INFO ] Batch size is forced to 1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device

[ INFO ] Metric reports:
Latency: 507.6 ms
FPS: 14.8

View solution in original post

0 Kudos
2 Replies
erasmus
Beginner
1,541 Views

camera input appears to work now with just a number on windows...

 

(cnnwork) Sun_ C:\repo\omz_demo21\intel64\Release\object_detection_demo.exe -i 0 -at yolo -m C:\repo\OpenVINO-YoloV3\frozen_yolo_v3.xml -d MYRIAD -loop 1000
[ INFO ] InferenceEngine: API version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading Inference Engine
[ INFO ] Device info:
[ INFO ] MYRIAD
myriadPlugin version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
Loading network files
[ INFO ] Batch size is forced to 1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device

[ INFO ] Metric reports:
Latency: 507.6 ms
FPS: 14.8

0 Kudos
IntelSupport
Community Manager
1,517 Views

Hi Erasmus,

We glad that you are able to solve the issue, and thank you for sharing the solution. I will mark your answer as the solution. For certain Openvino demos you have to specify the camera input flag as -i 0 or -i cam depends on the samples that you are running. Both of the flags have the same function depending on the sample. Before running the application, you can run the application with the -h option to see the usage message for the demo application. This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.

Regards,

Aznie

 

0 Kudos
Reply