simplecv 0.0.1

A simple computer vision library.
Documentation
  • Coverage
  • 83.33%
    30 out of 36 items documented6 out of 24 items with examples
  • Size
  • Source code size: 64.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 34s Average build duration of successful builds.
  • all releases: 34s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • linmx0130

rust-simplecv

Make computer vision in Rust simpler!

Canny result

Introduction

simplecv, as its name said, is a simple computer vision crate implemented in Rust. It is still in active development.

Highlights

  1. Simple interface: based on ndarray, all functions in simplecv are easy to use for developers who are familar with MATLAB or numpy + OpenCV.
  2. Simple values: all data are in f64 type. Users does not need to care the problem lead by performing operations on u8 data.
  3. Simple dependency: use as few extern crates as possible so that it is simple to install and intergrate.

Example: Edge Detection

Simply four lines code to obtain the cover image (edge detection result) with Canny's edge detector!

let lenna = imread("lenna.png");                        // read file
let lenna = rgb2gray(&lenna);                           // to gray
let edge = canny_edge(&lenna, 
           0.5, 0.05, BorderType:: Reflect);            // REAL WORK!
imsave_gray(&edge, "canny.png");                        // save image

License

This project is licensed by a BSD 3-caluse. See LICENSE for details.