Hi there,
I am testing how to use the readNetFromCaffe() function to load the MobileNetSSD_deploy.prototxt and MobileNetSSD_deploy.caffemodel files. But the system keep complaining with this message:
Exception: OpenCV(4.1.1-pre) /build/master-contrib_docs-lin64/opencv/modules/dnn/src/caffe/caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "file.txt" in function 'ReadProtoFromTextFile'
Can anyone help ? Thanks.
Here are the lines I used to load the files:
let modelTxt='MobileNetSSD_deploy.prototxt';
let modelBin='MobileNetSSD_deploy.caffemodel';
utils.createFileFromUrl('file.txt', modelTxt, callback);
utils.createFileFromUrl('file.bin', modelBin, callback);
net=cv.readNetFromCaffe('file.txt', 'file.bin');