Input masks and ROI
The inclusion and exclusion areas add a mask over the image that is sent to the AI Manager, the Region of Interest (ROI) removes all information outside the designated region and sends only the information inside the rectangle to the AI Manager.
Inclusion area
For the inclusion area results that are within the designated polygon will be detected in the inclusion results.


In practice the results will overlap the borders of the polygon a little bit because the middle of the bottom of the detection box is taken as the anchor location for the detected object.
Exclusion area
The same works for the exclusion area - here only objects that have the anchor location outside of the area will be returned.


Region of Interest (ROI)
The region of interest defines a square region of the image that will be sent to the AI Manager - the parts outside of the region will not be seen by the model.


This also means that the image can not be another shape than a rectangle, and you may need to change the model resizing method to letterbox for the models to work correctly.

Note that using masks and region of interest at the same time is not supported.
Custom external processing
If this behavior is not the desired behavior, is possible to create your own preprocessor to create a mask or postprocessor to exclude results from an area that you designate.
For more information on custom preprocessors and postprocessors you can checkout the examples in our GitHub repository
Last updated