walton-wang929/Color_Recognition

A bug in file "shap_and_color_recognition.py"

lifuguan opened this issue · 0 comments

In line 138 :

    M = cv2.moments(contour)

Error:

-210:Unsupported format or combination of formats)  in function 'moments'

solution:

    M = cv2.moments(contour, 1)