pengcao / chinese_ocr Goto Github PK
View Code? Open in Web Editor NEW中文ocr识别
中文ocr识别
@pengcao 可否说明一下使用了哪个数据集训练的crnn
为什么可以识别例子里的的图片,test里面的其他图片识别的时候会报错
已放弃 核心已转储
我将训练结果用到手写样本进行测试,正确率几乎为0,模型没什么意义啊
D:\QQ\chinese_ocr-master\chinese_ocr-master> python pytorch_demo.py
Using TensorFlow backend.
Traceback (most recent call last):
File "pytorch_demo.py", line 8, in
import pytorch_model as model
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\pytorch_model.py", line 12, in
from ctpn.text_detect import text_detect
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\text_detect.py", line 3, in
from .ctpn.detectors import TextDetector
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\ctpn\detectors.py", line 10, in
from ..lib.fast_rcnn.nms_wrapper import nms
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\lib_init_.py", line 1, in
from . import fast_rcnn
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\lib\fast_rcnn_init_.py", line 2, in
from . import nms_wrapper
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\lib\fast_rcnn\nms_wrapper.py", line 2, in
from ..utils.cython_nms import nms as cython_nms
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\lib\utils_init_.py", line 1, in
from . import bbox
File "D:\QQ\chinese_ocr-master\chinese_ocr-master\ctpn\lib\utils\bbox.py", line 9
cimport numpy as np
^
SyntaxError: invalid syntax
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-th7tv7ue/grpcio/setup.py'"'"'; file='"'"'/tmp/pip-install-th7tv7ue/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-th7tv7ue/grpcio/pip-egg-info
cwd: /tmp/pip-install-th7tv7ue/grpcio/
Complete output (2 lines):
Found cython-generated files...
error in grpcio setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我用vgg训练了四个方向的分类,4万的数据,效果不理想。请问文字方向识别数据集是怎么样?
运行python demo.py时出现这个错误,怎么解决?
你好,请问有应用于身份证文字检测和识别吗?效果怎么样
如果需要安装tensorflow需要什么版本的
您好,想请教您如下两个问题?
1.请问您训练使用的训练集是开源的吗?大概有多大?不知道您是否方便分享一下。
2.训练出的模型训练了多少个epoch,大概用了多长时间?
期待回复,感谢。
请问大佬有没有识别的数据集
您好!我是一个新手,对文字识别这块比较有兴趣。要运行该项目的话是不是直接运行demo.py文件啊
你好,one_hot 函数默认长度是10,当超过活着小于10时,label值多余的都被标注0了,0的位置是‘,这会影响结果?这样标注不会错?
Tensor("Placeholder:0", shape=(?, ?, ?, 3), dtype=float32)
Tensor("conv5_3/conv5_3:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("rpn_conv/3x3/rpn_conv/3x3:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("lstm_o/Reshape_2:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("lstm_o/Reshape_2:0", shape=(?, ?, ?, 512), dtype=float32)
Tensor("rpn_cls_score/Reshape_1:0", shape=(?, ?, ?, 20), dtype=float32)
Tensor("rpn_cls_prob:0", shape=(?, ?, ?, ?), dtype=float32)
Tensor("Reshape_2:0", shape=(?, ?, ?, 20), dtype=float32)
Tensor("rpn_bbox_pred/Reshape_1:0", shape=(?, ?, ?, 40), dtype=float32)
Tensor("Placeholder_1:0", shape=(?, 3), dtype=float32)
2019-11-08 09:57:43.611347: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Tensor_name is : rpn_conv/3x3/biases
Tensor_name is : rpn_cls_score/weights
Tensor_name is : rpn_bbox_pred/biases
Tensor_name is : lstm_o/weights
Tensor_name is : lstm_o/bidirectional_rnn/fw/lstm_cell/bias
Tensor_name is : lstm_o/bidirectional_rnn/bw/lstm_cell/kernel
Tensor_name is : lstm_o/bidirectional_rnn/bw/lstm_cell/bias
Tensor_name is : conv5_3/weights
Tensor_name is : conv5_3/biases
Tensor_name is : lstm_o/biases
Tensor_name is : conv5_2/weights
Tensor_name is : conv2_2/weights
Tensor_name is : conv1_1/weights
Tensor_name is : conv4_2/weights
Tensor_name is : conv2_2/biases
Tensor_name is : conv2_1/biases
Tensor_name is : conv1_2/weights
Tensor_name is : conv4_1/biases
Tensor_name is : conv2_1/weights
Tensor_name is : rpn_cls_score/biases
Tensor_name is : conv1_2/biases
Tensor_name is : rpn_conv/3x3/weights
Tensor_name is : conv3_1/weights
Tensor_name is : conv4_3/weights
Tensor_name is : conv3_2/biases
Tensor_name is : rpn_bbox_pred/weights
Tensor_name is : conv3_2/weights
Tensor_name is : lstm_o/bidirectional_rnn/fw/lstm_cell/kernel
Tensor_name is : conv3_3/biases
Tensor_name is : conv5_2/biases
Tensor_name is : conv5_1/weights
Tensor_name is : conv3_3/weights
Tensor_name is : conv4_1/weights
Tensor_name is : conv1_1/biases
Tensor_name is : conv4_2/biases
Tensor_name is : conv3_1/biases
Tensor_name is : conv4_3/biases
Tensor_name is : conv5_1/biases
load vggnet done
Using TensorFlow backend.
Traceback (most recent call last):
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/zhaoyulu/web/chinese_ocr/model.py", line 16, in
from ocr.model import predict as ocr
File "/home/zhaoyulu/web/chinese_ocr/ocr/model.py", line 8, in
import keras.backend as K
File "/usr/local/lib/python3.6/dist-packages/keras/init.py", line 3, in
from . import utils
File "/usr/local/lib/python3.6/dist-packages/keras/utils/init.py", line 6, in
from . import conv_utils
File "/usr/local/lib/python3.6/dist-packages/keras/utils/conv_utils.py", line 9, in
from .. import backend as K
File "/usr/local/lib/python3.6/dist-packages/keras/backend/init.py", line 1, in
from .load_backend import epsilon
File "/usr/local/lib/python3.6/dist-packages/keras/backend/load_backend.py", line 90, in
from .tensorflow_backend import *
File "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 54, in
get_graph = tf_keras_backend.get_graph
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'
方便的话请尽量多包的版本号,十分感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.