Skip to main content

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()

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.

Project details


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.1-py3.10.egg (113.9 kB view details)

Uploaded Source

zeroscratches-1.0.1-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

Details for the file zeroscratches-1.0.1-py3.10.egg.

File metadata

  • Download URL: zeroscratches-1.0.1-py3.10.egg
  • Upload date:
  • Size: 113.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for zeroscratches-1.0.1-py3.10.egg
Algorithm Hash digest
SHA256 8fa2f302ff1b431d292fa1a7161c643e782d6470421d4f9d4986b2f2fbf34f1d
MD5 5994fabde2e536dc6e908800f55ecc87
BLAKE2b-256 67d80c5088bac3119dc9d08afe90029b04362e89d035a715eea39f4ac157a10b

See more details on using hashes here.

File details

Details for the file zeroscratches-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zeroscratches-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61a81ec26408dfb8eb97b83101e619460cfb17fc703d940c39ac04bc8acedc63
MD5 dbb836c1d8cfb5f41c07f1921745ac64
BLAKE2b-256 fc6ca530e0c65d8ba181c387322b6973bfa217dd302a488784423bd5c9d32902

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page