Skip to content

How do I stream the output of a webcam on a YARP port? #104

Answered by traversaro
traversaro asked this question in Q&A
Discussion options

You must be logged in to vote

If your webcam is supported by OpenCV, you can easily stream it on a YARP network using the opencv_grabber device. [1] [2]

First, make sure that you compiled YARP with OpenCV support, by making sure that the YARP_USE_OPENCV CMake advanced option is setted to ON.

Then you can check if the opencv_grabber device is available on your machine by using the yarpdev --list command.

If it is not available, you should enable its compilation in YARP by enabling the CREATE_DEVICE_LIBRARY_MODULES CMake option and then the ENABLE_yarpmod_opencv_grabber CMake option. After you enabled it, compile (and install, if you usually do install) YARP. Now you should find the opencv_grabber when you type yarpdev …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pattacini
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #104 on December 08, 2020 17:12.