Open sudocpMATHdotPY opened 1 year ago
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?
reinstall python
When I run the main.py file, I get this error:
I have looked up ways to fix this, but it ends up returning an empty tuple for contours when fixed:
output:
()
Is there any fix I can use?