Skip to main content

Depixelate images

Project description

Depixelate

Resize and depixel low resolution images.

Usage

$ pip install depixelate
import cv2
import depixelate

original_image = cv2.imread('image.jpg')

result = depixelate.apply(original_image, 7, 600)

Params

The apply method accepts 3 parameters:

  • Image (Required): Original image to be changed.
  • Weight (Optional): Indicates the power of the gaussian-blur algorithm. The higher the value, the more shape distortion. It must be between 1 and 10. Default value is 6.
  • Width Scale (Optional): Indicates the width of the output image. Default value is 800.

Limitations

Depixelate library helps with logos and some graphics, but it doesn't help when maximum sharpness and detail is needed.
In the majority of cases, you'll want to improve the quality of low resolution images (about 300 pixels wide or less). Otherwise you might be a little disappointed.

Plans

  • Anti-aliasing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

depixelate-1.0.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

depixelate-1.0.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file depixelate-1.0.6.tar.gz.

File metadata

  • Download URL: depixelate-1.0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for depixelate-1.0.6.tar.gz
Algorithm Hash digest
SHA256 3f1e48c2ed178e18c20fe51fd8bf593343a80b91b1da0c327f5a2bedf2856813
MD5 32effe9e18b498668d04840cf60e5078
BLAKE2b-256 cb27c625d79dcd61f6b9683201ce45fc642ddab3393f7535ef96e66398d616f1

See more details on using hashes here.

File details

Details for the file depixelate-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: depixelate-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for depixelate-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5bcae08a75d12a8cb6f05ea48d5772b5257426cb339ddf95b1eb9ac2d33948
MD5 5d425a77cd0bc3d9a09e3b4062842ddd
BLAKE2b-256 f7c312915b91dc92a177ed2431a7f587737c3aa5cdf1691721fc217a4ea10438

See more details on using hashes here.

Supported by

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