How to attach regions to a task
If you added regions: true
in the specs.yaml
file for a task, the function that implements that task should return a tuple, with task value as the first element, and the list of regions as second element, like so:
Use the create_region_from_prediction function to easily create those regions from predictions: