(detector: Detector)
| 21 | |
| 22 | |
| 23 | def test_one_pathlib_input(detector: Detector): |
| 24 | img_bytes = image_dir.joinpath("full_page.png") |
| 25 | response, coordinates = detector.detect("bicycle", [img_bytes], area_captcha=False) |
| 26 | print(f"Path: [full_page.png], Task: [Bicycle], Result: {response}; Coordinates: {coordinates}") |
| 27 | |
| 28 | # General Checks |
| 29 | assert response, coordinates |
| 30 | assert len(response) == 9 |
| 31 | |
| 32 | # Response Correctness |
| 33 | assert sum(response) == len(coordinates) |
| 34 | |
| 35 | |
| 36 | def test_pathlibs_input(detector: Detector): |