mv Polygon import into func (#8506)

pull/8547/head
zhoujun 2022-12-01 16:02:47 +08:00 committed by GitHub
parent 29a33c547b
commit f45c6ec668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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