In the project directory, we add imageproc to the project.
cargo add imageproc
The dependencies in Cargo.toml
file should look like this:
[dependencies]
imageproc = "0.25.0"
If we only add imageproc without adding image, we can precede imageproc::
when we use image functions.
let img = imageproc::image::open("my_image.jpg").unwrap();
➡️ Next: Drawing Lines
📘 Back: Table of contents