Scalar value for argument 'color' is not numeric
I got this with OpenCV 4.2.0 from cv2.rectangle
, where start_point
was a list, end_point
was a tuple:
cv2.rectangle(rect_mask, start_point_2, end_point, 1, -1)
To fix:
cv2.rectangle(rect_mask, tuple(start_point_2), end_point, 1, -1)