How to draw an circle,arrow in opencv using mouse events

asked 2013-07-28 05:21:36 -0600

helll gravatar image

updated 2017-09-09 06:24:01 -0600

Hi friends, I'm a newbie to opencv. My task is to draw circle,arrow in an image during the mouse click. I've tried to draw rectangle in an image and i got that from some websites.Its working perfectly,what I've expected.Now the problem is how to draw circle,arrow in an image using mouse events.please suggest me the solutions Thanks in advance.

edit retag flag offensive close merge delete



what about reading the docs for drawing or mouse handling first ?

berak gravatar imageberak ( 2013-07-28 06:00:22 -0600 )edit

Yes its better to read the document..I have tried for the rectangle...I that i have found one thing CvRect and cvRectagle() does the main thing..But for circle,is there any thing apart from cvCircle().

helll gravatar imagehelll ( 2013-07-28 07:32:56 -0600 )edit

"Yes its better to read the document"

so DO it !

circle() is actually the first function in the first link. you did not find it, because you did not care to read it.

berak gravatar imageberak ( 2013-07-28 07:53:04 -0600 )edit

I think you are too genius,thats why u are saying to read the document rather than giving some examples...i dont have enough time to read it..i need to finish this by today...If you know means please give me some hints..otherwise don't answer..anyway thank you...

helll gravatar imagehelll ( 2013-07-28 08:40:05 -0600 )edit

If you do not have enough time to read the manual why do you think we have enough time to answer your question? Is your time more valuable than ours?

SR gravatar imageSR ( 2013-07-28 17:17:02 -0600 )edit