OpenCV-- read image data types must be int8 type?

Description of the problem

A day in class when I heard that, OpenCV during image display, the data type must be int8 type is that right?

2 Solutions

One possible implementation is, when the amount of images again initialized, using code similar to below:

dst = np.zeros((dst_h, dst_w, 3)), dtype = np.uint8)

What experiments can be carried out;

Published 277 original articles · won praise 76 · Views 300,000 +

Guess you like

Origin blog.csdn.net/songyuc/article/details/104149621