Skip to content

Commit

Permalink
fix(rapidocr_api): 补充依赖,指定版本号 (#305)
Browse files Browse the repository at this point in the history
* 补充依赖,指定版本号

补充依赖并指定版本1.3.25
rapidocr-onnxruntime 当前版(1.4.3)某些情况下会漏字

* Update README.md

* Update README.md
  • Loading branch information
imweijh authored Dec 25, 2024
1 parent 6bcabdd commit 9824aef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app

RUN set -eux; \
pip install --no-cache-dir rapidocr_api -i https://mirrors.aliyun.com/pypi/simple; \
pip install --no-cache-dir rapidocr_api pillow rapidocr-onnxruntime==1.3.25 -i https://mirrors.aliyun.com/pypi/simple; \
pip uninstall -y opencv-python; \
pip install --no-cache-dir opencv-python-headless -i https://mirrors.aliyun.com/pypi/simple

Expand Down
20 changes: 20 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
### See [Documentation](https://rapidai.github.io/RapidOCRDocs/install_usage/rapidocr_api/usage/)

build时使用宿主的网络
```
docker build -t rapidocr_api:0.1.4 --network host .
```

使用宿主上的代理
```
docker build -t rapidocr_api:0.1.4 --network host --build-arg HTTP_PROXY=http://127.0.0.1:8888 --build-arg HTTPS_PROXY=http://127.0.0.1:8888 .
```

调试运行:
```
docker run --rm -p 9003:9003 --name rapidocr_api rapidocr_api:0.1.4
```

运行:
```
docker run -d -p 9003:9003 --name rapidocr_api rapidocr_api:0.1.4
```

0 comments on commit 9824aef

Please sign in to comment.