how to use the vision_opencv on python script?
hello,
i want to use the vision_script on python script.
can you show me the example?
and how configurate the cmakelist.txt?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
hello,
i want to use the vision_script on python script.
can you show me the example?
and how configurate the cmakelist.txt?
For Python you don't really need to configure CMakeLists.txt
You could just use opencv directly in Python by including it as follows:
import cv2
Then use all opencv algorithms accessible under the namespace cv2 (cv2.imshow() for example). You should of course have opencv installed on your computer.
For converting between OpenCV image format and ROS images check this tutorial
I add 'import opencv2 as cv2', but is not work. it's occur the error ' no module named opencv2.
how to solve?
Asked: 2015-05-10 02:43:18 -0500
Seen: 116 times
Last updated: May 12 '15
Python action client does not connect properly
Python savefig to directory [closed]
rostest & Python - Multiple Test Fixtures In Single File
How to convert PCL(xyzi) to ROS PointCloud2 in python?
cannot include custom .msg files in python code
Read rosbag in python at timestamp
how to make end effector look at object?
What is the correct layout of Python code when using --symlink-install in ROS 2?