vilmacio / depixelate

Upscale an illustration and increase details

Home Page:https://vilmacio.github.io/depixelate-app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depixelate

Upscaling and enhance low resolution images.

Usage

First of all, you might want to check out the Online Demo. Once done, let's code.

$ 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

About

Upscale an illustration and increase details

https://vilmacio.github.io/depixelate-app/

License:MIT License


Languages

Language:Python 100.0%