Still receiving following error. Tried new sample code mentioned by you
/home/john/Qt Applications/faceDetection2/main.cpp:74: error: ‘FaceDetectorYN’ was not declared in this scope
…/faceDetection2/main.cpp: In function ‘int main(int, char**)’:
…/faceDetection2/main.cpp:74:9: error: ‘FaceDetectorYN’ was not declared in this scope
Ptr detector = FaceDetectorYN::create(fd_modelPath, “”, Size(320, 320), scoreThreshold, nmsThreshold, topK);