Answers for "how to create an opencv image"

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

Code answers related to "how to create an opencv image"

Python Answers by Framework

Browse Popular Code Answers by Language