1 | initial version |
CV3 isn't probably baked yet, but a workaround I found was to create a dummy array to send to the function since it thinks it needs it:
img3 = np.zeros((1,1)) and then
im4 = cv2.drawMatches(im1,kp1,ig2,kp2,matches[:10],img3,flags=2)
then imshow(im4/255.0) to view
Obviously, it probably isn't supposed to work this way, but since CV3 is in development it is probably a bug that needs to be worked out in the python interface still.
Your mileage may vary - but it worked for me pretty well. Once the python/C++ interface gets cleaned up, you shouldn't have to make that img3 to fill in the function.