Ask Your Question
1

intelligent sort by location countors

asked 2015-09-03 10:35:56 -0600

msucv gravatar image

updated 2015-09-26 07:16:31 -0600

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.

edit retag flag offensive close merge delete

Comments

MANY THANKS.

msucv gravatar imagemsucv ( 2015-09-03 12:24:42 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2015-09-03 10:43:57 -0600

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-03 10:35:56 -0600

Seen: 273 times

Last updated: Sep 03 '15