• 카테고리

    질문 & 답변
  • 세부 분야

    컴퓨터 비전

  • 해결 여부

    미해결

명함인식

21.11.03 16:31 작성 조회수 634

0

 warped = cv2.warpPerspective(origM, (maxWidthmaxHeight))-
 
에서 dsize에러나는데요

답변 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

코드몽키님의 프로필

코드몽키

2022.02.06

maxWidth, maxHeight 를

=> int(maxWidth), int(maxHeight) 로 고쳐주시

면 됩니다

lcw07님의 프로필

lcw07

2022.12.11

감사합니다. 이거 하니 해결되네요