删除测试内容

This commit is contained in:
2024-08-29 09:08:00 +08:00
parent 37d6b6e023
commit 68046582d6
3 changed files with 3 additions and 45 deletions

View File

@@ -82,9 +82,7 @@ def information_extraction(ie, phrecs, identity):
image = image_util.read(img_path)
target_images = []
det_time = time.time()
target_images += detector.request_book_areas(image) # 识别文档区域并裁剪
logging.info(f"检测目标耗时{time.time() - det_time}")
if not target_images:
target_images.append(image) # 识别失败
angle_count = defaultdict(int, {"0": 0}) # 分割后图片的最优角度统计