Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a blank image

'''This will create an image with a black background, technically blank 
background, since at any position the black pixel is represented by the
value,(0,0,0). Upon adding any pixel value (R,G,B) to this position (s),
the results is the added pixel itself.'''
import numpy as np
import cv2
height = 460
width =460
channels = 3
img = np.zeros((height,width,channels), dtype=np.uint8)
cv2.imshow("blank_image", img)
Source by answers.opencv.org #
 
PREVIOUS NEXT
Tagged: #create #blank #image
ADD COMMENT
Topic
Name
8+8 =