강의

멘토링

커뮤니티

Inflearn Community Q&A

esparkhj680999's profile image
esparkhj680999

asked

Business card recognition function implementation course using OpenCV

Implementing business card recognition - captured images

명함인식

Written on

·

851

0

 warped = cv2.warpPerspective(origM, (maxWidthmaxHeight))-
 
에서 dsize에러나는데요
opencv컴퓨터-비전딥러닝

Answer 1

0

Eung Soo Park님의 프로필 이미지
Eung Soo Park
Questioner

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) 로 고쳐주시

면 됩니다

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

esparkhj680999's profile image
esparkhj680999

asked

Ask a question