(trajectory)
| 1120 | assert avg_saturation_image > avg_saturation_ref_image, "The saturation of the image is not lower than the reference image." |
| 1121 | |
| 1122 | def test_task_98(trajectory): |
| 1123 | image_path = "./output/98.png" |
| 1124 | ref_path = "./data/98.jpeg" |
| 1125 | |
| 1126 | # 计算目标图像和参考图像的清晰度 |
| 1127 | sharpness_image = calculate_sharpness(image_path) |
| 1128 | sharpness_ref_image = calculate_sharpness(ref_path) |
| 1129 | |
| 1130 | # 检查目标图像的清晰度是否低于参考图像的清晰度 |
| 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" |
nothing calls this directly
no test coverage detected