Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
jkushwaha
/
code
like
0
Model card
Files
Files and versions
xet
Community
main
code
/
replace.py
jkushwaha
Create replace.py
e22d7c5
verified
about 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
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]