Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Oct 25, 2023
1 parent fec351e commit e91dee7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
3 changes: 3 additions & 0 deletions content/docs/changelog/rapidocr.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ toc: true
description: ""
---

#### 😜2023-10-25 v1.3.8 update:
- 修复[issue #133](https://github.com/RapidAI/RapidOCR/issues/133)

#### 📡2023-09-21 v1.3.7 update:
- 完善`VisRes`类在终端情况下的使用
- 修复`auto_text_det`的条件错误
Expand Down
3 changes: 3 additions & 0 deletions content/docs/changelog/rapidocr_paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ toc: true
description: ""
---

#### 2023-10-25 v1.3.10 update:
修复[issue #133](https://github.com/RapidAI/RapidOCR/issues/133)

#### 2023-10-23 v1.3.9 update:
首次适配PaddlePaddle框架,作为GPU端推理引擎
10 changes: 5 additions & 5 deletions content/docs/install_usage/rapidocr/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,14 @@ import cv2
from rapidocr_onnxruntime import RapidOCR, VisRes

engine = RapidOCR()
vis = VisRes(font_path="resources/fonts/FZYTK.TTF")
vis = VisRes()

image_path = "tests/test_files/ch_en_num.jpg"
img = cv2.imread(image_path)

result, elapse_list = engine(img)
boxes, txts, scores = list(zip(*result))

res = vis(img, boxes, None, None)
res = vis(img, boxes)
cv2.imwrite("only_vis_det.png", res)
```

Expand All @@ -303,15 +302,16 @@ import cv2
from rapidocr_onnxruntime import RapidOCR, VisRes

engine = RapidOCR()
vis = VisRes(font_path="resources/fonts/FZYTK.TTF")
vis = VisRes()

image_path = "tests/test_files/ch_en_num.jpg"
img = cv2.imread(image_path)

result, elapse_list = engine(img)
boxes, txts, scores = list(zip(*result))

res = vis(img, boxes, txts, scores)
font_path="resources/fonts/FZYTK.TTF"
res = vis(img, boxes, txts, scores, font_path)
cv2.imwrite("vis_det_rec.png", res)
```

Expand Down
10 changes: 5 additions & 5 deletions content/docs/install_usage/rapidocr_paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ draft: false
<p>
<a href=""><img src="https://img.shields.io/badge/Python->=3.6,<3.12-aff.svg"></a>
<a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>
<a href="https://pypi.org/project/rapidocr-onnxruntime/"><img alt="PyPI" src="https://img.shields.io/pypi/v/rapidocr-onnxruntime?style=flat-square"></a>
<a href="https://pypi.org/project/rapidocr-paddle/"><img alt="PyPI" src="https://img.shields.io/pypi/v/rapidocr-paddle?style=flat-square"></a>
<a href="https://pepy.tech/project/rapidocr_paddle"><img src="https://static.pepy.tech/personalized-badge/rapidocr_paddle?period=total&units=abbreviation&left_color=grey&right_color=blue&left_text=Downloads%20Paddle"></a>
</p>

Expand Down Expand Up @@ -84,7 +84,7 @@ result, elapse_list = engine(image_path)

经过初步粗略估计,同一张图像,推理10次,耗时情况见下表:

|推理库|平均耗时(s/img)|备注|
|:---:|:---:|:---:|
|`rapidocr_onnxruntime`|1.6505||
|`rapidocr_paddle[GPU]`|0.0508|V100 16G|
| 推理库 | 平均耗时(s/img) | 备注 |
| :--------------------: | :-------------: | :------: |
| `rapidocr_onnxruntime` | 1.6505 | |
| `rapidocr_paddle[GPU]` | 0.0508 | V100 16G |

0 comments on commit e91dee7

Please sign in to comment.