文件名称:pypotrace:Potrace库的Python绑定
文件大小:136KB
文件格式:ZIP
更新时间:2024-06-12 15:35:13
Python
Potrace Python绑定 这些绑定为库提供了一个面向对象的API。 完整的API文档位于。 用法示例 绑定适用于表示为numpy数组的输入图像: import numpy as np import potrace # Make a numpy array with a rectangle in the middle data = np.zeros((32, 32), np.uint32) data[8:32-8, 8:32-8] = 1 # Create a bitmap from the array bmp = potrace.Bitmap(data) # Trace the bitmap to a path path = bmp.trace() # Iterate over path curves for curve in path: print "start_po
【文件预览】:
pypotrace-master
----MANIFEST.in(196B)
----README.rst(5KB)
----CONTRIBUTORS(72B)
----potrace()
--------agg()
--------bezier.pxd(118B)
--------_potrace.pxd(2KB)
--------__init__.py(61B)
--------_potrace.pyx(13KB)
--------.gitignore(5B)
--------bezier.pyx(2KB)
----poetry.lock(16KB)
----doc()
--------make.bat(4KB)
--------conf.py(7KB)
--------ref.rst(3KB)
--------index.rst(354B)
--------Makefile(4KB)
--------_build()
--------tutorial.rst(929B)
--------_static()
----LICENSE(672B)
----GPL(34KB)
----tests()
--------__init__.py(0B)
--------test_basic.py(1KB)
--------test_bezier.py(3KB)
----.gitignore(95B)
----pyproject.toml(1KB)
----build.py(1KB)