diff --git a/README.md b/README.md index ee87411..f2cde15 100644 --- a/README.md +++ b/README.md @@ -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: \ No newline at end of file + 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 . . . + ```