paddleocr快速使用tensorrt进行推理加速
self.ocr PaddleOCR(use_angle_clsTrue,use_space_charTrue,use_gpuTrue,use_tensorrtTrue,precisionfp32, #根据需要改fp16或fp32det_model_dirmodels/ocr/ch_PP-OCRv4_det_infer/,rec_model_dirmodels/ocr/ch_PP-OCRv4_rec_infer/,cls_model_dirmodels/ocr/ch_ppocr_mobile_…
2025-11-08