文件名称:pyxelate:从图像生成像素图的Python类
文件大小:10.49MB
文件格式:ZIP
更新时间:2024-05-19 19:36:18
JupyterNotebook
Super Pyxelate将图像转换为8位像素图稿。 它是算法的改进,更快的实现,具有调色板传输支持和增强的抖动功能。 Super Pyxelate目前处于测试阶段。 用法 from skimage import io from pyxelate import Pyx , Pal # load image with 'skimage.io.imread()' image = io . imread ( "examples/blazkowicz.jpg" ) downsample_by = 14 # new image will be 1/14th of the original in size palette = 7 # find 7 colors # 1) Instantiate Pyx transformer pyx = Pyx ( factor = downsample_b
【文件预览】:
pyxelate-master
----setup.py(471B)
----.gitignore(2KB)
----requirements.txt(55B)
----LICENSE(1KB)
----examples()
--------corgi.jpg(71KB)
--------br.jpg(254KB)
--------p_br.png(377KB)
--------trex.png(334KB)
--------vangogh.jpg(864KB)
--------f1.jpg(131KB)
--------p_corgi.png(232KB)
--------br2.jpg(41KB)
--------p_blazkowicz.png(493KB)
--------robocop.jpg(94KB)
--------p_br2.png(322KB)
--------blazkowicz.jpg(165KB)
--------logo.png(10KB)
--------p_vangogh.png(559KB)
--------p_palms.png(1.14MB)
--------p_fit_transform.png(724KB)
--------palms3.jpg(440KB)
--------p_trex.png(318KB)
----README.md(8KB)
----pyxelate()
--------__init__.py(257B)
--------pyx.py(19KB)
--------pal.py(15KB)
----examples.ipynb(5.44MB)