Rob174 / detection_nappe_hydrocarbures_IMT_cefrem

0 stars 0 forks source link

Statistics of the shapes of the seeps, spills #22

Closed Rob174 closed 3 years ago

Rob174 commented 3 years ago

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.

Rob174 commented 3 years ago

Warning:

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:

Capture d’écran (215)

tmp

Rob174 commented 3 years ago

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

Rob174 commented 3 years ago

We obtained the following result on the example test_1

Rob174 commented 3 years ago

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.

Rob174 commented 3 years ago

For the spill class tmpclass1 For the seep class tmpclass2 For the spill class tmpclass1 For the seep class tmpclass2

Rob174 commented 3 years ago

⚠️ 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

Rob174 commented 3 years ago

Version updated: Smallest length tmpclass1 tmpclass2 Biggest length tmpclass1 tmpclass2