import cv2 import numpy as np import sys def onTrackbarChange(max_slider): global img global dst global gray dst = np.copy(img) th1 = max_slider th2 = th1 * 0.4 edges = cv2.Canny(img, th1, th2) &nbs ... ...
import cv2 import numpy as np import sys def onTrackbarChange(max_slider): global img global dst global gray dst = np.copy(img) th1 = max_slider th2 = th1 * 0.4 edges = cv2.Canny(img, th1, th2) &nbs ... ...