在ROS 使用摄像头 WebCam 完成图像处理(2) -- 初探OpenCV
在上一节,我们通过ros中 uvc_camera 包下的 uvc_camera_node 得到了摄像头的 rgb 图像数据。这些图像数据将送入我们的图像处理 node 进行处理、识别等工作。
OpenCV 是开源的 计算机视觉 算法包,将被用来开发 我们的图像处理 node 。
Install the OpenCV:
The easiest way to install OpenCV under Ubuntu Linux is to get the Debian packages。
$ sudo apt-get install ros-hydro-opencv2 ros-hydro-vision-opencv
| If you need a feature found only in the latest version, you can compile the library from source. Instructions can be found here: http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html |

本文介绍如何在ROS环境中使用OpenCV处理WebCam图像。首先通过uvc_camera_node获取RGB图像,然后详细说明如何安装OpenCV,并提供了一个使用cv_bridge转换ROS图像到OpenCV格式的Python脚本cv_bridge.demo.py的示例,该脚本展示了图像灰度化、模糊和边缘检测的过程。
最低0.47元/天 解锁文章
3339

被折叠的 条评论
为什么被折叠?



