Joseph Drackey

Generation

generate functionTue, 28 Mar 2023

Converts an image to grayscale using the crude average of the r, g, and b

def grayscale(im): return np.average(im, axis=2)

Questions about programming?Chat with your personal AI assistant