When using C++ to call the self-compiled OpenCV 4.7.0 library for image SURF feature extraction, when the program is generated to SURF::create, an error will be reported and interrupted.
The reason is that when CMake configured Configure, the OPENCV_ENABLE_NONFREE item was not checked
As shown above, check this item, recompile the library, and the problem is solved.