... alpha = 2.0 beta = -165 result= alpha * img + beta result= np.clip(result, 0, 255).astype(np.uint8) cv2.imwrite("result.png", result).
確定! 回上一頁