mirror of
https://github.com/netfun2000/ddddocr.git
synced 2026-08-13 04:12:06 +08:00
修复requirements中pillow版本问题
This commit is contained in:
@@ -252,11 +252,15 @@ cv2.imwrite("result.jpg", im)
|
||||
|
||||
[crawlab](https://github.com/crawlab-team/crawlab)
|
||||
|
||||
# 交流群 (加我好友拉你进群)
|
||||
# 交流群 (个人微信太懒了不一定会通过)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
# 主要贡献者
|
||||
|
||||
<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 历史
|
||||
|
||||
[](https://star-history.com/#sml2h3/ddddocr&Date)
|
||||
|
||||
+13
-11
@@ -1,11 +1,8 @@
|
||||

|
||||

|
||||
|
||||
# 带带弟弟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)
|
||||
|
||||
# 交流群 (加我好友拉你进群)
|
||||
# 交流群 (个人微信太懒了不一定会通过)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
# 主要贡献者
|
||||
|
||||
|
||||
<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 历史
|
||||
|
||||
[](https://star-history.com/#sml2h3/ddddocr&Date)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
onnxruntime
|
||||
Pillow=9.5.0
|
||||
Pillow==9.5.0
|
||||
numpy
|
||||
opencv-python
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user