compute_polygon_area

cocohelper.utils.segmentation.compute_polygon_area(polygon)[source]

Computes a segmentation area from its polygon coordinates.

Parameters:

polygon – polygon coordinates for the segmentation.

Returns:

The area of the segmentation.

Return type:

float