How do I stream the output of a webcam on a YARP port? #104
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
If your webcam is supported by OpenCV, you can easily stream it on a YARP network using the First, make sure that you compiled YARP with OpenCV support, by making sure that the Then you can check if the If it is not available, you should enable its compilation in YARP by enabling the Now you can launch the device by using the following command:
Now the video from the webcam should be streamed on the The video streamed can be easily dumped to a mkv video file using the [1] : http://www.yarp.it/group__opencv__grabber__basic.html cc @fjandrad |
Beta Was this translation helpful? Give feedback.
-
install yarp with opencv_grabber then do yarpdev --device opencv_grabber \nameOfPort On 16 March 2016 at 08:31, Silvio Traversaro [email protected]
|
Beta Was this translation helpful? Give feedback.
-
Another option is to use the
|
Beta Was this translation helpful? Give feedback.
-
Yet another option... on linux the
Thanks @barbalberto for this hint. |
Beta Was this translation helpful? Give feedback.
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 toON
.Then you can check if the
opencv_grabber
device is available on your machine by using theyarpdev --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 theENABLE_yarpmod_opencv_grabber
CMake option. After you enabled it, compile (and install, if you usually do install) YARP. Now you should find theopencv_grabber
when you typeyarpdev …