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
AttributeError's when running Python scripts
Dependency on python module `sys`
service does not exist - app_manager rapp, hydro, python, turtlebot
How to use a service to make a snapshot?
Python problems installing ROS on OS X 10.9
Read rosbag in python at timestamp
How to use WS2812B LED lights with ROS 2 node
Use callback groups to allow an Action to trigger a service of the same Node