def do( self, frame_id: int, frame: np.ndarray, *_, **__ ) -> typing.Optional[np.ndarray]: # TODO not always work super().do(frame_id, frame, *_, **__) return toolbox.turn_binary(frame)
def test_turn_binary(): image = toolbox.imread(IMAGE_PATH) toolbox.turn_binary(image)