Data Science, Data Engineer, Computer Vision, API, Solid State Physics.
cv2.cvtColor(image_yuv, cv2.COLOR_YUV2BGR) return image_normalized def is_green_or_has_shape(image): image = np.uint8(image) hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) lower_green = np.array([35, 40, 40]) upper_green = np.array([85, 255, 255]) mask = cv2.inRange(hsv_image, lower_green,