First time here? Check out the FAQ!
I have the same problem.
You can try to change the first two parameters with the second two parameters of drawMatches. Ex.: (image, keypoints, target, keypoints1, ...); to (target, keypoints1, image, keypoints, ...); For me it's fixed my error.