(detector: Detector)
| 71 | |
| 72 | |
| 73 | def test_paths_input(detector: Detector): |
| 74 | splitted_paths = [str(splitted_path) for splitted_path in splitted_images] |
| 75 | response, coordinates = detector.detect("bicycle", splitted_paths, area_captcha=False) |
| 76 | |
| 77 | # General Checks |
| 78 | assert response, coordinates |
| 79 | assert len(response) == 9 |
| 80 | |
| 81 | # Response Correctness |
| 82 | assert sum(response) == len(coordinates) |
| 83 | |
| 84 | |
| 85 | def test_single_bytes_input(detector: Detector): |