π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
chore: update files
SWHL026d1ec88859
diff --git a/python/rapidocr/utils/typings.py b/python/rapidocr/utils/typings.pyindex 37d7be2..9af5b64 100644--- a/python/rapidocr/utils/typings.py+++ b/python/rapidocr/utils/typings.py@@ -22,7 +22,11 @@ class RapidOCROutput:def to_json(self):pass- def to_paddleocr_format(self):+ def to_paddleocr_format(self) -> List[List[List[float]], List[Tuple[str, float]]]:rec_res = list(zip(self.txts, self.scores))+ dt_boxes = [v.tolist() for v in self.boxes]- print("ok")+ final_res = []+ for box, rec in zip(dt_boxes, rec_res):+ final_res.append([box, list(rec)])+ return final_res