From fe58bb3bfa6747ba5f492aefdc7ce4dac6640f2f Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Fri, 18 Oct 2024 14:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8A=BD=E5=8F=96=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/auto_photo_review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photo_review/auto_photo_review.py b/photo_review/auto_photo_review.py index c4561e6..fdf40f6 100644 --- a/photo_review/auto_photo_review.py +++ b/photo_review/auto_photo_review.py @@ -170,7 +170,7 @@ def information_extraction(phrec, pk_phhd): else: tmp_info_extract = [] - if len(tmp_info_extract) > len(info_extract): + if tmp_info_extract and len(tmp_info_extract) > len(info_extract): info_extract = tmp_info_extract ocr_text = tmp_ocr_text rec_type = tmp_rec_type