code / replace.py
jkushwaha's picture
Create replace.py
e22d7c5 verified
raw
history blame contribute delete
162 Bytes
for i in range(x, x + width):
for j in range(y, y + height):
# Invert pixel values (assuming 3 channels - BGR)
image[j, i] = 255 - image[j, i]