작성
·
729
답변 1
0
STEP 2: Find contours of paper
Traceback (most recent call last):
File "c:/Users/espark/Desktop/PythonWorkSpace/module6.py", line 299, in <module>
auto_scan_image()
File "c:/Users/espark/Desktop/PythonWorkSpace/module6.py", line 267, in auto_scan_image
warped = cv2.warpPerspective(orig, M, (maxWidth, maxHeight))
cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'warpPerspective'
> Overload resolution failed:
> - Can't parse 'dsize'. Input argument doesn't provide sequence protocol
> - Can't parse 'dsize'. Input argument doesn't provide sequence protocol
maxWidth, maxHeight 를
=> int(maxWidth), int(maxHeight) 로 고쳐주시
면 됩니다