Skip to content

Instantly share code, notes, and snippets.

View strumer69's full-sized avatar

shahram moradpour strumer69

View GitHub Profile
@strumer69
strumer69 / ShadowHighlightCorrection.py
Created January 18, 2023 09:46 — forked from HViktorTsoi/ShadowHighlightCorrection.py
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
):
"""