logo
Browse Source

update

Signed-off-by: junjie.jiangjjj <junjie.jiangjjj@zilliz.com>
v1
junjie.jiangjjj 3 years ago
parent
commit
0dfcaf5ddc
  1. 2
      image_decode_cv2.py

2
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):

Loading…
Cancel
Save