setRegionOfInterest

open fun setRegionOfInterest(@NonNull staticRegionOfInterest: ImageRegion)

Sets the region of interest for this colour threshold, which will only focus detections on this area. This is an optional method.

Parameters

staticRegionOfInterest

the static region of interest to use, by default the entire frame


open fun setRegionOfInterest(@NonNull regionOfInterest: Supplier<ImageRegion>)

Sets the region of interest for this colour threshold, which will only focus detections on this area. This is an optional method, and will only be updated on processor initialisation.

Parameters

regionOfInterest

the region of interest to use, by default the entire frame