Clancy
(Clancy Wang)
1
- 12.11更新
感谢各位热佬指教,弄了一个API,怎么说呢…差强人意吧,放出来试试
用的ddddocr
curl -X POST \
https://ocrapi.gits.one/?ocr \
-H "Authorization: Bearer fivl7VyjCAYWmUgWj1psGfxz71aqFHmOFSsdWdyEjipSWiQZUXzc0E039PQszBzu" \
-F "image=@captcha_img.png"
vps配置: 1h2g, 64g ssd
想实现一个图像验证码识别API(搞注册鸡),比如这样:
搜了一圈教程,好多都需要跑显卡算力…
这方面小白,不太懂,希望大佬指教
9 个赞
cpu推理也行吧,找找识别captcha的torch库版本的模型,应该gh上一抓一大把,一堆人做这种text类型的验证码模型
2 个赞
model
(model)
6
带带弟弟识别率怎么样 ,我有试过即使用多模态大模型 ,识别率也一般
Clancy
(Clancy Wang)
8
这个报错了欸…
已解决:
python3 -m pip install --upgrade pip setuptools wheel
apt update && apt install -y cmake
python3 -m pip install numpy
python3 -m pip install numpy==1.23.5
python3 -m pip install ddddocr --no-build-isolation
Ghidra
()
10
请问能不能把文字版报错发一下
这个模糊的深红色看得眼睛要瞎了
为啥我看不到签名。°(°¯᷄◠¯᷅°)°。
怎么才能看到(๑•̌.•̑๑)ˀ̣ˀ̣
Clancy
(Clancy Wang)
12
大约是这样:
f1 Lename=f1n.name】File "/root/captcha/captcha/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.
whl/pytoml/parser.py",line 370,in loadstoks.expect('=','expected_equals')File "/root/captcha/captcha/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.
wh1/pytoml/parser.py",line 250,in expectself.error(error_text)File "/root/captcha/captcha/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.
whl/pytoml/parser.py",line 253,in errorraise TomlError(message,self.pos[o][0],self.pos[o][1],self.-filename)pytoml.core.TomlError:/tmp/pip-install-y00y26zo/cmake/pyproject.toml(56,6):expected_equalsCommand "/root/captcha/captcha/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rg8vz6ho --no-warn-script-location --no-binary none:--only-binary none:i https://pypi.org/simple cmake>=3.1 "numpy==1.13.3;python_version=='3.6'and plat form_machine !
aarch64'and platform-machine !
arm64"numpy==1.17.0;python version--3.7'and platform machine !=aarch64'and platform.machine !=arm64 "numpy==1.17.5;python-version==3.8'and platform_machine !aarch64'and platform_machine !=arm64'"numpy==1.19.3;python version<'3.9'and sys_platform =linux'and platform_machine ='aarch64"numpy==121.0:python_version<'3.9'and sys-plat form =='darwin'and platform_machine =='arm64 "numpy>-2.0.0:python version>=3.9'"pip scikit-build>=0.14.0 setuptools=-59.2.0"failed with error code 2 in None(captcha)root@debian:~/captcha#
Clancy
(Clancy Wang)
14
>>> image = open("downloadfile.png", "rb").read()
>>> result = ocr.classification(image)
>>> print(result)
xuBz
这个识别错了
?说不定多试几个可能好些
seventy3
(seventy3)
19
ddddocr, cnocr, paddleocr
3 个赞