滚动条控制阈值和阈值的处理方式 控制thres中的方式和阈值 import cv2 img = cv2.imread("p7.jpg") #img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) type = 0#阈值的处理方式 value = 0#使用的阈值