docs.rs failed to build cv-convert-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
cv-convert-0.25.0
cv-convert
Type conversions among famous Rust computer vision libraries. It supports the following crates:
Import to Your Crate
Add cv-convert to Cargo.toml
to import most conversions by default.
[]
= "0.1"
You can manually choose supported libraries to avoid bloating.
= "0.1"
= false
= ["opencv-4", "opencv-buildtime-bindgen", "nalgebra"]
Supported Cargo Features
opencv crate features
opencv-4
: Enableopencv-4
in opencv crate.opencv-34
: Enableopencv-34
in opencv crate.opencv-32
: Enableopencv-32
in opencv crate.opencv-buildtime-bindgen
: Enablebuildtime-bindgen
in opencv crate.
image crate feature
image
nalgebra crate feature
nalgebra
tch crate feature
tch
Usage
The crate provides FromCv
, TryFromCv
, IntoCv
, TryIntoCv
traits, which are similar to standard library's From
and Into
.
use ;
use nalgebra as na;
use opencv as cv;
// FromCv
let cv_point = new;
let na_points = from_cv;
// IntoCv
let cv_point = new;
let na_points: Point2 = cv_point.into_cv;
// TryFromCv
let na_mat = from_vec;
let cv_mat = try_from_cv?;
// TryIntoCv
let na_mat = from_vec;
let cv_mat: Mat = na_mat.try_into_cv?;
License
MIT license. See LICENSE file.