Skip to content
프로젝트

소개

의존성이 없는 이미지 처리 라이브러리입니다.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • 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.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…