OpenCV face_detector人脸识别报错及解决方案
报错的截图
报错的文字
- OpenCV(3.4.1) Error: Unspecified error (FAILED: fs.is_open(). Can’t open “C:/…/deploy.prototxt”) in cv::dnn::ReadProtoFromTextFile, file C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp, line 1119
- Traceback (most recent call last):
File “C:/…/123.py”, line 13, in,“C:/…/res10_300x300_ssd_iter_140000.caffemodel”) - cv2.error: OpenCV(3.4.1) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1119: error: (-2) FAILED: fs.is_open(). Can’t open “C:/…/deploy.prototxt” in function cv::dnn::ReadProtoFromTextFile
报错的解决办法
··net = cv2.dnn.readNetFromCaffe()函数
-
<