#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

#325 in Video

Download history 1/week @ 2023-12-17 1/week @ 2023-12-24 9/week @ 2024-01-07 6/week @ 2024-01-14 7/week @ 2024-02-11 30/week @ 2024-02-18 34/week @ 2024-02-25 21/week @ 2024-03-03 31/week @ 2024-03-10 23/week @ 2024-03-17 26/week @ 2024-03-24

105 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