未验证 提交 f45c6ec6 编写于 作者: Z zhoujun 提交者: GitHub

mv Polygon import into func (#8506)

上级 29a33c54
......@@ -17,8 +17,6 @@ import numpy as np
import scipy.io as io
from ppocr.utils.utility import check_install
check_install("Polygon", "Polygon3")
import Polygon as plg
from ppocr.utils.e2e_metric.polygon_fast import iod, area_of_intersection, area
......@@ -279,6 +277,8 @@ def get_score_C(gt_label, text, pred_bboxes):
"""
get score for CentripetalText (CT) prediction.
"""
check_install("Polygon", "Polygon3")
import Polygon as plg
def gt_reading_mod(gt_label, text):
"""This helper reads groundtruths from mat files"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册