feat generate 新增色阶调整 亮度调整

This commit is contained in:
zhouchengrong
2024-04-25 18:00:09 +08:00
parent d448bed3af
commit 0690c8838e

View File

@@ -207,10 +207,6 @@ def generate_category_recognition(image, gender):
return category, scores, image return category, scores, image
import cv2
import numpy as np
def autoLevels(img, cutoff=0.1): def autoLevels(img, cutoff=0.1):
channels = img.shape[2] # h,w,ch channels = img.shape[2] # h,w,ch
table = np.zeros((1, 256, 3), np.uint8) table = np.zeros((1, 256, 3), np.uint8)