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.
- Host: GitHub
- URL: https://github.com/marci1175/wincam
- Owner: marci1175
- Created: 2024-08-06T18:21:36.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T20:29:37.000Z (almost 2 years ago)
- Last Synced: 2025-07-13T14:57:50.838Z (12 months ago)
- Topics: crate, opencv, rust
- Language: Rust
- Homepage: https://crates.io/crates/wincam
- Size: 2.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 . . .
```