1

I have trouble writing the MSD detector correctly. However, it has no attribute ''create''.

I wrote the following code. But my session crashed for an unknown reason. msd=cv2.xfeatures2d.MSDDetector() kps1=msd.detect(I1) I will appreciate any help.

1 Answers1

0

unfortunately, you've found a bug here.

there should be a ´XXX_create()´ function, but someone forgot to expose it to the python api, by adding a CV_WRAP to the function signature here

(and no, you cannot use the 'ordinary' constructor, it does not produce a valid instance (will segfault, if you call any method on it !!))

  • please raise an issue here

  • if you're able to build from src, try to fix it locally, by changing that line to:

      CV_WRAP static Ptr<MSDDetector> create(....
    
berak
  • 1,226
  • 2
  • 5
  • 7