import numpy as np import cv2 import matplotlib.pyplot as plt # image = cv2.imread(\'img.jpg\',0) # rows,cols = image.shape image = cv2.imread(\'img.jpg\') # r