(trajectory)
| 933 | |
| 934 | |
| 935 | def test_task_88(trajectory): |
| 936 | image_path = "./output/88.png" |
| 937 | ref_path = "./data/88.jpeg" |
| 938 | image = Image.open(image_path) |
| 939 | gray_image = image.convert('L') |
| 940 | gray_array = np.array(gray_image) |
| 941 | black_threshold = 50 |
| 942 | black_pixels = np.sum(gray_array <= black_threshold) |
| 943 | total_pixels = gray_array.size |
| 944 | black_ratio = black_pixels / total_pixels |
| 945 | assert black_ratio > 0.25, "The black pixel percentage does not exceed 30%." |
| 946 | |
| 947 | def test_task_89(trajectory): |
| 948 | image_path = "./output/89.png" |
nothing calls this directly
no outgoing calls
no test coverage detected