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.

How to run OpenVino sample with IP Webcam?

vinsonlau99
Beginner
2,038 Views

Hello guys, may I know is it possible to run OpenVino samples with IP Webcam installed in our phone? If yes, may I know how to do it? I couldn't find any video that is specifically for running samples of OpenVino so I am trying to request some assistance here. For example, I am currently trying on the interactive face detection demo and successfully run with offline video and my laptop's camera but no idea on how to run on phone's IP Webcam. 

Thanks in advance!

0 Kudos
7 Replies
Maksim_S_Intel
Employee
2,038 Views

Samples in OpenVINO use OpenCV library to read video streams, so it should be possible. See https://stackoverflow.com/questions/49978705/access-ip-camera-in-python-opencv

0 Kudos
Calincan
Novice
1,715 Views
For Ubuntu os, how can be solved this issue?
0 Kudos
Munesh_Intel
Moderator
2,038 Views

Hi Vinson,

Yes, you may specify IP Webcam as input video source by using RTSP URL via addition of -i parameter to the command line as follows:

-i rtsp://camera_address_1/ rtsp://camera_address_2/

 

More information is available at the following pages:

  • Interactive Face Detection C++ Demo

           Link: https://docs.openvinotoolkit.org/2020.2/_demos_interactive_face_detection_demo_README.html

 

  • Multi-Channel Face Detection C++ Demo

           Link: https://docs.openvinotoolkit.org/2020.2/_demos_multi_channel_face_detection_demo_README.html#input_video_sources

 

And here are three videos that will be helpful to you:

  • Intel Pre-Trained DL Models | OpenVINO™ toolkit | Ep. 20 | Intel Software

           Link: https://www.youtube.com/watch?v=4LAAjEzh2nU

 

  • Interactive Face Detection Demo | OpenVINO™ toolkit | Ep. 21 | Intel Software

           Link: https://www.youtube.com/watch?v=HEntm0TUqM8

 

  • Multi-Video-Channels Face Detection Demo | OpenVINO™ toolkit | Ep. 22 | Intel Software

           Link: https://www.youtube.com/watch?v=2G6uSHPFP-Q

 

Regards,

Munesh

0 Kudos
vinsonlau99
Beginner
2,038 Views

@Maksim Thanks, I will take a look on it.
@Munesh, if i wanted to run interactive_face_detection_demo, can you see if my command is correct especially the -i part?

What I inserted: interactive_face_detection_demo.exe -i rtsp://192.168.1.102:8080 -m face-detection-adas-0001.xml -m-ag age-gender-recognition-retail-0013.xml -m_hp head-pose-estimation-adas-0001.xml -m_em emotions-recognition-retail-0003.xml -m_lm facial-landmarks-35-adas-0002.xml

My camera address using IP Webcam is 192.168.1.102:8080, but when i insert the command as above, it gives me an error

0 Kudos
Munesh_Intel
Moderator
2,038 Views

Hi Vinson,

Please share your error details, as well as your environment details (versions of OS, OpenVINO, Python, OpenCV, CMake, etc.)

 

Regards,

Munesh

0 Kudos
vinsonlau99
Beginner
2,038 Views

This is the error details:Unsupported extension.jpgI am currently using:

- Windows 10 (64-bit Operating System, x64-based processor)

- OpenVino 2020.2

- Python 3.6.3

- OpenCV 4.2.0-openvino

- CMake 3.17.0

 

 

 

0 Kudos
Munesh_Intel
Moderator
2,038 Views

Hi Vinson,

  1. Download the FFmpeg wrapper by running PowerShell script located in the opencv directory.

       2.  For the -i parameter, I would suggest you rearrange your rtsp command to the following https command:

            -i “https://username:password@ipaddress:port/video”

       3.  The following article will walk you through setting up and running the Interactive Face Detection Demo on Windows.

            Link: https://software.intel.com/content/www/us/en/develop/articles/interactive-face-detection-demo-microsoft-windows.html

 

Regards,

Munesh

0 Kudos
Reply