A ROS package for publishing image topics from a rgb camera.
This package uses a simple polling way with OpenCV tools to capture images from /dev/videoX device and publish them to ROS. We have tested this with Raspbery Pi camera and Orbbec Astra pro.
Launch files

This type is very similar to InputArray except that it is used for input/output and output function parameters. Just like with InputArray, OpenCV users should not care about OutputArray, they just pass Mat, vector etc. To the functions. I am processing video with opencv, but at the same time I need to play audio and simply control it, like loud or current frame number. I think I should create a parallel process with ffmpeg, but I. Mar 11, 2019 While running the example with live stream. I am getting an error: System information OpenCV = 3.4.1 Operating System / Platform = ubuntu 16.4 on Jetson TX2 -Cuda 9.0 how can I solve this problem tu use network stream like 'rtsp://192.
- camera_polling.launchLaunch the polling node to capture images.
Parameters
- fps
Frame rate (f/s). - camera_index
The device number of /dev/videoX. If you plug in Astra pro, there will be 2 video devices displayed, and the 2nd(/dev/video1) one is rgb device. - view
Whether you want to view the image stream using image_view tool. - save
Whether you want to save the image stream using rosbag tool. - upside_down
If your camera is set upside down, setting this to true will flip the images vertically.
Output Video From Opencv C As Dev Video1 1
Examples
Output Video From Opencv C As Dev Video1 Youtube
roslaunch camera_driver_with_opencv camera_polling.launch camera_index:=1 fps:=30 view:=false save:=true upside_down:=true
Comments are closed.