Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
jkushwaha
/
code
like
0
Model card
Files
Files and versions
xet
Community
Copy to bucket
new
f0a794c
code
/
replace.py
jkushwaha
Create replace.py
e22d7c5
verified
over 2 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
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]