# Pathon at GlobalSino: https://www.globalsino.com/ICs/page4853.html

# Convert a colored image to a grey images

import cv2
import numpy as np
 
image1 = cv2.imread('ColoredImage.jpg')
 
# Convert the image in grayscale
img = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
 
cv2.imshow('Grey image', img)
   
# De-allocate any associated memory usage 
if cv2.waitKey(0) & 0xff == 27:
    cv2.destroyAllWindows()
