Image2Tensor

This package provides several helper functions for converting images to tensors.

Use

Examples

use image2tensor; let width: u32 = 224; let height: u32 = 224; let precision = image2tensor::TensorType::F32; let bufsize = image2tensor::calculate_buffer_size(width, height, precision); let mut out_buffer = vec![0; bufsize]; let bytes_written: i32 = image2tensor::convert_image(path_std_str, width, height, precision, out_arr);

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.