1. 程式人生 > >opencv dnn人臉識別報錯記錄

opencv dnn人臉識別報錯記錄

OpenCV(3.4.1) Error: Unspecified error (FAILED: fs.is_open(). Can’t open “face_detector/deploy.prototxt”) in ReadProtoFromTextFile, file /home/qinhaidong/opencv341/opencv/modules/dnn/src/caffe/caffe_io.cpp, line 1119
記得,路徑要加雙引號,
const char* params
= “{ help | false | print usage }”
“{ proto | “deploy.prototxt的絕對路徑” | model configuration (deploy.prototxt) }”
“{ model |“res10_300x300_ssd_iter_140000.caffemodel的絕對路徑” | model weights (res10_300x300_ssd_iter_140000.caffemodel) }”
“{ camera_device | 0 | camera device number }”
“{ video | | video or image for detection }”
“{ opencl | false | enable OpenCL }”
“{ min_confidence | 0.5 | min confidence }”;