From a2a08583c46e702b011cbf009097eaf82111d9aa Mon Sep 17 00:00:00 2001 From: dyning Date: Tue, 23 Jun 2020 16:09:17 +0800 Subject: [PATCH] use enable_memory_optim for cpu and gpu, add paddlehelp QRcode --- ppocr/postprocess/east_postprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/postprocess/east_postprocess.py b/ppocr/postprocess/east_postprocess.py index e8b7a241..8200df3c 100755 --- a/ppocr/postprocess/east_postprocess.py +++ b/ppocr/postprocess/east_postprocess.py @@ -25,7 +25,6 @@ import sys __dir__ = os.path.dirname(__file__) sys.path.append(__dir__) sys.path.append(os.path.join(__dir__, '..')) -import lanms class EASTPostPocess(object): @@ -79,6 +78,7 @@ class EASTPostPocess(object): boxes[:, :8] = text_box_restored.reshape((-1, 8)) boxes[:, 8] = score_map[xy_text[:, 0], xy_text[:, 1]] if self.is_python35: + import lanms boxes = lanms.merge_quadrangle_n9(boxes, nms_thresh) else: boxes = nms_locality(boxes.astype(np.float64), nms_thresh) -- GitLab