File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616</div >
1717
18- ### 简介
18+ ### 📖 简介
1919
2020- 该包是将[ rapidocr] ( ./rapidocr/install.md ) 库做了API封装,采用[ FastAPI] ( https://fastapi.tiangolo.com/ ) + [ uvicorn] ( https://www.uvicorn.org/ ) 实现。
2121- 定位是一个快速调用` rapidocr ` 的API接口,没有考虑多进程处理并发请求,如果有这需求的小伙伴,可以看看[ gunicorn] ( https://gunicorn.org/ ) 等。
2222
23- ### 安装
23+ ### 🛠️ 安装
2424
2525``` bash linenums="1"
2626pip install rapidocr_api
2727```
2828
29- ### 使用
29+ ### 🚀 使用
3030
31- #### 启动服务
31+ #### ▶️ 启动服务
3232
3333``` bash
3434# 默认参数启动
@@ -38,13 +38,15 @@ rapidocr_api
3838rapidocr_api -ip 0.0.0.0 -p 9005 -workers 2
3939```
4040
41- #### 调用服务
41+ #### 📞 调用服务
42+
43+ 💻 命令行使用:
4244
4345``` bash
4446curl -F image_file=@1.png http://0.0.0.0:9003/ocr
4547```
4648
47- Python脚本使用:
49+ 🐍 Python脚本使用:
4850
4951``` python
5052import requests
@@ -59,6 +61,6 @@ with open(img_path, 'rb') as f:
5961print (response.json())
6062```
6163
62- ### 文档
64+ ### 📚 文档
6365
6466完整文档请移步:[ docs] ( https://rapidai.github.io/RapidOCRDocs/main/install_usage/rapidocr_api/usage/ )
You can’t perform that action at this time.
0 commit comments