An open API service indexing awesome lists of open source software.

https://github.com/marci1175/wincam

This crate aims to create an easy way to capture images.
https://github.com/marci1175/wincam

crate opencv rust

Last synced: 12 months ago
JSON representation

This crate aims to create an easy way to capture images.

Awesome Lists containing this project

README

          

# Capture images with your webcam in the easiest way:
- ## Simplicity:
This crate builds upon simplicity therefor is very easy to use. The difficulties one might have to encounter while trying to achieve a similar result is nonexistent.
- ## Performance:
The crate uses opencv's binding therefor providing a fast and efficient way of communicating with the underlying apis.
- ## Support:
Despite the name this crate can be used on all platforms supported by [OpenCV](https://crates.io/crates/opencv).
- ## Example:
Create a new Webcam instance, and retrive an image in the form of raw bytes:
```rust
//Crate webcam handle
let mut webcam = Webcam::new_def_auto_detect().unwrap();

//Get raw image bytes
let raw_image_bytes = webcam.get_frame().unwrap();

//Handle bytes . . .
```