#computer-vision #camera-image #camera #image

no-std machine-vision-formats

Types and traits for working with raw image data from machine vision cameras

4 releases

new 0.1.3 Nov 1, 2024
0.1.2 Oct 26, 2024
0.1.1 Oct 25, 2021
0.1.0 May 29, 2021

#198 in Images

Download history 363/week @ 2024-07-16 1003/week @ 2024-07-23 411/week @ 2024-07-30 430/week @ 2024-08-06 137/week @ 2024-08-13 113/week @ 2024-08-20 111/week @ 2024-08-27 108/week @ 2024-09-03 112/week @ 2024-09-10 114/week @ 2024-09-17 198/week @ 2024-09-24 194/week @ 2024-10-01 392/week @ 2024-10-08 235/week @ 2024-10-15 699/week @ 2024-10-22 398/week @ 2024-10-29

1,743 downloads per month
Used in convert-image

MIT/Apache

43KB
961 lines

machine-vision-formats

Documentation Crates.io

Types and traits for working with raw image data from machine vision cameras.

This crate aims to be a lowest common denominator for working with images from machine vision cameras from companies such as Basler, FLIR, and AVT.

  • Can be compiled without standard library support (no_std).
  • Includes strongly-typed pixel formats in the pixel_format module (e.g. RGB8 and Mono8) to ensure correct API use.
  • Includes types to efficiently iterate through images respecting strided layouts in the [iter] module.
  • Includes structs which reference image data in the [image_ref] module.
  • Includes struct which owns image data in the [owned] module.

This crate is used extensively in Strand Camera.

Potential further improvements

The list of pixel formats variants is currently limited rather limited. Please submit an issue or, better, pull request for any additions needed.

We could also address the question of how endian-ness and packed-ness are handled. Currently, these are not specified.

See also

Test compilation with all feature variants

cargo build
cargo +nightly build --no-default-features --features "alloc"
cargo +nightly build --no-default-features

Code of conduct

Anyone who interacts with this software in any space, including but not limited to this GitHub repository, must follow our code of conduct.

License

Licensed under either of these:

No runtime deps

Features