Ask Your Question
0

how to group nearby contours?

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

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
0

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

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

Question Tools

1 follower

Stats

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

Seen: 857 times

Last updated: Mar 03 '20