Ask Your Question
0

Is OpenCV compatible with pyqt?

asked May 25 '11

Shamma gravatar image Shamma
1 3

updated Jun 17 '11

kwc gravatar image kwc
7078 23 67 117
http://kwc.org/

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

delete close flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
3

answered May 25 '11

Felix Endres gravatar image Felix Endres flag of Germany
2105 5 18 44
http://www.informatik.uni...

updated May 25 '11

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.

link delete flag offensive edit
1

answered May 25 '11

Guido gravatar image Guido
438 5 15

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

link delete flag offensive edit

Comments

I had a look at it, I think I will utilize it ... Shamma (May 26 '11)edit
0

answered Sep 02 '11

pbouda gravatar image pbouda
1

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.

link delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: May 25 '11

Seen: 273 times

Last updated: Sep 02 '11