My code for gradient calculation is as follows :
from skimage.feature import canny import numpy as np def Canny_detector(img): import cv2 from sc