pjialin / 12306-ocr Goto Github PK
View Code? Open in Web Editor NEW12306 验证码识别服务
License: Apache License 2.0
12306 验证码识别服务
License: Apache License 2.0
我是在PVE下开的虚拟机,简单查了下,应该和指令集有关,avx指令集?应该怎么搞,我没有独立的实体机了,虚拟机能搞的话,我也可以提供一个免费打码的节点,分担下大家的压力
code 400, message Bad request syntax ("\x16\x03\x01\x00Þ\x01\x00\x00Ú\x03\x03[³u¡\x13ÁC§\x99G\x7f»¶þú\÷k\x8b\x10/\xa0\x9e»È9þ\x8f\x96'É\x1f\x00\x00nÀ0À,À2À.À/À+À1À-\x00¥\x00£\x00¡\x00\x9f\x00¤\x00¢\x00\xa0\x00\x9eÀ(À$À\x14À")
错误如下,安装了libXext.so.6之后还是报错,不知道是什么原因?
Traceback (most recent call last):
File "main.py", line 1, in
from web import Web
File "/root/py12306/12306-ocr/web.py", line 5, in
from ocr.ml_predict import Predict
File "/root/py12306/12306-ocr/ocr/ml_predict.py", line 2, in
import cv2
File "/usr/local/python3/lib/python3.7/site-packages/cv2/init.py", line 3, in
from .cv2 import *
ImportError: libXext.so.6: cannot open shared object file: No such file or directory
使用docker部署
docker run -d -p 8000:8000 --rm pjialin/12306-ocr
访问
ip:8000,提示,Error: Requested URL / not found
ip:8000/check,提示,Error: Method GET not allowed for URL /check
如题,可能用户数量要比py12306大得多,就怕打码服务爆了
暂时还没有公布插件,征求一下P大的意见
这是什么意思,我已经下载了12306-ocr,放入了文件夹中,怎么更改原来helper中的api呢
Using TensorFlow backend.
2019-10-15 19:24:57,462 INFO: 正在下载模型文件...
2019-10-15 19:25:05,486 INFO: 下载成功
hulk@hulk:~/12306-ocr$ python main.py
Traceback (most recent call last):
File "main.py", line 8, in <module>
from web import Web
File "/home/hulk/12306-ocr/web.py", line 5, in <module>
from ocr.ml_predict import Predict
File "/home/hulk/12306-ocr/ocr/ml_predict.py", line 5, in <module>
import cv2, os
File "/home/hulk/.local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in <module>
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "main.py", line 8, in <module>
from web import Web
File "/home/hulk/12306-ocr/web.py", line 5, in <module>
from ocr.ml_predict import Predict
File "/home/hulk/12306-ocr/ocr/ml_predict.py", line 5, in <module>
import cv2, os
File "/home/hulk/.local/lib/python3.7/site-packages/cv2/__init__.py", line 3, in <module>
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.1.26 (from -r requirements.txt (line 28)) (from versions: none)
ERROR: No matching distribution found for opencv-python==4.1.1.26 (from -r requirements.txt (line 28))
试了好多次,都没有办法安装,大佬有办法解决吗 : )
按照我初步的理解, 这个只是一个辅助的作用, 使用更小的基础镜像有利于用户docker pull
的时候更快 pjialin/py12306#205 (comment)
您好,我使用Docker已经成功部署在本地,不需要任何配置,但是默认端口是8000,有些人会不知道;
还有不知道是否需要定时更新图片模型?
pip install -r requirements.txt
错误提示:
ERROR: Could not find a version that satisfies the requirement matplotlib>=3.0.2 (from -r requirements.txt (line 11)) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4)
ERROR: No matching distribution found for matplotlib>=3.0.2 (from -r requirements.txt (line 11))
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.