Ask Your Question

Revision history [back]

Hi, I have had chance to look at this now. I think the real problem is that the python wrapper for corb.convert() does not allow the host KeyPoints to be an output argument. I would suggest adding CV_OUT as shown below

CV_WRAP virtual void convert(InputArray gpu_keypoints,
                     CV_OUT std::vector<KeyPoint>& keypoints) = 0;

to line 417 of cudafeatures2d.hpp. Hopefully then drawing matches should be as simple as

imMatches = cv.drawMatches(npMat1, corb.convert(_kps1), npMat2, corb.convert(_kps2), cmatches, None)