text: import cv2 as cv
  
  
  img = cv.imread("image.png")
  
  height, width = img.shape[:2]
  
  for i in range(height):
      for j in range(width):
          bgr = img[i, j]
          new_bgr = 0.11 * bgr[0] + 0.59 * bgr[1] + 0.3 * bgr[2]
          img[i, j] = [new_bgr, new_bgr, new_bgr]
  
  cv.imwrite("image_grayscale.png", img)
  