Extracting OCRSearch
rahelarnold98 opened this issue · 6 comments
When extracting the feature OCRSearch, I always end up getting the attached error message. Is there a resource missing in externalFiles.csv or is there an underlying bug?
CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.5.1) /Users/runner/work/opencv/opencv/opencv-4.5.1/modules/dnn/src/caffe/caffe_io.cpp:1133: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "resources/SceneTextExtractor/frozen_east_text_detection.pb" in function 'ReadProtoFromBinaryFile'
]
at org.opencv.dnn.Dnn.readNetFromTensorflow_1(Native Method)
at org.opencv.dnn.Dnn.readNetFromTensorflow(Dnn.java:183)
at org.vitrivr.cineast.core.util.TextDetector_EAST.initialize(TextDetector_EAST.java:43)
at org.vitrivr.cineast.core.util.TextDetector_EAST.initialize(TextDetector_EAST.java:53)
at org.vitrivr.cineast.core.features.OCRSearch.processSegment(OCRSearch.java:265)
at org.vitrivr.cineast.standalone.runtime.ExtractionTask.run(ExtractionTask.java:28)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
do you have resources/SceneTextExtractor/frozen_east_text_detection.pb
locally?
No, I have only the files loaded by ./gradlew getExternalFiles
in my local resources directory.
Hmm, that one is indeed missing from the external files. I will investigate where it ended up.
The file should be now among the external ones, please try again.
The file is now downloaded into the resources directory, but unfortunately, into the wrong subfolder. The same is also true for CRNN_VGG_BiLSTM_CTC.onnx
. Both of the files are stored within resources/TextSpotter/
instead of in resources/SceneTextExtractor/
as specified in cineast-core/src/main/java/org/vitrivr/cineast/core/util/TextDetector_EAST.java
, respectively cineast-core/src/main/java/org/vitrivr/cineast/core/util/TextRecognizer_CTC.java
.
#236