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
rostest & Python - Multiple Test Fixtures In Single File
Read rosbag in python at timestamp
Call a service from a launch.py file in ROS2
[ROS2] Launch same node several times using same launch file
How to configure my node/computer for processing
Stereo Camera Info Subscriber Throws Error