Negar Jovhari
Negar Jovhari

Reputation: 11

applying MSDDetector in colab

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.

Upvotes: 1

Views: 49

Answers (1)

berak
berak

Reputation: 1374

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(....
    

Upvotes: 0

Related Questions