#capture #webcam #camera #v4l #mf

camera_capture

capture webcam images on linux and windows

6 releases (breaking)

Uses old Rust 2015

0.5.0 Nov 20, 2017
0.4.0 Oct 23, 2017
0.3.0 Apr 28, 2016
0.2.2 Apr 21, 2016
0.1.1 Apr 21, 2016

#334 in Video

Download history 29/week @ 2024-03-11 23/week @ 2024-03-18 22/week @ 2024-03-25 48/week @ 2024-04-01 14/week @ 2024-04-08 20/week @ 2024-04-15 24/week @ 2024-04-22 16/week @ 2024-04-29 20/week @ 2024-05-06 23/week @ 2024-05-13 25/week @ 2024-05-20 17/week @ 2024-05-27 24/week @ 2024-06-03 14/week @ 2024-06-10 21/week @ 2024-06-17 24/week @ 2024-06-24

85 downloads per month
Used in 3 crates

MIT license

9KB
191 lines

Webcam capturing in Rust

Description

Captures webcam images and offers access to them through an iterator. Works with v4l2 on linux.

TODO

  • threaded access through channel Receiver
  • automatic webcam detection and selection

Example

extern crate camera_capture;

fn main() {
    let cam = camera_capture::create(0).unwrap();
    let cam = cam.fps(5.0).unwrap().start().unwrap();
    for _image in cam {
        println!("frame");
    }
    println!("done");
}

Piston Example

In the examples directory

Dependencies

~10MB
~35K SLoC