Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the dtype of read image

Hi,

I have read an image as follows

image = cv2.imread('/data/cat.jpg',cv2.IMREAD_UNCHANGED)
print('image dtype ',image.dtype)

The dtype for the read image is uint8, how to transfer it into float32 or what kind of read option can enforce the read image as float32.