MCPcopy Create free account
hub / github.com/Vinyzu/recognizer / test_bytes_input

Function test_bytes_input

tests/test_inputs.py:109–118  ·  view source on GitHub ↗
(detector: Detector)

Source from the content-addressed store, hash-verified

107
108
109def test_bytes_input(detector: Detector):
110 img_bytes = [img.read_bytes() for img in splitted_images]
111 response, coordinates = detector.detect("bicycle", img_bytes, area_captcha=False)
112
113 # General Checks
114 assert response, coordinates
115 assert len(response) == 9
116
117 # Response Correctness
118 assert sum(response) == len(coordinates)

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected