cv2.opencv(4.5.5) error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open".caffemodel" in function 'cv::dnn::ReadProtoFromBinaryFile'

Viewed 969

I am triyng to run app.py file in django. This is for face_recognition for login. But at rendering time it is throwing error cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1138: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "face_recognition_and_liveness/face_liveness_detection/face_detector\res10_300x300_ssd_iter_140000.caffemodel" in function 'cv::dnn::ReadProtoFromBinaryFile' even though this the path D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp does not exist in my system.

I tried :

  1. to take the path D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp and paste in file explorer path and that is showing the path does not exit.img that file the mentioned above file does not exit

The file res10_300x300_ssd_iter_140000.caffemodel exits in the file path ** ** img of file path I have installed opencv.

0 Answers
Related