Skip to content

Commit

Permalink
Fixed auto_text_det parameter error
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Sep 20, 2023
1 parent 508beba commit a981e21
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: Push rapidocr_onnxruntime to pypi

on:
push:
branches: [ main ]
paths:
- 'python/rapidocr_onnxruntime/**'
- 'docs/doc_whl_rapidocr_ort.md'
- 'python/setup_onnxruntime.py'
- '.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml'
# branches: [ main ]
# paths:
# - 'python/rapidocr_onnxruntime/**'
# - 'docs/doc_whl_rapidocr_ort.md'
# - 'python/setup_onnxruntime.py'
# - '.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml'
tags:
- v*

env:
RESOURCES_URL: https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.3.0.zip
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/gen_whl_to_pypi_rapidocr_vino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: Push rapidocr_openvino to pypi

on:
push:
branches: [ main ]
paths:
- 'python/rapidocr_openvino/**'
- 'docs/doc_whl_rapidocr_vino.md'
- 'python/setup_openvino.py'
- '.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml'
# branches: [ main ]
# paths:
# - 'python/rapidocr_openvino/**'
# - 'docs/doc_whl_rapidocr_vino.md'
# - 'python/setup_openvino.py'
# - '.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml'
tags:
- v*

env:
RESOURCES_URL: https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.3.0.zip
Expand Down
2 changes: 1 addition & 1 deletion python/rapidocr_onnxruntime/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def auto_text_det(
else:
use_limit_ratio = w / h > self.width_height_ratio

if not self.use_det or h <= self.min_height or use_limit_ratio:
if h <= self.min_height or use_limit_ratio:
dt_boxes, img_crop_list = self.get_boxes_img_without_det(img, h, w)
return dt_boxes, 0.0, img_crop_list

Expand Down
2 changes: 1 addition & 1 deletion python/rapidocr_openvino/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def auto_text_det(
else:
use_limit_ratio = w / h > self.width_height_ratio

if not self.use_det or h <= self.min_height or use_limit_ratio:
if h <= self.min_height or use_limit_ratio:
dt_boxes, img_crop_list = self.get_boxes_img_without_det(img, h, w)
return dt_boxes, 0.0, img_crop_list

Expand Down

0 comments on commit a981e21

Please sign in to comment.