(detector: Detector)
| 122 | |
| 123 | |
| 124 | def 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] |