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.4.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for depixelate-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f016bd5bdbe1690b43b924e49db384dc32cb9e194eec67890ae09b5cdc91b0 |
|
MD5 | d114df567639d7d6ef0f95b3b1c6e3ca |
|
BLAKE2b-256 | 846a58726bdb88e96a91ebdcd0793042fadf03257e5c11c093d9f3a0d51cf7b7 |