I have read an image as follows using opencv
image = cv2.imread('/data/TestImages/cat.jpg',cv2.IMREAD_UNCHANGED)
This read image cause the error message when it was called by segmentation, np_image, np_logits = sess.run([pred, image, logits])
The error message is as TypeError: Can not convert a ndarray into a Tensor or Operation.
Are there any mechanisms that can transform an image represented as ndarray to a Tensorflow tensor. Thanks.