From e91dee7eaf0a350f15eb212c5dc0beb0c6801950 Mon Sep 17 00:00:00 2001 From: SWHL Date: Wed, 25 Oct 2023 19:36:06 +0800 Subject: [PATCH] Update docs --- content/docs/changelog/rapidocr.md | 3 +++ content/docs/changelog/rapidocr_paddle.md | 3 +++ content/docs/install_usage/rapidocr/usage.md | 10 +++++----- content/docs/install_usage/rapidocr_paddle.md | 10 +++++----- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/content/docs/changelog/rapidocr.md b/content/docs/changelog/rapidocr.md index 296a4fa5..4b2c5e2f 100644 --- a/content/docs/changelog/rapidocr.md +++ b/content/docs/changelog/rapidocr.md @@ -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`的条件错误 diff --git a/content/docs/changelog/rapidocr_paddle.md b/content/docs/changelog/rapidocr_paddle.md index 02108944..11c1b329 100644 --- a/content/docs/changelog/rapidocr_paddle.md +++ b/content/docs/changelog/rapidocr_paddle.md @@ -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端推理引擎 \ No newline at end of file diff --git a/content/docs/install_usage/rapidocr/usage.md b/content/docs/install_usage/rapidocr/usage.md index fe072d35..3448427c 100644 --- a/content/docs/install_usage/rapidocr/usage.md +++ b/content/docs/install_usage/rapidocr/usage.md @@ -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) ``` @@ -303,7 +302,7 @@ 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) @@ -311,7 +310,8 @@ 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) ``` diff --git a/content/docs/install_usage/rapidocr_paddle.md b/content/docs/install_usage/rapidocr_paddle.md index 2ba8d90f..143753ce 100644 --- a/content/docs/install_usage/rapidocr_paddle.md +++ b/content/docs/install_usage/rapidocr_paddle.md @@ -10,7 +10,7 @@ draft: false

- PyPI + PyPI

@@ -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 |