title: Error:(-215) type == src2.type() && src1.cols == src2.cols && (type == 5 || type == 0) in function cv::batchDistance
body: <p>I have the following code for image matching by using ORB:</p>
  
  <pre><code>import numpy as np
  import cv2
  from matplotlib import pyplot as plt
  
  img1 = cv2.imread('C:\\IRRNEW\\models\\research\\object_detection\\Scanner\\IMG_Hello.jpg',0)          # queryImage
  img2 = cv2.imread('C:\\IRRNEW\\models\\research\\object_detection\\Image.jpg',0) # trainImage
  #orb = cv2.ORB_create()
  orb = cv2.ORB_create(nfeatures=10000, scoreType=cv2.ORB_FAST_SCORE)
  # find the keypoints with ORB
  kp1, des1 = orb.detectAndCompute(img1,None)
  kp2, des2 = orb.detectAndCompute(img2,None)
  bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True)
  matches = bf.match(des1,des2)
  matches = sorted(matches, key = lambda x:x.distance)
  img3 = cv2.drawMatches(img1,kp1,img2,kp2,matches[::], None,flags=2)
  a=len(matches)
  print(a)
  b=len(des)
  print(b)
  plt.imshow(img3),plt.show()
  </code></pre>
  
  <p>Previosly this code able to run and show me result, but now suddently give me this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\user\Desktop\h.py", line 13, in &lt;module&gt;
  matches = bf.match(des1,des2)
  cv2.error: C:\projects\opencv-python\opencv\modules\core\src\stat.cpp:4022: error: (-215) type == src2.type() &amp;&amp; src1.cols == src2.cols &amp;&amp; (type == 5 || type == 0) in function cv::batchDistance
  </code></pre>
  
  <p>Version of opencv: <strong>opencv-python 3.4.0.12</strong></p>
  
  <p>Please help, I refer solution from online but nothing help, hope you guys can share me ideas. Thanks</p>