Skip to content

Commit c03840b

Browse files
committed
docs: update README
1 parent b9e6b5c commit c03840b

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/package_ocrweb.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Install environments
5555
run: |
56-
pip3 install Pillow pyinstaller Flask>=2.1.0 rapidocr_onnxruntime>=1.2.8 get_pypi_latest_version
56+
pip3 install Pillow pyinstaller Flask>=2.1.0 rapidocr get_pypi_latest_version
5757
5858
- name: Run pyinstaller
5959
id: run_pyinstaller
@@ -70,7 +70,7 @@ jobs:
7070
shell: bash
7171
env:
7272
ZIP_WIN_NAME: ${{ env.package_name }}-${{ steps.run_pyinstaller.outputs.VERSION }}-${{ matrix.os }}-${{ runner.arch }}-no-installer.zip
73-
Win_DIST_DIR: ${{ github.workspace }}\ocrweb\rapidocr_web\dist
73+
Win_DIST_DIR: ${{ github.workspace }}\rapidocr_web\dist
7474
run: |
7575
echo "ZIP_NAME=$ZIP_WIN_NAME" >> $GITHUB_OUTPUT
7676
echo "Win_PACKAGE_DIR=$Win_DIST_DIR\${{ env.package_name }}" >> $GITHUB_OUTPUT
@@ -114,13 +114,13 @@ jobs:
114114

115115
- name: Install environments
116116
run: |
117-
pip3 install Pillow pyinstaller Flask>=2.1.0 rapidocr_onnxruntime>=1.2.8 get_pypi_latest_version
117+
pip3 install Pillow pyinstaller Flask>=2.1.0 rapidocr get_pypi_latest_version
118118
119119
- name: Run pyinstaller
120120
id: run_pyinstaller
121121
shell: bash
122122
run: |
123-
cd ocrweb/rapidocr_web/
123+
cd rapidocr_web/
124124
pyinstaller ocrweb.spec
125125
cp -r static templates dist/${{ env.package_name }}
126126
rm dist/${{ env.package_name }}/cv2/opencv_videoio_ffmpe*.dll || echo "未找到opencv_videoio_ffmpeg"
@@ -130,7 +130,7 @@ jobs:
130130
id: concat_file_path
131131
env:
132132
ZIP_NAME: ${{ env.package_name }}-${{ steps.run_pyinstaller.outputs.VERSION }}-${{ matrix.os }}-${{ runner.arch }}-no-installer.zip
133-
Linux_DIST_DIR: ${{ github.workspace }}/ocrweb/rapidocr_web/dist
133+
Linux_DIST_DIR: ${{ github.workspace }}/rapidocr_web/dist
134134
run: |
135135
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_OUTPUT
136136
echo "Linux_PACKAGE_DIR=$Linux_DIST_DIR/${{ env.package_name }}" >> $GITHUB_OUTPUT

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515

1616
### 📖 简介
1717

18-
该库是`rapidocr_onnxruntime`的web版本,依赖最新版本的[`rapidocr_onnxruntime`](../rapidocr/rapidocr_onnxruntime.md)
18+
`rapidocr_web`是基于`rapidocr`库封装的web版OCR程序。它可以让小伙们快速在本地启动OCR服务,支持剪贴板、拖拽和选择图像文件上传识别,同时具有一键复制识别文本功能
1919

20-
如果想要离线部署,可以先手动下载[`rapidocr_onnxruntime`](https://pypi.org/project/rapidocr-onnxruntime/#files) whl包,再手动安装[`rapidocr_web`](https://pypi.org/project/rapidocr-web/#files) whl包来使用。
20+
整体项目采用前后端分离设计:
2121

22-
网页上显示的推理时间具体解释如下:
22+
- 前端:HTML + CSS + JavaScript
23+
- 后端:Flask
2324

24-
<div align="center">
25-
<img src="https://raw.githubusercontent.com/RapidAI/RapidOCR/ae529c2ba79e6cbf04c54caf2d24feb75e947ca4/assets/ocrweb_time.jpg" width="80%" height="80%">
26-
</div>
25+
UI来自Cursor,自适应移动端和PC端。相比于旧有版本(v0.x),现在版本(v1.x)更加现代化。
2726

2827
### 🛠️ 安装
2928

0 commit comments

Comments
 (0)