Ask Your Question

kgs's profile - activity

2018-10-13 10:20:51 -0500 answered a question OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile

Yes, thank you , it was because of the path.

2018-10-13 10:20:41 -0500 marked best answer OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile

I have a problem with opening protobuf file using opencv C++. I use this code:

cv::String weights = "frozen_inference_graph_face.pb";
cv::String pbtxt = "prototxt.pbtxt";
auto graph = cv::dnn::readNetFromTensorflow(weights, pbtxt);

I have this error:

OpenCV(3.4.1) Error: Unspecified error (FAILED: fs.is_open(). Can't open "frozen_inference_graph_face.pb") in cv::dnn::ReadProtoFromBinaryFile, file C:.hunter_Base\acbf4b9\93b3222\8eb84a0\Build\OpenCV\Source\modules\dnn\src\caffe\caffe_io.cpp, line 1126

It works well when I open it with Python code like this and detect image correctly:

cvNet = 
cv.dnn.readNetFromTensorflow('frozen_inference_graph.pb','prototxt.pbtxt')

I have trained ssd_mobilenet_v1_pets. Cannot understand why I cannot open it with my C++ code and the error is refers to cafe, when I use tensorflow. Maybe the configuration of builded OpenCV is wrong? I set WITH_PROTOBUF=ON and BUILD_opencv_dnn=ON.

2018-10-13 10:20:41 -0500 received badge  Scholar (source)
2018-10-11 07:30:44 -0500 asked a question OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile

OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile I have a problem with openin

2018-10-11 07:30:11 -0500 asked a question OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile

OpenCV 3.4.1 error readNetFromTensorflow Can't open .pb in cv::dnn::ReadProtoFromBinaryFile I have a problem with openin

2014-10-07 09:07:29 -0500 commented question feature detectors debug/release

Ok, thank you)

2014-10-07 06:39:48 -0500 asked a question feature detectors debug/release

When to use release libs and call detector.detect(...)(no matter what SIFT or SURF) under debugging of project get exceptions. If to use debug libs under debugging, all working good. (VS 2013, OpenCV 2.4.9) Is it necessary to use debug libs for feature detectors under debugging or I did something wrong?