| Crates.io | rxcv |
| lib.rs | rxcv |
| version | 0.1.0-alpha.5 |
| created_at | 2023-01-19 07:10:49.278291+00 |
| updated_at | 2023-02-01 02:04:38.196411+00 |
| description | RxCV provide Rust programming experience to OpenCV. |
| homepage | |
| repository | https://github.com/chordizm/rxcv |
| max_upload_size | |
| id | 762371 |
| size | 209,617 |
RxCV provide Rust programming experience to OpenCV.
| Platform | Arch | Status |
|---|---|---|
| Linux | x86_64 | 0.1.0 |
| Linux | aarch64 | 0.1.0 |
| Windows | All | TBA |
| macOS | All | TBA |
Currently support opencv installed from apt.
| Module | Status |
|---|---|
| core | [WIP]0.1.0 |
| imgproc | [WIP]0.1.0 |
| imgcodecs | [WIP]0.1.0 |
| videoio | TBA |
| calib3d | TBA |
| features2d | TBA |
| objdetect | TBA |
| dnn | TBA |
| ml | TBA |
| flann | TBA |
| photo | TBA |
| stiching | TBA |
| gapi | TBA |
std::vector<uchar> data = /* Some binary */;
cv::Mat src = cv::imdecode(data, cv::IMREAD_COLOR), dst;
// Execution time error.
auto thresh = cv::threshold(src, dst, 0, 255, cv::THRESH_BINARY | cv::THRESH_OTSU);
use rxcv::{
imgproc::{Threshold, ThresholdTypes},
Mat,
};
let data:&[u8] = &[1, 2, 3, 4, 5, 6];
let src = Mat::<u8, 3>::decode(data).unwrap();
/**
Not implemented threshold on Mat::<u8, 3>
let (thresh, dst) = src.threshold(
0,
255,
ThresholdTypes::THRESH_BINARY | ThresholdTypes::THRESH_OTSU
);
*/
// Convert Color;
let src = src.cvt_color_bgr2gray().unwrap();
let (thresh, dst) = src.threshold(
0,
255,
ThresholdTypes::THRESH_BINARY | ThresholdTypes::THRESH_OTSU
).unwrap();
std::vector<uchar> data = /* Some binary */;
cv::Mat src = cv::imdecode(data);
use rxcv::Mat;
let data:&[u8] = &[1, 2, 3, 4, 5, 6];
let src = Mat::<u8, 3>::decode(data).unwrap();
This project is licensed under either of Apache License, Version 2.0 or MIT license at your option.