修复requirements中pillow版本问题

This commit is contained in:
sml2h3
2023-11-29 17:16:30 +08:00
parent c1c4408ea4
commit 436240d43f
4 changed files with 23 additions and 16 deletions
+6 -2
View File
@@ -252,11 +252,15 @@ cv2.imwrite("result.jpg", im)
[crawlab](https://github.com/crawlab-team/crawlab)
# 交流群 加我好友拉你进群
# 交流群 个人微信太懒了不一定会通过
![群链接](https://cdn.wenanzhe.com/img/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220929101325.jpg!/scale/50)
![群链接](https://cdn.wenanzhe.com/img/group.jpg!/scale/50)
![Test](https://cdn.wenanzhe.com/img/mmqrcode1640418911274.png!/scale/50)
# 主要贡献者
<span style="margin: 0 5px;" ><a href="https://github.com/kerlomz" ><img src="https://cdn.wenanzhe.com/img/16838877.jpg!/scale/50" /></a></span>
## Star 历史
[![Star History Chart](https://api.star-history.com/svg?repos=sml2h3/ddddocr&type=Date)](https://star-history.com/#sml2h3/ddddocr&Date)
+13 -11
View File
@@ -1,11 +1,8 @@
![header.png](https://z3.ax1x.com/2021/07/02/R6Ih28.jpg)
![header.png](https://cdn.wenanzhe.com/img/68747470733a2f2f7a332e617831782e636f6d2f323032312f30372f30322f5236496832382e6a7067.jfif)
# 带带弟弟OCR通用验证码识别SDK免费开源版
# 当前版本为1.4.8
# 当前版本为1.4.9
## 1.4.3更新内容
@@ -157,12 +154,12 @@ with open("test.jpg", 'rb') as f:
res = ocr.classification(image)
print(res)
```
由于事实上确实在一些图片上老版本的模型识别效果比新模型好,特地这次更新把老模型也加入进去了,通过在初始化ddddocr的时候使用old参数即可快速切换模型
通过在初始化ddddocr的时候使用beta参数即可快速切换模型
```python
import ddddocr
ocr = ddddocr.DdddOcr(old=True)
ocr = ddddocr.DdddOcr(beta=True)
with open("test.jpg", 'rb') as f:
image = f.read()
@@ -231,7 +228,7 @@ cv2.imwrite("result.jpg", im)
## 环境支持
`python <= 3.10`
`python <= 3.9`
`Windows/Linux/Macos..`
@@ -255,10 +252,15 @@ cv2.imwrite("result.jpg", im)
[crawlab](https://github.com/crawlab-team/crawlab)
# 交流群 加我好友拉你进群
# 交流群 个人微信太懒了不一定会通过
![群链接](https://cdn.wenanzhe.com/img/1d5ec7445d745a4d6790df352e1abb5.png!/scale/50)
![群链接](https://cdn.wenanzhe.com/img/group.jpg!/scale/50)
![Test](https://cdn.wenanzhe.com/img/mmqrcode1640418911274.png!/scale/50)
# 主要贡献者
<span style="margin: 0 5px;" ><a href="https://github.com/kerlomz" ><img src="https://cdn.wenanzhe.com/img/16838877.jpg!/scale/50" /></a></span>
## Star 历史
[![Star History Chart](https://api.star-history.com/svg?repos=sml2h3/ddddocr&type=Date)](https://star-history.com/#sml2h3/ddddocr&Date)
+1 -1
View File
@@ -1,4 +1,4 @@
onnxruntime
Pillow=9.5.0
Pillow==9.5.0
numpy
opencv-python
+3 -2
View File
@@ -14,7 +14,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="ddddocr",
version="1.4.8",
version="1.4.9",
author="sml2h3",
description="带带弟弟OCR",
long_description=long_description,
@@ -27,11 +27,12 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=['numpy', 'onnxruntime', 'Pillow', 'opencv-python-headless'],
python_requires='<3.11',
python_requires='<3.12',
include_package_data=True,
install_package_data=True,
)