Skip to content

Commit

Permalink
* 更新箱号识别服务conta_ocrV3.0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jadehh committed Oct 31, 2023
1 parent eba0e65 commit b5525a9
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 80 deletions.
147 changes: 75 additions & 72 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
pip install -r requirements/Paddle/requirements.txt
python packing_app.py \
--head_str "import sys\nsys.path.append('/usr/local/conta_detect-1.0/python_lib')\nimport paddle\n" \
--is_exec False
--is_exec True
- name: Amd64打包编译
if: ${{ matrix.device_type=='Amd64'}}
run: |
Expand All @@ -66,7 +66,7 @@ jobs:
--name 箱号识别服务Amd64 \
--app_name conta_ocr_amd64 \
--lib_path conta_ocr_amd64_lib64 \
--is_exec False
--is_exec True
- name: 发布
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -108,7 +108,79 @@ jobs:
--extra_sys_str /usr/local/site-packages,/usr/local/opencv \
--app_name local_conta_ocr_onnx \
--lib_path local_conta_ocr_x86_lib64 \
--is_exec False
--is_exec True
- name: 发布
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files:
"./code/Output/*"
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限
aarch64_job:
# The host should always be Linux
name: ${{ matrix.device_type }}箱号识别服务打包
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest"
#device_type: ["RKNN","Ascend"]
device_type: ["RKNN","Ascend"]
steps:
- name: 下载代码
uses: actions/checkout@v3
with:
repository: jadehh/ContainerOCR
ref: conta_ocr
path: code
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
- name: RKNN打包环境准备
if: ${{ matrix.device_type=='RKNN'}}
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu18.04

# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}/code:/code"
base_image: jadehh/miniconda3:aarch64-4.9.2
# Set an output parameter `uname` for use in subsequent steps
run: |
cd /code
pip install -r requirements.txt
pip install -r requirements/RKNN/requirements.txt
python packing_app.py \
--extra_sys_str /usr/local/site-packages \
--app_name local_conta_ocr_rknn \
--lib_path local_conta_ocr_aarch64_lib64 \
--is_exec True
- name: Ascend打包环境准备
if: ${{ matrix.device_type=='Ascend'}}
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu18.04

# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}/code:/code"
base_image: jadehh/miniconda3:aarch64-4.9.2
# Set an output parameter `uname` for use in subsequent steps
run: |
cd /code
pip install -r requirements.txt
pip install -r requirements/Ascend/requirements.txt
python packing_app.py \
--extra_sys_str /usr/local/site-packages \
--app_name local_conta_ocr_ascend \
--lib_path local_conta_ocr_aarch64_lib64 \
--is_exec True
- name: 发布
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -117,72 +189,3 @@ jobs:
"./code/Output/*"
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限
# aarch64_job:
# # The host should always be Linux
# name: ${{ matrix.device_type }}箱号识别服务打包
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest"
# device_type: ["RKNN","Ascend"]
# steps:
# - name: 下载代码
# uses: actions/checkout@v3
# with:
# repository: jadehh/ContainerOCR
# ref: conta_ocr
# path: code
# token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
# - name: RKNN打包环境准备
# if: ${{ matrix.device_type=='RKNN'}}
# uses: uraimo/run-on-arch-action@v2
# with:
# arch: aarch64
# distro: ubuntu18.04
#
# # Not required, but speeds up builds by storing container images in
# # a GitHub package registry.
# githubToken: ${{ github.token }}
# dockerRunArgs: |
# --volume "${PWD}/code:/code"
# base_image: jadehh/miniconda3:aarch64-4.9.2
# # Set an output parameter `uname` for use in subsequent steps
# run: |
# cd /code
# pip install -r requirements.txt
# pip install -r requirements/RKNN/requirements.txt
# python packing_app.py \
# --extra_sys_str /usr/local/site-packages \
# --app_name local_conta_ocr_rknn \
# --lib_path local_conta_ocr_aarch64_lib64
# - name: Ascend打包环境准备
# if: ${{ matrix.device_type=='Ascend'}}
# uses: uraimo/run-on-arch-action@v2
# with:
# arch: aarch64
# distro: ubuntu18.04
#
# # Not required, but speeds up builds by storing container images in
# # a GitHub package registry.
# githubToken: ${{ github.token }}
# dockerRunArgs: |
# --volume "${PWD}/code:/code"
# base_image: jadehh/miniconda3:aarch64-4.9.2
# # Set an output parameter `uname` for use in subsequent steps
# run: |
# cd /code
# pip install -r requirements.txt
# pip install -r requirements/Ascend/requirements.txt
# python packing_app.py \
# --extra_sys_str /usr/local/site-packages \
# --app_name local_conta_ocr_ascend \
# --lib_path local_conta_ocr_aarch64_lib64
# - name: 发布
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files:
# "./code/Output/*"
# env:
# GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# 箱号识别服务
## 箱号识别服务V3.0.2.5 - 2023-10-25 05:59:07
conta_ocrV3.0.2.5
* [发布地址](https://github.com/jadehh/ContainerOCR/releases/tag/conta_ocrV3.0.2.5)
* [详细地址](https://github.com/jadehh/jadehh_file/releases/tag/conta_ocrV3.0.2.5)
## 箱号识别服务V3.0.2.6 - 2023-10-31 08:07:44
conta_ocrV3.0.2.6
* [发布地址](https://github.com/jadehh/ContainerOCR/releases/tag/conta_ocrV3.0.2.6)
* [详细地址](https://github.com/jadehh/jadehh_file/releases/tag/conta_ocrV3.0.2.6)
### 下载地址
* [conta_ocr_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.5/conta_ocr_lib64.zip)
* [local_conta_ocr_x86_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.5/local_conta_ocr_x86_lib64.zip)
* [local_conta_ocr_aarch64_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.5/local_conta_ocr_aarch64_lib64.zip)
* [conta_ocr_amd64_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.5/conta_ocr_amd64_lib64.zip)
* [conta_ocr_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/conta_ocr_lib64.zip)
* [local_conta_ocr_x86_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/local_conta_ocr_x86_lib64.zip)
* [local_conta_ocr_aarch64_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/local_conta_ocr_aarch64_lib64.zip)
* [conta_ocr_amd64_lib64.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/conta_ocr_amd64_lib64.zip)
* [conta_ocr](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/conta_ocr)
* [local_conta_ocr_onnx](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/local_conta_ocr_onnx)
* [local_conta_ocr_ascend](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/local_conta_ocr_ascend)
* [local_conta_ocr_rknn](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/local_conta_ocr_rknn)
* [conta_ocr_amd64](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/conta_ocrV3.0.2.6/conta_ocr_amd64)
----

0 comments on commit b5525a9

Please sign in to comment.