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()
Get the pretrained models at Hugging Face Zero Scratches
Some Apps using the library:
Face Shine
Face Shine Is a backend server for photo enhancement and restoration.
Super Face
Super Face is a Python QT frontend for Face Shine server.
Metadata
Release files for zeroscratches 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zeroscratches-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / zeroscratches-1.0.2-py3-none-any.whl
| Download URL | zeroscratches-1.0.2-py3-none-any.whl |
|---|---|
| Size | 49.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
add2cda838b9e4a21f5576d9995067c1abb80cc6157281d1e1f99f5012c27cfd
|
|
BLAKE2b-256 checksum How to use checksums |
3bf86014903bd72aee0c8c6b7cb5eeeac2a1506c631e3c971f0adb6f07ebe59f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for zeroscratches 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.