importcv2ascvimportnumpyasnpdefscan_edge_demo(img):gray=cv.cvtColor(img,cv.COLOR_BGR2GRAY)gray=cv.GaussianBlur(gray,(3,3),0)scan_edge=cv.Canny(gray,60,150)returnscan_edgedefscan_contours(img):scan_edge=scan_edge_demo(img)aa,contours,b=cv