From 8f47207f817e888e3ee7a90e43886cbdee4a657e Mon Sep 17 00:00:00 2001 From: SWHL Date: Mon, 9 Dec 2024 08:32:28 +0800 Subject: [PATCH] fix: fixed error of visualizing det results --- docs/install_usage/api/VisRes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/install_usage/api/VisRes.md b/docs/install_usage/api/VisRes.md index 11c8ee12..d0141945 100644 --- a/docs/install_usage/api/VisRes.md +++ b/docs/install_usage/api/VisRes.md @@ -81,11 +81,12 @@ def __call__( img = cv2.imread(image_path) result, elapse_list = engine(img) - boxes, txts, scores = list(zip(*result)) - res = vis(img, boxes) + res = vis(img, result) cv2.imwrite("only_vis_det.png", res) ``` + ![](https://github.com/RapidAI/RapidOCR/releases/download/v1.3.25/only_vis_det.png) + === "可视化检测和识别" ```python linenums="1"