Answers for "save new image opencv python"

8

how to save image opencv

cv2.imwrite('data/dst/lena_opencv_red.jpg', im)
Posted by: Guest on January-04-2021
0

python opencv create new image

# use numpy to create an array of color
image_height = 300
image_width = 300
number_of_color_channels = 3
color = (255,0,255)
pixel_array = numpy.full((image_height, image_width, number_of_color_channels), color, dtype=numpy.uint8)
cv2.imshow('image',pixel_array)
cv2.waitKey(0)
Posted by: Guest on May-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language