TypeError: Required argument 'outImg' (pos 6) not found

后端 未结 4 515
醉酒成梦
醉酒成梦 2020-12-14 00:26

When I run my python code

import numpy as np
import cv2
import matplotlib.pyplot as plt

img1 = cv2.imread(\'/home/shar/home.jpg\',0)          # queryImage
         


        
4条回答
  •  [愿得一人]
    2020-12-14 00:49

    This is probably a bug. What you can do is you can pass the 6th argument as None.

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

    I was having a similar kind of problem when experimenting with SIFT. I was able to solve it when I used None as an argument.

提交回复
热议问题