Old Photo Restoration
Project description
Zero Scratches
Old Photo Restoration
This is a lightweight implementation of Microsoft Bringing Old Photos Back to Life
Install
pip install zeroscatches
Basic usage
import PIL.Image
from zeroscratches import EraseScratches
image_path = "/path/to/image-scratched.jpg"
eraser = EraseScratches()
image = PIL.Image.open(image_path)
new_img = eraser.erase(image)
new_img = PIL.Image.fromarray(new_img)
new_img.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
zeroscratches-1.0.0-py3.10.egg
(113.5 kB
view details)
File details
Details for the file zeroscratches-1.0.0-py3.10.egg
.
File metadata
- Download URL: zeroscratches-1.0.0-py3.10.egg
- Upload date:
- Size: 113.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 357d26ebf005acdf188ae31914c91d66873cb9680521f023b60503b3405e4a12 |
|
MD5 | 094d132842ead1738d50454c8a974fc0 |
|
BLAKE2b-256 | 3933c4fa59b9653ea73f6b0034595cb1c6b5d4108652ca9254cc803164ca0aa8 |
File details
Details for the file zeroscratches-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: zeroscratches-1.0.0-py3-none-any.whl
- Upload date:
- Size: 49.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374a2e8647403ec8a97405d75ad8b12cb6effcfe896c3896238b2164105c06a2 |
|
MD5 | 655083b8e70ae2498a1e642309210321 |
|
BLAKE2b-256 | 7e5deb339068777ab4fe3892efd52dc281615b0604bef3ab22abc985b1e9eeb6 |