DayBreak-u / chineseocr_lite

超轻量级中文ocr,支持竖排文字识别, 支持ncnn、mnn、tnn推理 ( dbnet(1.8M) + crnn(2.5M) + anglenet(378KB)) 总模型仅4.7M
GNU General Public License v2.0
11.84k stars 2.27k forks source link

python3.6运行,报错,上传图片时就报错。 #238

Open xinsuinizhuan opened 4 years ago

xinsuinizhuan commented 4 years ago

图片 server is running: 192.168.1.3:8089 ERROR:tornado.application:Uncaught exception POST /api/tr-run/ (192.168.1.3) HTTPServerRequest(protocol='http', host='192.168.1.3:8089', method='POST', uri='/api/tr-run/', version='HTTP/1.1', remote_ip='192.168.1.3') Traceback (most recent call last): File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\web.py", line 1592, in _execute result = yield result File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 1133, in run value = future.result() File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 307, in wrapper result = func(*args, kwargs) File "E:\Anaconda_software\envs\nilmtk-env\lib\types.py", line 248, in wrapped coro = func(*args, *kwargs) File "F:\my_item\chineseocr_lite-onnx\backend\webInterface\tr_run.py", line 93, in post img.save("../web_imgs/{}.jpg".format(time_now)) File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\PIL\Image.py", line 2155, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '../web_imgs/2020-08-16-20_54_52.jpg' ERROR:tornado.access:500 POST /api/tr-run/ (192.168.1.3) 856.51ms ERROR:tornado.application:Uncaught exception POST /api/tr-run/ (192.168.1.3) HTTPServerRequest(protocol='http', host='192.168.1.3:8089', method='POST', uri='/api/tr-run/', version='HTTP/1.1', remote_ip='192.168.1.3') Traceback (most recent call last): File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\web.py", line 1592, in _execute result = yield result File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 1133, in run value = future.result() File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 307, in wrapper result = func(args, kwargs) File "E:\Anaconda_software\envs\nilmtk-env\lib\types.py", line 248, in wrapped coro = func(*args, **kwargs) File "F:\my_item\chineseocr_lite-onnx\backend\webInterface\tr_run.py", line 93, in post img.save("../web_imgs/{}.jpg".format(time_now)) File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\PIL\Image.py", line 2155, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '../web_imgs/2020-08-16-20_58_37.jpg' ERROR:tornado.access:500 POST /api/tr-run/ (192.168.1.3) 68.96ms

Donaghys commented 4 years ago

我也遇到这个问题了,请问你解决了吗?

xinsuinizhuan commented 4 years ago

我也遇到这个问题了,请问你解决了吗?

在当前目录下新建一个web_imgs目录即可。

siyuzhong94 commented 3 years ago

图片 server is running: 192.168.1.3:8089 ERROR:tornado.application:Uncaught exception POST /api/tr-run/ (192.168.1.3) HTTPServerRequest(protocol='http', host='192.168.1.3:8089', method='POST', uri='/api/tr-run/', version='HTTP/1.1', remote_ip='192.168.1.3') Traceback (most recent call last): File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\web.py", line 1592, in _execute result = yield result File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 1133, in run value = future.result() File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 307, in wrapper result = func(*args, kwargs) File "E:\Anaconda_software\envs\nilmtk-env\lib\types.py", line 248, in wrapped coro = func(*args, *kwargs) File "F:\my_item\chineseocr_lite-onnx\backend\webInterface\tr_run.py", line 93, in post img.save("../web_imgs/{}.jpg".format(time_now)) File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\PIL\Image.py", line 2155, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '../web_imgs/2020-08-16-20_54_52.jpg' ERROR:tornado.access:500 POST /api/tr-run/ (192.168.1.3) 856.51ms ERROR:tornado.application:Uncaught exception POST /api/tr-run/ (192.168.1.3) HTTPServerRequest(protocol='http', host='192.168.1.3:8089', method='POST', uri='/api/tr-run/', version='HTTP/1.1', remote_ip='192.168.1.3') Traceback (most recent call last): File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\web.py", line 1592, in _execute result = yield result File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 1133, in run value = future.result() File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\tornado\gen.py", line 307, in wrapper result = func(args, kwargs) File "E:\Anaconda_software\envs\nilmtk-env\lib\types.py", line 248, in wrapped coro = func(*args, **kwargs) File "F:\my_item\chineseocr_lite-onnx\backend\webInterface\tr_run.py", line 93, in post img.save("../web_imgs/{}.jpg".format(time_now)) File "E:\Anaconda_software\envs\nilmtk-env\lib\site-packages\PIL\Image.py", line 2155, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: '../web_imgs/2020-08-16-20_58_37.jpg' ERROR:tornado.access:500 POST /api/tr-run/ (192.168.1.3) 68.96ms

老哥,解决了么,我这边也遇到了问题,没法解决,如果解决了方便告知一下咋做的么