scripts/detection_util.py
def grayscale(img):
  """Applies the Grayscale transform
  This will return an image with only one color channel"""
  # Using BGR2GRAY to read an image with cv2.imread()
  return cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
Applies the Grayscale transform
  This will return an image with only one color channel
Applies the Grayscale transform
This will return an image with only one color channel
Applies the Grayscale transform This will return an image with only one color channel
def grayscale(img):
  return cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
def grayscale ( img ) : return cv2 . cvtColor ( img , cv2 . COLOR_RGB2GRAY )
Applies the Grayscale transform
This will return an image with only one color channel
Applies the Grayscale transform This will return an image with only one color channel
"""Applies the Grayscale transform
  This will return an image with only one color channel""" # Using BGR2GRAY to read an image with cv2.imread()
img