mv Polygon import into func (#8506)
parent
29a33c547b
commit
f45c6ec668
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue