Comments (2)
日志打出来了。请大家帮看看什么原因
2020-05-26T02:46:53.627844347Z 132.228.75.51:58994 - - [26/May/2020 02:46:53] "HTTP/1.1 GET /text" - 200 OK
2020-05-26T02:47:22.230907913Z Traceback (most recent call last):
2020-05-26T02:47:22.230945799Z File "/usr/local/lib/python3.6/dist-packages/web/application.py", line 257, in process
2020-05-26T02:47:22.230969132Z return self.handle()
2020-05-26T02:47:22.230974368Z File "/usr/local/lib/python3.6/dist-packages/web/application.py", line 248, in handle
2020-05-26T02:47:22.230978681Z return self._delegate(fn, self.fvars, args)
2020-05-26T02:47:22.230982383Z File "/usr/local/lib/python3.6/dist-packages/web/application.py", line 488, in _delegate
2020-05-26T02:47:22.230986142Z return handle_class(cls)
2020-05-26T02:47:22.230989660Z File "/usr/local/lib/python3.6/dist-packages/web/application.py", line 466, in handle_class
2020-05-26T02:47:22.230993346Z return tocall(*args)
2020-05-26T02:47:22.230996880Z File "app.py", line 73, in POST
2020-05-26T02:47:22.231000618Z res = job(uuid,url,imgString,iscut,isclass,billModel,ip)
2020-05-26T02:47:22.231004128Z File "app.py", line 32, in job
2020-05-26T02:47:22.231007730Z data = text_ocr(image,scale,maxScale,TEXT_LINE_SCORE)
2020-05-26T02:47:22.231011536Z File "/root/darknet-ocr/dnn/main.py", line 68, in text_ocr
2020-05-26T02:47:22.231015294Z text = ocrModel(tmpImg)
2020-05-26T02:47:22.231102694Z File "/root/darknet-ocr/dnn/ocr.py", line 39, in predict
2020-05-26T02:47:22.231166654Z return predict_cpu(image)
2020-05-26T02:47:22.231183885Z File "/root/darknet-ocr/dnn/ocr.py", line 62, in predict_cpu
2020-05-26T02:47:22.231198789Z y_pred = ocrNet.forward()
2020-05-26T02:47:22.231211739Z cv2.error: OpenCV(4.0.1) /root/opencv-for-darknet/opencv-4.0.1/modules/dnn/src/dnn.cpp:778: error: (-215:Assertion failed) mapIt != reuseMap.end() in function 'numReferences'
2020-05-26T02:47:22.231223358Z
2020-05-26T02:47:22.231236125Z
2020-05-26T02:47:22.231246831Z 132.228.75.51:58994 - - [26/May/2020 02:47:22] "HTTP/1.1 POST /text" - 500 Internal Server Error
from darknet-ocr.
很简单,你的图片格式是png的,但文件名写着xxx.jpg, 格式是按文件名判断的。。。
如果你是linux或用git bash ,可以用file xxxx来看文件真正的格式,而不是看文件名
from darknet-ocr.
Related Issues (20)
- 这个能支持繁体识别吗
- Centos7 可以在Python里面调用吗?
- 什么时候可以支持opencv dnn模型? HOT 2
- 提取一张图片需要10多秒,这个速度能不能优化下,太慢了哇 HOT 3
- 利用docker镜像服务把识别结果保存到本地(不需要编译GPU) HOT 1
- 如何使用多个gpu呢(默认是gpu:0)
- english/ocr.weights not found 404
- GPU out of
- 请问几个基本参数scale等的含义
- 想问下作者为什么不保存为pytorch模型?方便加载啊
- 训练代码
- 没有api接口么
- 请问没有英文权重吗? HOT 2
- 模型下载不了,能传个网盘吗? HOT 1
- darknet-ocr CPU版本和GPU版本docker镜像都已完成 HOT 3
- ocr技术交流群 HOT 1
- 关于模型结构 HOT 1
- 可以出个c/C++调用例程不? HOT 1
- 这个项目会有chineseocr的内存泄露问题吗
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 darknet-ocr.