Let us see how to create a white image using NumPy and cv2. A white image has all its pixels as 255.
Method 1: Using np.full() method :
Output:
Method 2: By creating an array using np.zeroes() :