2015-05-28 04:52:09 -0600 | commented question | Multiple circles with a single call to cv::circle function Thanks for your help, I finally figured out what happen, and it's my entire fault... When you create a new Mat you need to pass it the image's height as first argument, and not width. The circle is drawn properly if I switch the arguments. |
2015-05-26 12:15:42 -0600 | commented question | Multiple circles with a single call to cv::circle function I just tried to change radius argument type, but it didn't change anything. I don't really see what is the problem neither :'( I don't know if it can help, but I have a weird behaviour too when I use |
2015-05-26 11:44:01 -0600 | commented question | Multiple circles with a single call to cv::circle function @Lorena GdL: I think I can't use But if it's a problem further, why the image captured from the iPad's camera is correct? I also tried to draw a blue square on my image doing something like that: And the square is drawn properly. This is why it lets me think that my output is correct. |
2015-05-26 11:11:50 -0600 | commented question | Multiple circles with a single call to cv::circle function Thank you very well for your help. To answer to your questions, I tried a simple version of the code above => here for the code What I got is not better :'( (image) PS: proccessImage is called each time we receive a new frame from the iPad's camera. |
2015-05-26 10:47:13 -0600 | commented question | Multiple circles with a single call to cv::circle function Thanks for your answer thdrksdfthmn. I already read the documentation of circle function => "The function circle draws a simple or filled circle with a given center and radius." So why do I have many circles drawn whereas I only called circle function once? |
2015-05-26 10:12:33 -0600 | asked a question | Multiple circles with a single call to cv::circle function Hello everyone. I'm new with OpenCV library, and I would like to use it to detect circle in a video stream captured from an iPad back camera. I figured out how to do it and with OpenCV, it can be done in less than 10 lines of code. But it doesn't work for me, and I think I missed something because of some weird behaviours I obtain. Here is a very simple code that doesn't work: For me, this should convert the image in gray and draw a simple circle at the specified position. But instead of that, I get this: [the data from the iPad's back camera is correct and is gray, but the circle is drawn multiple times with weird stripes] Do you know what happened? |