Answers for "cv2 read image to numpy array"

2

open image in numpy

image = PIL.Image.open(pathToImage)
frame = numpy.asarray(image)
Posted by: Guest on July-04-2020
0

convert numpy array to cv2 image

PIL.Image.fromarray(img)
Posted by: Guest on March-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language