Ask Your Question
-1

How to find small circle/hole in image?

asked 2014-10-19 11:19:43 -0600

bonny gravatar image

Hello...

I'm new on CV scene. My quiestion is how to find all holes in image. (pcb pads for example). The size is known and I want only correct sized holes.

How to approach to that? (probably using python)

Thanks

pcb.jpg

edit retag flag offensive close merge delete

Comments

I want to point out that there is a FAQ containing a tutorial on how to form a decent question. You should try some of the suggestions there first. Finding holes in an image is an example that has TONS of applications out there explaining it very well. Probably someone downvoted this question just for that reason.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-20 04:39:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-10-19 12:35:33 -0600

FLY gravatar image

Use the OpenCV function findContours Use the OpenCV function drawContours Try it with mask as well but I hope so you can find your answer from below links as they relates to your work and they are very clear and understandable

Finding contours in your image

Detecting Circle

Finding inner holes

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-19 11:19:43 -0600

Seen: 4,152 times

Last updated: Oct 19 '14