OpenCV SURF crash after calling create()

399 Views Asked by At

Couldnt google it... OpenCV version 4.5.1 when calling

   Ptr<cv::xfeatures2d::SURF> detector = cv::xfeatures2d::SURF::create();

app crash. Others detectors ORB, FAST, SIFT are working properly. Where can be the issue? I found some old topic about this solved by calling initModule_nonfree(), but it is not included in version 4.5,1?

enter image description here

1

There are 1 best solutions below

0
Jan Retych On

Problem solved by rebulding with:

OPENCV_ENABLE_NONFREE = checked