Ask Your Question
0

Finding white circles only

asked 2017-08-14 17:05:52 -0600

m3rt gravatar image

Hi everyone;

I am trying to detect white circle (yes, just one) on video capture. I have converted the frame to HSV and by using inRange, the program can detect white pixels now in Python 3. But, I need to detect pixels if they are a circle. How can I do that? With Hough circle transform?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Did you try Hough transform ? what is the result ?

Ziri gravatar imageZiri ( 2017-08-14 20:44:50 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-16 05:17:44 -0600

sleo5 gravatar image

If you already know there is just one circle on your video and it is white, you don't have to convert the frame to HSV. Circle Hough Transformation it's enough. But if there are a lot of noises, you have to optimize your detection playing with your parameters. Take a look at the c++ code here. Maybe it will help you to understand the approach. (I've never used Python, so I can't implement an example for you).

good luck

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-08-14 17:05:52 -0600

Seen: 1,172 times

Last updated: Aug 16 '17