mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
mv Polygon import into func (#8506)
This commit is contained in:
parent
29a33c547b
commit
f45c6ec668
@ -17,8 +17,6 @@ import numpy as np
|
|||||||
import scipy.io as io
|
import scipy.io as io
|
||||||
|
|
||||||
from ppocr.utils.utility import check_install
|
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
|
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.
|
get score for CentripetalText (CT) prediction.
|
||||||
"""
|
"""
|
||||||
|
check_install("Polygon", "Polygon3")
|
||||||
|
import Polygon as plg
|
||||||
|
|
||||||
def gt_reading_mod(gt_label, text):
|
def gt_reading_mod(gt_label, text):
|
||||||
"""This helper reads groundtruths from mat files"""
|
"""This helper reads groundtruths from mat files"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user