Closed Rob174 closed 3 years ago
As we are drawing all of the annotation as pixels on the images, we can not have shapes overlappings. That is why we can have the following case:
As the shapes are not always completely filled (due to superpositions), opencv can be fooled and count too many shapes. We will check that by ploting the resulting rectangles on this image for instance
We obtained the following result on the example
We are obliged to use the hierarchy return value of opencv findContours function as this function also detects contours from forms contained in other forms.
For the spill class
For the seep class
For the spill class
For the seep class
⚠️ All former curves are wrong: the annotations transformation in pixel did not take into account the annotation timestamps. It produced overlappings and artificially increased the lengthes of the minAreaRectangle
Version updated:
Smallest length
Biggest length
We will use th minAreaRect of opencv to build a rectangle rotated so that it has the minimum area that allows to include all of the shape.