ms-paint/main.py ValueError: too many values to unpack (expected 2)
Opened this issue · 1 comments
sudocpMATHdotPY commented
When I run the main.py file, I get this error:
contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: too many values to unpack (expected 2)
I have looked up ways to fix this, but it ends up returning an empty tuple for contours when fixed:
_, contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
print(contours)
output:
()
Is there any fix I can use?
chocolatecakecake commented
reinstall python