Hello, I had encountered the same problem (cv::dnn has not been declared). Have you found a solution?