Ask Your Question
1

intelligent sort by location countors

asked Sep 3 '15

msucv gravatar image

updated Sep 26 '15

Hi, i detect number in the plate with the contours algorithm . how can i sort by location the contours?

for example left to right contour[0] ...................contour[10].

but without a loop for check Coordinate X. can the contour algorithm scan to detect left to right ? Or a simpler method. Many Thanks.

Preview: (hide)

Comments

MANY THANKS.

msucv gravatar imagemsucv (Sep 3 '15)edit

1 answer

Sort by » oldest newest most voted
3

answered Sep 3 '15

thdrksdfthmn gravatar image

have you tried the std::sort from C++? You need to their center points, using moments, or min, to find the min x coord and min y coord

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Sep 3 '15

Seen: 284 times

Last updated: Sep 03 '15