Ask Your Question

Revision history [back]

I think that findCountours indexation is done from top-down and then left-right. So, if the top right corner happens to be one pixel higher than top left corner, it would have the first index.

Try to find a way to compute the indices yourself. If this marker moves in the frame this might be a tricky problem that may need some tracking methods to be solved. If the tracker is sitting still you can just index them yourself according to your criteria.

I think that findCountours indexation is done from top-down and then left-right. So, if the top right corner happens to be one pixel higher than top left corner, it would have the first index.

Try to find a way to compute the indices yourself. If this marker moves in the frame this might be a tricky problem that may need some tracking methods to be solved. If the tracker marker is sitting still you can just index them yourself according to your criteria.