Hi there,
i'm detecting a colored rect in the hsv colorspace by thresholding the single channels. Here is the result of a detected yellow square mask.
colorspace -> HSV
Color to detect: Yellow (used laser printer to print out the marker // CMYK)
In OpenCV I threshold by followed values:
lower_yell = np.array([15, 100, 20])
upper_yell = np.array([40, 265, 255])
A dilation was processed after canny edge
edges_yell_pre = cv2.Canny(mask_yell, 0, 50, apertureSize = 3)
edges_yell = cv2.dilate(edges_yell_pre, None)
How would you guys delete the small distortion. Please note, that this given example here is a 'good' result.
Thanks