Ask Your Question

how to group nearby contours?

asked 2020-02-17 00:39:34 -0500

I just find out the contours in the image using find contour function.It shows output like the below image.image description. Now I need to group the nearby contours in the zebra-crossing lines to get full area.How this can be done?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-03-03 17:35:51 -0500

lnx gravatar image

try blurring your image , kmeans with 2 clusters will somewhat combines all the zebra-crossing line and then apply findcontours. it might not be the good approach but it might work

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-02-17 00:39:34 -0500

Seen: 53 times

Last updated: Mar 03