Skip to main content

Python API Reference

Auto-generated from the docstrings in packages/py/img2num/api.py and packages/py/img2num/_img2num.pyi by docs/scripts/pydoc-markdown/generate_py_api.py — do not edit these pages by hand.

Functions

FunctionDescription
gaussian_blur_fftApply a Gaussian blur to the image using Fast Fourier Transform (FFT) for performance.
invert_imageInvert the pixel values of an image.
threshold_imageApply thresholding to the image.
black_threshold_imageApply thresholding with a bias in favor of black to the image.
bilateral_filterApply a bilateral filter to the image.
kmeansPerform K-means clustering on the image data.
labels_to_svgConvert labels to an SVG string.
image_to_svgConvert Image to SVG string.

Classes

ClasseDescription
ImageToSvgConfigConfiguration options for image_to_svg.