image2tensor

This package provides several helper functions for converting images to tensors. It is designed primarily for the wasm32-wasi target.

Use

Build

console $ cargo build --target wasm32-wasi

Examples

rust use image2tensor; let width: u32 = 224; let height: u32 = 224; let bytes = image2tensor::convert_image_to_bytes("path/to/file", width, height, TensorType::F32, ColorOrder::BGR);

License

This project is licensed under the Apache 2.0 license. See [LICENSE] for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.