Skip to content

Instantly share code, notes, and snippets.

@HViktorTsoi
HViktorTsoi / ShadowHighlightCorrection.py
Last active June 18, 2024 14:42
Image shadow and highlight correction/adujstment with opencv.
import numpy as np
import cv2
def correction(
img,
shadow_amount_percent, shadow_tone_percent, shadow_radius,
highlight_amount_percent, highlight_tone_percent, highlight_radius,
color_percent
):
"""