Question about text_detection.cpp

asked 2019-05-06 10:46:10 -0500

Shix gravatar image

updated 2019-05-06 11:21:36 -0500

berak gravatar image

Hello, I am new to OpenCv and I am working on a project for university. I am trying the sample code in the opencv github text_detection.cpp and using the the east model called frozen_east_text_detection.pb.

When Running it I am getting this error:

C:\Users\user\source\repos\opencv\x64\Debug>opencv.exe -i example.jpg -m frozen_east_text_detec
tion.pb
OpenCV(4.1.0) Error: Unspecified error (Cannot determine an origin framework of
files: true) in cv::dnn::dnn4_v20190122::readNet, file c:\build\master_winpack-b
uild-win64-vc15\opencv\modules\dnn\src\dnn.cpp, line 3780
OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.1.0) Error: Unspecified error (Cannot determine an origin framework of
files: true) in cv::dnn::dnn4_v20190122::readNet, file c:\build\master_winpack-b
uild-win64-vc15\opencv\modules\dnn\src\dnn.cpp, line 3780

What am I doing wrong. I basically copy pasted the sample to my visual studio 2017 and Ran opencv.exe in cmd.

edit retag flag offensive close merge delete

Comments

you need key=value cmdlne args here, like:

opencv.exe -i=example.jpg -m=frozen_east_text_detection.pb
berak gravatar imageberak ( 2019-05-06 11:24:33 -0500 )edit