Metadata-Version: 2.4
Name: wx-ocr
Version: 0.1.3
Summary: 超级简单的微信 OCR - 一行代码识别图片文字 | Super simple WeChat OCR
Author: wx-ocr contributors
License: MIT
Project-URL: Original Project, https://github.com/kanadeblisst00/wechat_ocr
Keywords: wechat,ocr,text-recognition,image-processing,微信,文字识别,wx
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: protobuf>=3.20.0
Dynamic: license-file

# wx-ocr

一行代码识别图片文字，无需安装微信

## 安装

```bash
pip install wx-ocr
```

## 使用

### Python API

```python
from wx_ocr import ocr

# 识别图片
texts = ocr("image.png", return_text_only=True)
print(texts)  # ['文字1', '文字2', ...]

# 获取完整结果（包含位置信息）
result = ocr("image.png")
for item in result['ocrResult']:
    print(item['text'], item['location'])

# 批量识别
from wx_ocr import ocr_batch
results = ocr_batch(["1.png", "2.png", "3.png"], return_text_only=True)
```

### 命令行

```bash
# 识别图片
wx-ocr image.png

# JSON 格式输出
wx-ocr --format json image.png

# 批量处理
wx-ocr *.png

# 保存结果
wx-ocr --save --output results/ image.png
```

## 说明

- 仅支持 Windows
- 需要 Python 3.8+
- 无需安装微信（项目自带 OCR 文件）
- 基于 [wechat_ocr](https://github.com/kanadeblisst00/wechat_ocr) 开发

## License

MIT
