![](https://private-user-images.githubusercontent.com/160421895/320304659-691b9f30-7d5c-4b55-8af0-0e8f14b6a424.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMzg5NDQsIm5iZiI6MTcyNTEzODY0NCwicGF0aCI6Ii8xNjA0MjE4OTUvMzIwMzA0NjU5LTY5MWI5ZjMwLTdkNWMtNGI1NS04YWYwLTBlOGYxNGI2YTQyNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMVQyMTEwNDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MTE2NDVmNDI4MjI3ZDVlODU1YmZiMTllMDBjZjNjMjMzNWRmZDhkMzNmZGY1NjExZDBiN2Q0YjkxMTQ1NzY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.V7lNLdWqDi9ZA2ACO-K22_w7dPLwkKk96rykqBM2LD0)
本项目地址:ddddocr
ddddocr项目地址:ddddocr
建议python版本3.10 64位
# 安装依赖
pip install -r requirements.txt -i https://pypi.douban.com/simple
# 最简单运行方式
python ocr_server.py
git clone https://github.com:CHERWING/CHERWIN_OCR.git
# docker怎么安装?百度吧
cd CHERWIN_OCR
# 编译镜像
docker build -t cherwin_ocr .
# 运行镜像
docker run -p 3721:3721 -v /volume1/docker/ocr:/app --name cherwin_ocr cherwin_ocr
具体请看demo_api_b64.py或demo_api_bytes.py文件
正确返回示例:
{'result': 284}
{'result': 'iepv'}
{'result': [[50, 7, 67, 24]]}
{'result': 3}