Open robingong opened 7 years ago
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
............................................................................................ 我也遇到这个问题了 win10 Ubuntu 14.04 lts
name
Traceback (most recent call last):
File "./bin/deep_ocr_id_card_reco", line 119, in
the same error @JinpengLI help me, thanks
For the moment, it is deprecated... I will release a new version as soon as I can. Thanks a lot.
On Fri, Oct 13, 2017 at 2:38 PM, xiangjy notifications@github.com wrote:
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 https://github.com/jinpengli help me, thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JinpengLI/deep_ocr/issues/19#issuecomment-336440974, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLUDQJN2ueC2N_v4ScA841790qMa8fVks5sr1nZgaJpZM4M6Feq .
It seems you didn't download the trained model from baidu cloud, and you didn't mount it into docker container?
@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.
1, 下载deep_ocr_workspace.zip 2,docker pull jinpengli/deep_ocr_cpu_docker:latest 3,docker run -ti --volume=${HOME}/deep_ocr_workspace:/workspace jinpengli/deep_ocr_cpu_docker:latest /bin/bash 4,python /opt/deep_ocr/reco_chars.py 会出现错误: root@dd66a9208e12:/workspace# python /opt/deep_ocr/reco_chars.py libdc1394 error: Failed to initialize libdc1394 WARNING: Logging before InitGoogleLogging() is written to STDERR
。。。中间省略一些普通日志。。。
Traceback (most recent call last): File "/opt/deep_ocr/reco_chars.py", line 364, in
output_tag_to_max_proba = caffe_cls.predict_cv2_imgs(np_char_imgs)
File "/opt/deep_ocr/reco_chars.py", line 66, in predict_cv2_imgs
self._predict_cv2_imgs_sub(cv2_imgs, i, pos_end)
File "/opt/deep_ocr/reco_chars.py", line 53, in _predict_cv2_imgs_sub
item = (self.y_tag_json[str(index)],
KeyError: '5613'