python opencv addWeighted
python opencv addWeighted
import cv2
# Load the image
img = cv2.imread('20230222100736979.jpg')
# Adjust the brightness
brightness = 50
adjusted = cv2.addWeighted(img, 1, img, 0, brightness)
# Display the original and adjusted images
cv2.imshow('Original', img)
cv2.imshow('Adjusted', adjusted)
cv2.waitKey(0)
##################
QQ 3087438119

浙公网安备 33010602011771号