ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is OpenCV compatible with pyqt?

asked 2011-05-24 20:09:40 -0600

Shamma gravatar image

updated 2014-01-28 17:09:44 -0600

ngrennan gravatar image

hello there,

I am using ROS to develop a system in my research. So, I am retrieving video images from the robot and I want to draw a circle on the screen to the object that the robot recognizes. I have the code for the object recognition and the position of the object with respect to the video , I was thinking of using OpenCV, but I don't know if they are compatible with pyqt and python?

any help

thank you

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2011-05-25 01:46:29 -0600

updated 2011-05-25 01:46:57 -0600

Yes, you can do it with opencv's drawing functions. Use cvbridge to create cv::Mat from sensor_msg::image without copying.

If you use pyqt anyway, why not use the drawing functions of qt? You can convert the images to QImage (e.g. as it is done here (c++) from an opencv image) and use a QPainter, constructed with the image as parameter to use drawEllipse.

edit flag offensive delete link more
1

answered 2011-05-24 21:51:19 -0600

Guido gravatar image

Hi Shamma,

If your problem is just drawing circles, you could do it with opencv. Take a look at the face detection example, you will see how to draw circles.

Hope this helps,

Guido

edit flag offensive delete link more

Comments

I had a look at it, I think I will utilize it ...
Shamma gravatar image Shamma  ( 2011-05-26 18:59:37 -0600 )edit
0

answered 2011-09-01 22:08:19 -0600

pbouda gravatar image

Look here:

http://www.dasskript.com/wiki/augmented_reality_mit_opencv_pyqt_und_opengl

It written in German, but I think you can get the point.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-05-24 20:09:40 -0600

Seen: 2,153 times

Last updated: Sep 01 '11