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

Function test_classify_clip_captcha

tests/test_detector.py:124–134  ·  view source on GitHub ↗
(detector: Detector)

Source from the content-addressed store, hash-verified

122
123
124def test_classify_clip_captcha(detector: Detector):
125 img_bytes = image_dir.joinpath("classify_no_yolo.png").read_bytes()
126 response, coordinates = detector.detect("stairs", img_bytes, area_captcha=False)
127
128 # General Checks
129 assert response, coordinates
130 assert len(response) == 9
131
132 # Response Correctness
133 assert sum(response) == len(coordinates)
134 assert response == [True, True, False, True, False, False, False, False, True]

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected