Oslandia / deeposlandia

Migrated to: https://gitlab.com/Oslandia/deeposlandia
MIT License
59 stars 16 forks source link

Assign color to shape #138

Closed delhomer closed 5 years ago

delhomer commented 5 years ago

This PR is related to polygon label retrieving during postprocessing. Until now, all the detected objects were of type 1; from now we retrieve the corresponding labels by investigating colors and polygons on the raw predicted image with OpenCV.

The dedicated unit tests have been updated, and new ones have been designed for controlling outputs of newly produced functions.

As a side modification, a remaining occurrence of agregation mode (see PR #134) has been removed in postprocessing.py.

This PR fixes #131.