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 | Q&A answers.ros.org |
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?
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2015-05-10 02:43:18 -0600
Seen: 97 times
Last updated: May 12 '15