0
$\begingroup$

Rosanswers logo

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


Originally posted by Shamma on ROS Answers with karma: 1 on 2011-05-24

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

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.


Originally posted by Felix Endres with karma: 6468 on 2011-05-25

This answer was ACCEPTED on the original site

Post score: 3

$\endgroup$
0
$\begingroup$

Rosanswers logo

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


Originally posted by Guido with karma: 514 on 2011-05-24

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by Shamma on 2011-05-26:
I had a look at it, I think I will utilize it ...

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.