ovl.direction_modifiers.stop_if_close_modifier module

class ovl.direction_modifiers.stop_if_close_modifier.StopIfCloseModifier(minimum_size: Union[float, ovl.helpers.types.RangedNumber.<locals>.Hint], value_sent: Any, priority: bool = False)[source]

Bases: ovl.direction_modifiers.direction_modifier.DirectionModifier

A Direction monitor that stops when the target found is large enough (close enough). Like other DirectionMonitor objects, it monitors the directions returned.

monitor(directions: Any, targets: List[numpy.ndarray], image: numpy.ndarray) → Any[source]
Parameters:
  • directions – the directions received from directing function / from the previous direction monitors
  • targets – the objects found in the image
  • image – the image where the objects where found in
Returns:

priority