Nov-28-2016, 11:08 PM
Here is link to our code https://github.com/malinowydyplom/DYPLOM...eaded/1.py.
We were building our program using http://www.pyimagesearch.com/ blogs and tutorials from the start. In one, about detecting multiple bright spots in the image, he used contours sorting from left to right- same as you can see in our source code. Everything is ok as long as mutual orientation of markers stays as seen of no1. below. Then with no2. they sort again and we have problem - markers change they x,y coordinates and we're not able to measure proper angle between two lines.
We need some kind of identyfication, to attribute known id to, for example, middle marker so that the rest contours could follow him.
We were building our program using http://www.pyimagesearch.com/ blogs and tutorials from the start. In one, about detecting multiple bright spots in the image, he used contours sorting from left to right- same as you can see in our source code. Everything is ok as long as mutual orientation of markers stays as seen of no1. below. Then with no2. they sort again and we have problem - markers change they x,y coordinates and we're not able to measure proper angle between two lines.
We need some kind of identyfication, to attribute known id to, for example, middle marker so that the rest contours could follow him.