Closed rupeshchandgude closed 5 years ago
@rupeshchandgude Same issue, and I found the solution here
https://stackoverflow.com/questions/40278444/error-using-cv2-findcontours-with-python
Maybe the cause of opencv version
Just change the line 450:
_, contours, _ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
into
contours, hierarchy = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
Worked for me
Thanks @namdaoduy. Now it is working for me.
Hello, I have ran the code as mention in comments using python page_dewarp.py Img. Following error occurred after running the code.