alisen39 / trwebocr Goto Github PK
View Code? Open in Web Editor NEW开源易用的中文离线OCR,识别率媲美大厂,并且提供了易用的web页面及web的接口,方便人类日常工作使用或者其他程序来调用~
License: Apache License 2.0
开源易用的中文离线OCR,识别率媲美大厂,并且提供了易用的web页面及web的接口,方便人类日常工作使用或者其他程序来调用~
License: Apache License 2.0
您好,请问可以训练自己的模型么
请问一下,“识别的文字”区域的按行输出具体是怎么实现的呀?
前端报错:Uncaught (in promise) TypeError: Cannot read property 'msg' of undefined
at Index.vue:199
后端打印:2020-05-08 13:11:15,776 - backend.webInterface.tr_run - ERROR - {"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
ERROR:backend.webInterface.tr_run:{"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
2020-05-08 13:11:36,915 - backend.webInterface.tr_run - ERROR - {"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
ERROR:backend.webInterface.tr_run:{"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
2020-05-08 13:11:45,388 - backend.webInterface.tr_run - ERROR - {"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
ERROR:backend.webInterface.tr_run:{"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
2020-05-08 13:13:00,152 - backend.webInterface.tr_run - ERROR - {"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
ERROR:backend.webInterface.tr_run:{"code": 400, "msg": "\u4ea7\u751f\u4e86\u4e00\u70b9\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u65e5\u5fd7", "err": "274"}
用docker镜像pull后,然后docker run 后,一直报这个错。
`2020-10-27 07:42:45,851 INFO success: trwebocr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-10-27 07:42:48,861 INFO exited: trwebocr (exit status 1; not expected)
2020-10-27 07:42:49,864 INFO spawned: 'trwebocr' with pid 1385`
您好,我们是一家央企的人工智能公司(中译语通科技股份有限公司)主要从事大数据、智慧城市、机器翻译、知识图谱、语音识别、ocr识别等技术的研发,我是这边的技术负责人在github上看到您的开源系统很感兴趣,希望和您进一步沟通交流。
您可以加我微信:18611586751
怎么将该模型多线程or多进程部署,以实现提高批处理调用速度?
没有网络无法成功启动,怎么能启动?需要授权?作者联系一下
FileNotFoundError: [Errno 2] No such file or directory: '/home/test/trwebocr/TrWebOCR-master/backend/logs/log.log'
mkdir backend/logs
python backend/main.py
Service started successfully
Traceback (most recent call last):
File "backend/main.py", line 11, in
from backend.webInterface import tr_run
File "/Users/fizz/the-world/TrWebOCR/backend/webInterface/tr_run.py", line 8, in
import tr
File "/Users/fizz/the-world/TrWebOCR/backend/tr/init.py", line 2, in
from .tr import *
File "/Users/fizz/the-world/TrWebOCR/backend/tr/tr.py", line 24, in
_libc = ctypes.cdll.LoadLibrary(os.path.join(_BASEDIR, 'libtr.so'))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 442, in LoadLibrary
return self._dlltype(name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/fizz/the-world/TrWebOCR/backend/tr/libtr.so, 6): no suitable image found. Did find:
/Users/fizz/the-world/TrWebOCR/backend/tr/libtr.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
/Users/fizz/the-world/TrWebOCR/backend/tr/libtr.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
在实际测试中,金额前有“-” 或是文字中有“-” 的,有时候会识别不出来。修改缩放比例后,有改进,但是还其他图片还是有没识别出来的情况,
请问 这个如何提升?
谢谢
由于是无网络环境的运行,新版需要验证Tr,无法使用,想问哪个版本是用的旧版Tr,可以无网络直接运行呢
大佬,
postman调用返回报错:
您好,想问下该项目有算法原理介绍么,想学习下
怎么调用GPU版本?
希望增加http跨域支持
为什么我的树莓派3B,Docker 容器跑不起来?
import requests
import cv2
import base64
import json
url3 = 'http://192.168.1.102:8089/api/tr-run'
image = cv2.imread('a.png')
image = base64.b64encode(image)
data = {'img': image.decode('utf-8'), 'compress': 0}
json_mod = json.dumps(data)
res = requests.post(url=url3, data=json_mod)
print(res)
请问下这段代码为什么会报405错误?
我测试了下,服务启动,用着用着就自动杀掉了
centos 8 下启动的docker
每使用一次,内存好像没释放
后台用supervisor启动了4个进程,python用进程池4个进程开启tr.run函数无法返回,改成1个进程可以正常返回。请问是啥问题?谢谢。
请问下各位大佬在局域网下如何运行
不连接上互联网就是no server available,连上互联网就好了。
大神,启动的时候需要连接哪个地址校验?我们需要针对性开个外网。如果要tr作者授权,需要怎么找到作者?
code_Segmentation fault (core dumped)
想做一个pdf批量转word的接口,但是识别速度有点慢,尤其是在目标多的图片中表现得更慢。求告知GPU加速的方法,感激不尽
root@raspberrypi:~/TrWebOCR-master# python backend/main.py
Traceback (most recent call last):
File "backend/main.py", line 10, in
from backend.webInterface import tr_run
File "/root/TrWebOCR-master/backend/webInterface/tr_run.py", line 8, in
import tr
File "/root/TrWebOCR-master/backend/tr/init.py", line 2, in
from .tr import *
File "/root/TrWebOCR-master/backend/tr/tr.py", line 6, in
import cv2
ModuleNotFoundError: No module named 'cv2'
有没有设置指定识别的语言类型?
CPU有点慢,一张要几秒钟
mmmz/trwebocr
itplanes01/trwebocr
missing file
目前安装的软件版本如下,可以正常使用
pip list
Package Version
certifi 2020.4.5.1
libtorch 1.2.0.1
numpy 1.18.4
opencv-python 4.2.0.34
Pillow 7.1.2
pip 20.0.2
setuptools 46.1.3.post20200330
tornado 6.0.4
tr 1.0.0.3
wheel 0.34.2
Traceback (most recent call last):
File "backend/main.py", line 10, in
from backend.webInterface import tr_run
File "c:\Projects\TrWebOCR\TrWebOCR-master\backend\webInterface\tr_run.py", line 8, in
import tr
File "c:\Projects\TrWebOCR\TrWebOCR-master\backend\tr_init_.py", line 2, in
from .tr import *
File "c:\Projects\TrWebOCR\TrWebOCR-master\backend\tr\tr.py", line 22, in
_libc = ctypes.cdll.LoadLibrary(os.path.join(BASEDIR, 'libtr.dll'))
File "C:\ProgramData\Miniconda3\lib\ctypes_init.py", line 442, in LoadLibrary
return self.dlltype(name)
File "C:\ProgramData\Miniconda3\lib\ctypes_init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
6666666666666666666666666666666666666666666666666666666
多谢提供这么好的工具,
发现个问题,如果用程序连续调用WEB接口,大概执行不超过20次,会发生拒绝连接的问题,是加了什么处理了吗,到什么数量就断一下
I understand that webpack is used in this project to minify the vuejs part of this project,
but I can't get it the original version back.
I used the shuji CLI to restore it but it was very distorted and didn't work, so any help with that ?
thanks.
8核8g 使用的时候cpu一直超频,求教如何解决
现在的实现把一些confidence =0.2的都输出来了,全是错的,能调一下阈值就好了
大神,能离线使用吗?
when testing,how to change gpu_id or use multi-gpu.
4核4G内存的,而且仅限办公室自己用,似乎很慢,请问有什么改进的办法吗?而且手机端识别更慢,用Post,img,base64我等了将近1分钟,是不是我哪里设置不对?比如我想提高速度,降低精度,该怎么做?谢谢!
蛮不错的前端页面,所以想复用下,
发现前端代码是编译后的,
可否给出前端的源码,
多谢。
这个项目非常适合本地部署,希望后续版本能够支持多张图片的批量识别及pdf中的图片识别
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.