CV2 — debug note

CV2 — check version

$ python
>>> import cv2
>>> cv2.__version__
‘3.0.0’

Reference: http://www.pyimagesearch.com/2015/08/10/checking-your-opencv-version-using-python/

TypeError: Required argument ‘outImg’ (pos 6) not found

Set outImg to be none.

img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,matches,None,flags=2)

reference: http://stackoverflow.com/questions/31631352/typeerror-required-argument-outimg-pos-6-not-found/31631995#31631995

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s