opencv创建多个滑动块,调节多个不同区域的灰度,代码直接如下,
import cv2 as cv
import numpy as np
def nothing(x):
pass
# 创建一副黑色图像
img = np.zeros((1080, 1920), np.uint8)
# 设置滑动条组件
cv.namedWindow('image')
cv.createTrackbar('C1', 'image', 0, 255, nothing)
cv.createTrackbar