- 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.
- The crate uses opencv's binding therefor providing a fast and efficient way of communicating with the underlying apis.
- Despite the name this crate can be used on all platforms supported by OpenCV.
-
Create a new Webcam instance, and retrive an image in the form of raw bytes:
//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 . . .