error: (-2:Unspecified error) from dnn modeule

asked 2019-03-21 04:14:19 -0500

Hi all,

I tried to run samples/dnn/text_detection.cpp program, but i'm getting bellow error from dnn module.

./textdetect -i test.jpg -m frozen_east_text_detection.pb

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.0) /home/infy/opencv/modules/dnn/src/dnn.cpp:3644: error: (-2:Unspecified error) Cannot determine an origin framework of files: true in function 'readNet'

Aborted (core dumped)

My system configuration:

OpenCV version 4.0 | Ubuntu 18.04 | Tesseract version 4.0.0-beta.1 | Leptonica version 1.75.3

Regards, Venkateswaran

edit retag flag offensive close merge delete

Comments

1

Try -m=frozen_east_text_detection.pb and -i=test.jpg

dkurt gravatar imagedkurt ( 2019-03-21 05:10:26 -0500 )edit

@dkurt thanks a lot. It works.!

VenkateswaranJ gravatar imageVenkateswaranJ ( 2019-03-21 05:14:46 -0500 )edit