-
Notifications
You must be signed in to change notification settings - Fork 0
Evaluate Segmentation
The package contains all the functions used to evaluate the segmentation
Given the dictionary with all the polygons serialized return another dictionary in which keys are the distinct labels of the input data. The value of each key is a list of polygon object. They are two different object depends on the input data collects the correct objects or objects to evaluate.
-
Parameters
-
data (dict) – The dictionary contains all polygons serialized
-
correct (bool) – The value that represent if the input data are the correct polygons or polygons to check
-
-
Returns
Polygons clustered on the label name. Dictionary with keys distinct labels
-
Return type
dict
The function ask for the two json file to match.
The structure of the JSON must be a dictionary as key an increment number that represent uniquely an object. The value is another dictionary with two key label (the name of the template) and points (a list of float).
-
Returns
A bool value that check if all operations end correctly
-
Return type
bool