Skip to content

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

update README

SWHLa4b5452fd181
diff --git a/.github/workflows/windows-all-build.yaml b/.github/workflows/windows-all-build.yaml
index eaed923..c129061 100644
--- a/.github/workflows/windows-all-build.yaml
+++ b/.github/workflows/windows-all-build.yaml
@@ -1,12 +1,12 @@
name: CMake-windows-x86-x64
-on:
+on:
push:
branches:
- - 'main'
+ - 'develop'
tags:
- "*"
-
+
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -25,7 +25,7 @@ jobs:
- name: Install 7Zip PowerShell Module
shell: powershell
run: Install-Module 7Zip4PowerShell -Force -Verbose
-
+
- uses: actions/checkout@v2
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
@@ -45,7 +45,7 @@ jobs:
with:
url: "https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-win-x86-1.7.0.zip"
target: public/
-
+
- uses: suisei-cn/actions-download-file@v1
id: downloadfile3 # Remember to give an ID if you need the output filename
name: Download Opencv Library
@@ -56,14 +56,14 @@ jobs:
run: |
mkdir c:\rapidocr
- name: Decompress
- shell: powershell
+ shell: powershell
run: |
Expand-7Zip -ArchiveFileName public/onnxruntime-win-x64-1.7.0.zip -TargetPath c:\rapidocr\
Expand-7Zip -ArchiveFileName public/onnxruntime-win-x86-1.7.0.zip -TargetPath c:\rapidocr\
-
+
- name: opencv install
run: |
- Expand-7Zip -ArchiveFileName public/opencv-4.5.1-windows-vs2019.7z -TargetPath c:\rapidocr\
+ Expand-7Zip -ArchiveFileName public/opencv-4.5.1-windows-vs2019.7z -TargetPath c:\rapidocr\
- name: list all file
shell: cmd
run: |
@@ -75,8 +75,8 @@ jobs:
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build
- # Note the current convention is to use the -S and -B options here to specify source
- # and build directories, but this is only available with CMake 3.13 and higher.
+ # Note the current convention is to use the -S and -B options here to specify source
+ # and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A x64
@@ -91,8 +91,8 @@ jobs:
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/buildx86
- # Note the current convention is to use the -S and -B options here to specify source
- # and build directories, but this is only available with CMake 3.13 and higher.
+ # Note the current convention is to use the -S and -B options here to specify source
+ # and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A win32
- name: Build-x86
@@ -100,14 +100,14 @@ jobs:
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
-
+
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
- # Execute tests defined by the CMake configuration.
+ # Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE
-
+
- name: PackZip
working-directory: ${{github.workspace}}/release
shell: cmd
@@ -127,9 +127,9 @@ jobs:
cp c:/rapidocr/onnxruntime-win-x64-1.7.0/lib/onnxruntime.dll ${{github.workspace}}\release\x64\
cp c:/rapidocr/onnxruntime-win-x86-1.7.0/lib/onnxruntime.dll ${{github.workspace}}\release\x86\
dir /s ${{github.workspace}}\release
- powershell compress-7zip -path ${{github.workspace}}\release -ArchiveFileName d:\rapidocr-win-all.zip
+ powershell compress-7zip -path ${{github.workspace}}\release -ArchiveFileName d:\rapidocr-win-all.zip
dir d:\*.zip
-
+
- name: prepare_release
uses: srfrnk/current-time@master
id: prepare_release
@@ -148,15 +148,14 @@ jobs:
draft: false
prerelease: false
- name: Upload Release Asset
- id: upload-release-asset
+ id: upload-release-asset
# 只有create_release成功得到输出才继续
if: steps.create_release.outputs.upload_url
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: d:\rapidocr-win-all.zip
- asset_name: rapidocr-win-all.zip
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: d:\rapidocr-win-all.zip
+ asset_name: rapidocr-win-all.zip
asset_content_type: application/zip
-
diff --git a/FAQ.md b/FAQ.md
index 9278f63..ad6acb4 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -4,13 +4,10 @@
**A:** 在 padding 参数中添加一个值 ,默认是0,你可以添加5或10, 甚至更大,直到能识别为止。注意不要添加过大,会浪费内存。
-#### Q2: ONNXRuntime 1.7 下出错
+#### Q2: onnxruntime 1.7 下出错
-**A:** python模块下模型文件已经更新 (`python\readme.md`下相应下载链接)
+**A:** 由于模型只支持`onnxruntime=1.5.0`导致,请更新模型(`python\README.md`下相应下载链接)
#### Q3: 模型下载地址
-**A:** 包括20种左右语言支持
-
-
-
+**A:** [提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)
diff --git a/README.md b/README.md
index 87f0335..d168453 100755
--- a/README.md
+++ b/README.md
@@ -12,8 +12,12 @@
- 基于百度的开源PaddleOCR 模型及训练,任何人可以使用本推理库,也可以根据自己的需求使用百度的paddlepaddle 框架进行模型优化。
-## 重要说明
+## 近期更新
+#### 2021-06-08 update
+- 整理仓库,统一模型下载路径
+- 完善相关说明文档
+#### 2021-04-18 update
- 新模型已经完全兼容ONNXRuntime 1.7 或更高版本。 特别感谢:@Channingss
- 新版onnxruntime比1.6.0 性能提升40%以上。