Skip to content

Commit

Permalink
🎉 初始化提交
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Apr 28, 2024
1 parent 1438946 commit 0405b60
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY model/ ~/.cnocr/2.3/

RUN apt-get update && apt-get install -y python3-opencv libglib2.0-0 libsm6 libxext6 libxrender-dev && rm -rf /var/lib/apt/lists/*

RUN pip install -U pip && pip install onnxruntime && pip install cnocr[serve] --index-url https://mirrors.aliyun.com/pypi/simple
RUN pip install -U pip && pip install onnxruntime && pip install cnocr[serve]

CMD ["cnocr", "serve", "-H", "0.0.0.0", "-p", "8501"]

Expand Down
10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## 项目描述

CnOCR 直接内置模型,无需下载,直接使用。方便 AI模块直接发起调用。




```
docker run -d -p 8501:8501 --name ocr registry.cn-hangzhou.aliyuncs.com/pigx/ocr:latest
```

0 comments on commit 0405b60

Please sign in to comment.