Skip to content

marci1175/wincam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • Example:

    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 . . .