remove dup

This commit is contained in:
2024-10-20 18:54:42 +11:00
parent 96bf583eb7
commit b427ad12ec
-2
View File
@@ -105,8 +105,6 @@ def calculate_dayglo_rating(image):
crop_margin = 0.1 # 10% margin
cropped_image = image[int(height * crop_margin):int(height * (1 - crop_margin)),
int(width * crop_margin):int(width * (1 - crop_margin))]
print("Calculating dayglo rating...")
hsv_image = cv2.cvtColor(cropped_image, cv2.COLOR_BGR2HSV)
mask_green = cv2.inRange(hsv_image, LOWER_COLOR_GREEN, UPPER_COLOR_GREEN)
mask_yellow = cv2.inRange(hsv_image, LOWER_COLOR_YELLOW, UPPER_COLOR_YELLOW)