[Bug Fix] Re-Fix OCR Serving bug. #1516 (#2011)

see https://github.com/PaddlePaddle/FastDeploy/pull/1516

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
YuBinglei
2023-06-09 13:44:55 +08:00
committed by GitHub
parent 7b58387d3c
commit 5f9e8b6e08
@@ -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()