Beispiel #1
0
 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)
Beispiel #2
0
def test_turn_binary():
    image = toolbox.imread(IMAGE_PATH)
    toolbox.turn_binary(image)