Comments (5)
root@3e93e68313ba:/opt/deep_ocr# python /opt/deep_ocr/reco_chars.py
libdc1394 error: Failed to initialize libdc1394
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0714 02:06:59.801216 45 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0714 02:06:59.801687 45 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0714 02:06:59.801810 45 _caffe.cpp:142] Net('/workspace/data/chongdata_caffe_cn_sim_digits_64_64/deploy_lenet_train_test.prototxt', 1, weights='/workspace/data/chongdata_caffe_cn_sim_digits_64_64/lenet_iter_50000.caffemodel')
Traceback (most recent call last):
File "/opt/deep_ocr/reco_chars.py", line 294, in
caffe_cls = CaffeCls(model_def, model_weights, y_tag_json_path)
File "/opt/deep_ocr/reco_chars.py", line 20, in init
caffe.TEST)
RuntimeError: Could not open file /workspace/data/chongdata_caffe_cn_sim_digits_64_64/deploy_lenet_train_test.prototxt
............................................................................................
我也遇到这个问题了 win10 Ubuntu 14.04 lts
from deep_ocr.
I1013 18:55:36.650260 3948786624 net.cpp:744] Ignoring source layer loss
name
Traceback (most recent call last):
File "./bin/deep_ocr_id_card_reco", line 119, in
ocr_res = reco_text_line.do(boundary2binimgs, segment, caffe_cls)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py", line 132, in do
rects, boundaries, bin_images)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py", line 66, in do_images_maxproba
self._do(rects, boundary)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py", line 39, in _do
output_tag_to_max_proba = self.caffe_cls.predict_cv2_imgs(np_char_imgs)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/caffe_clf.py", line 66, in predict_cv2_imgs
self._predict_cv2_imgs_sub(cv2_imgs, i, pos_end)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/caffe_clf.py", line 53, in _predict_cv2_imgs_sub
item = (self.y_tag_json[str(index)],
KeyError: '1972'
the same error @JinpengLI help me, thanks
from deep_ocr.
from deep_ocr.
It seems you didn't download the trained model from baidu cloud, and you didn't mount it into docker container?
from deep_ocr.
@JinpengLI Thank a lot. Now It‘s OK. There is KeyError when i use "https://pan.baidu.com/s/1nvz2wrB". Change to use "https://pan.baidu.com/s/1qYPKH3Y", it's OK.
from deep_ocr.
Related Issues (20)
- Hi,你好。我用虫数据的教程制作了lmdb文件,lenet训练,效果不好 HOT 1
- 11.2号,我没有成功 HOT 8
- 通过 Docker 安装,识别问题 HOT 3
- 请问您的训练数据的字体大小都是统一的吗,还有文字在图片的位置都是居中的呢还是不同位置的都有
- 自然场景文字识别效果目前还不及Tesseract,为什么不考虑用深度网络检测文字呢?
- 环境是python几啊,2.6安装缺少一大堆模块 HOT 1
- deep_ocr_make_caffe_dataset的时候报错 HOT 1
- 测试程序运行出错
- 识别准确率很低 HOT 5
- docker环境无法运行
- 如何得到输出结果? HOT 1
- 请教 HOT 1
- os problem
- ImportError: No module named deep_ocr.ocrolib HOT 6
- docker下,图片路径小问题
- Could not open file /workspace/data/chongdata_caffe_cn_sim_digits_64_64/deploy_lenet_train_test.prototxt HOT 1
- Failed to parse NetParameter file
- ModuleNotFoundError: No module named 'deep_ocr.ocrolib' HOT 1
- ModuleNotFoundError: No module named 'caffe'
- 请问如何能像tesseract一样输出每个字的坐标?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep_ocr.