(trajectory)
| 1131 | assert sharpness_image < sharpness_ref_image, "The sharpness of the image is not lower than the reference image." |
| 1132 | |
| 1133 | def test_task_99(trajectory): |
| 1134 | image_path = "./output/99.png" |
| 1135 | ref_path = "./data/99.jpeg" |
| 1136 | |
| 1137 | # 计算目标图像和参考图像的清晰度 |
| 1138 | sharpness_image = calculate_sharpness(image_path) |
| 1139 | sharpness_ref_image = calculate_sharpness(ref_path) |
| 1140 | |
| 1141 | # 检查目标图像的清晰度是否低于参考图像的清晰度 |
| 1142 | assert sharpness_image < sharpness_ref_image, "The sharpness of the image is not lower than the reference image." |
| 1143 | |
| 1144 | def is_grayscale(image_path): |
| 1145 | """ |
nothing calls this directly
no test coverage detected