Ask Your Question
0

I am building and document scanner application and facing issue with detecting corner circles

asked 2019-05-16 22:29:59 -0600

Rakez gravatar image

I want the output as image

image description

I have tried to implement blob detection for detection black circles located at corner, but it is not detecting the black dots. Can any one suggest a better way to achieve the required output. Actually i want only the area inside the black dots inclusive of black dot. Any references would be great

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-17 09:51:07 -0600

I was able to get the image below with just a few OpenCV steps:

  1. threshold the image with binary_inverse and threshold value about 40

  2. find contours

  3. filter contours by area and aspect ratio

Do you think these remaining contours (in red) would be useful to you?

image description

edit flag offensive delete link more

Comments

Yes, it can be helpful, can you please share code for above transformation

Rakez gravatar imageRakez ( 2019-05-22 09:18:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-16 22:29:59 -0600

Seen: 360 times

Last updated: May 17 '19