Skip to content
项目

关于

一个零依赖的图像处理库。

设计与媒体

这些数字如何统计

可以做什么

  • Images: pure-Zig PNG, JPEG, BMP and GIF codecs, geometric transforms, filters, color spaces, enhancement and drawing with an antialiased canvas, bitmap and vector fonts, and terminal graphics.
  • Vision: feature detection and matching, edge detection, Hough transform, QR codes, style transfer and quality metrics.
  • Math: matrices and decompositions, geometry, statistics, PCA, global optimization and clustering.
  • Parallelism: heavy operations run on a thread pool through std.Io and give byte-identical results when run serially.

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Zignal

tests docs PyPI version

Zignal is a zero-dependency image processing library inspired by dlib.

Features

Zignal covers the building blocks of an image processing pipeline in a single dependency:

  • Images: pure-Zig PNG, JPEG, BMP and GIF codecs, geometric transforms, filters, color spaces, enhancement and drawing with an antialiased canvas, bitmap and vector fonts, and terminal graphics.
  • Vision: feature detection and matching, edge detection, Hough transform, QR codes, style transfer and quality metrics.
  • Math: matrices and decompositions, geometry, statistics, PCA, global optimization and clustering.
  • Parallelism: heavy operations run on a thread pool through std.Io and give byte-identical results when run serially.
  • Platforms: native Zig, Python bindings and WASM for the web.

See the documentation for the full API.

Status

Zignal is under active development and the API continues to evolve. Expect occasional breaking changes between minor releases.

Installation

Zig

zig fetch --save git+https://github.com/arrufat/zignal

Then, in your build.zig

const zignal = b.dependency("zignal", .{ .target = target, .optimize = optimize });
// And assuming that your b.addExecutable `exe`:
exe.root_module.addImport("zignal", zignal.module("zignal"));
// If you're creating a `module` using b.createModule, then:
module.addImport("zignal", zignal.module("zignal"));

Examples | Documentation

Python

pip install zignal-processing

Requires Python 3.11+, no external dependencies

Bindings | PyPI Package | Documentation

CLI

Zignal includes a command-line interface to display images in the terminal, inspect them, resize, blur, detect edges, tile them into a grid, apply style transfer, encode and decode QR codes, compare them with visual diffs and quality metrics, and chain operations into pipelines.

# Build the CLI
zig build

# List the available commands
zig-out/bin/zignal help

# Show the options of a specific command
zig-out/bin/zignal help <command>

Examples

The interactive demos run Zignal in the browser through WASM and showcase color spaces, face alignment, seam carving, feature matching, global optimization, QR codes and more. Their sources live in the examples directory alongside native Zig programs.

Sponsors

Special thanks to B Factory, Inc, the Founding Sponsor of Zignal. I originally developed this library internally for Ameli's virtual makeup try-on system, and B Factory graciously transferred ownership to the community to ensure its long-term maintenance and growth.

Star History

探索相关项目

加载中…