#camera #webcam

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

#487 in Video

Download history 20/week @ 2024-07-21 25/week @ 2024-07-28 17/week @ 2024-08-04 21/week @ 2024-08-11 12/week @ 2024-08-18 12/week @ 2024-08-25 19/week @ 2024-09-01 15/week @ 2024-09-08 8/week @ 2024-09-15 42/week @ 2024-09-22 24/week @ 2024-09-29 7/week @ 2024-10-06 21/week @ 2024-10-13 9/week @ 2024-10-20 6/week @ 2024-10-27 30/week @ 2024-11-03

67 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

~2MB
~37K SLoC