If I wanted to create a vertical line of red pixels pixels = img.load() #Pixels is the pixel map, a 2-dimensional list of pixel data width, height = img.size Which code would accomplish that task? code example
Example: function to red image in p
# importing OpenCV(cv2) module
import cv2
# Save image in set directory
# Read RGB image
img = cv2.imread('g4g.png')
# Output img with window name as 'image'
cv2.imshow('image', img)
# Maintain output window utill
# user presses a key
cv2.waitKey(0)
# Destroying present windows on screen
cv2.destroyAllWindows()