Skip to content

Instantly share code, notes, and snippets.

View vidit0210's full-sized avatar
🎯
Focusing

Vidit Shah vidit0210

🎯
Focusing
View GitHub Profile
import numpy as np
import cv2
import math
def grayscale(img):
"""Applies the Grayscale transform
This will return an image with only one color channel
but NOTE: to see the returned image as grayscale
you should call plt.imshow(gray, cmap='gray')"""