diff --git a/examples/vision/ocr/PP-OCR/serving/fastdeploy_serving/models/det_postprocess/1/model.py b/examples/vision/ocr/PP-OCR/serving/fastdeploy_serving/models/det_postprocess/1/model.py index a2b581e957..103d51a072 100644 --- a/examples/vision/ocr/PP-OCR/serving/fastdeploy_serving/models/det_postprocess/1/model.py +++ b/examples/vision/ocr/PP-OCR/serving/fastdeploy_serving/models/det_postprocess/1/model.py @@ -190,7 +190,7 @@ class TritonPythonModel: index] > self.cls_threshold: image_list[index] = cv2.rotate( image_list[index].astype(np.float32), 1) - image_list[index] = np.astype(np.uint8) + image_list[index] = image_list[index].astype(np.uint8) rec_pre_tensors = self.rec_preprocessor.run(image_list) rec_dlpack_tensor = rec_pre_tensors[0].to_dlpack()