From 0dfcaf5ddcb32e900851a3eb647495b0f7c6e4c1 Mon Sep 17 00:00:00 2001 From: "junjie.jiangjjj" Date: Tue, 28 Jun 2022 11:38:16 +0800 Subject: [PATCH] update Signed-off-by: junjie.jiangjjj --- image_decode_cv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_decode_cv2.py b/image_decode_cv2.py index 70bcc37..0e49b2e 100644 --- a/image_decode_cv2.py +++ b/image_decode_cv2.py @@ -49,7 +49,7 @@ class ImageDecoder(PyOperator): raise RuntimeError(err) rgb_cv_image = cv2.cvtColor(bgr_cv_image, cv2.COLOR_BGR2RGB) - return ndarray_utils.from_ndarray(rgb_cv_image, 'RGB') + return Image(rgb_cv_image, 'RGB') @property def shared_type(self):