Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marci1175 authored Aug 9, 2024
1 parent f462255 commit 70ecdd7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@
- ## 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:
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 . . .
```

0 comments on commit 70ecdd7

Please sign in to comment.