Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

Text Detection Demo with Webcam on Windows

Peter1
Beginner
190 Views

Am trying to run the text_dectection_demo application on a Windows machine. However, it is not clear what should go in the -i flag, as there is no /dev/video0 on Windows, and thus the application reads this as a (missing) image. Equally, using -i cam , as in some of the other demos, does not work. Tried to look at the source code, but got then lost in the OpenCV sources. 

Am using the following command line :

text_detection_demo -m_td FP32/text-detection-0004.xml -m_tr FP32/text-recognition-0012.xml -dt webcam -i ???

Any help would be greatly appreciated. 

 

0 Kudos
1 Reply
Shubha_R_Intel
Employee
190 Views

Dear Peter,

Please review The Text Detection Demo Doc for details. As this is a forum focused on OpenVino (Model Optimizer and Inference Engine) please ask OpenCV related questions on the following forum:

https://answers.opencv.org/questions/

Look at the Smart Classroom Demo for an example of how the WebCam is accessed on Windows. Kindly study the image_grabber.cpp file. It's a simple matter of :

 if (fname == "cam") {
        is_opened = cap.open(0);
    } else {
        is_opened = cap.open(fname);
    }

Hope it helps,

Thanks,

Shubha

Reply