Hello friends… I need help; I’m trying to run the following example on Visual Studio Community 2022 and Windows 11: “opencv/samples/cpp/smiledetect.cpp at master · opencv/opencv · GitHub” but it’s showing the following error:
“[ WARN:0@0.011] global samples.cpp:61 cv::samples::findFile cv::samples::findFile(‘data/haarcascades/haarcascade_frontalface_alt.xml’) => ‘’
OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.11.0) Error: Unspecified error (OpenCV samples: Can’t find required data file: data/haarcascades/haarcascade_frontalface_alt.xml) in cv::samples::findFile, file C:\GHA-OCV-1_work\ci-gha-workflow\ci-gha-workflow\opencv\modules\core\src\utils\samples.cpp, line 64”.
Other programs with OpenCV in C++ in VS that do not use haarcascade work without errors.
In Environment Variables, only include the path to “C:\opencv\build\x64\vc16\bin”
Thanks for any help.