- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
BS-capture
Example program which captures pictures from a connected USB Webcam via Video4Linux. It is part of the demo setup shown in the master thesis of Michael Preisach
Prerequisities
Install Rust either via official Rust installation link or use the packages provided from the Ubuntu repos.
apt install rustc cargo
The program uses the interface of Video4Linux. For Ubuntu 20.04:
apt install libv4l-0 libv4l-dev v4l-utils
Usage
This Rust program is just a demo which captures an image from /dev/video0 and stores it in the working directory as JPEG file.
The source code is is adapted from https://github.com/loyd/rscam/blob/master/examples/capture.rs.
LICENSE
Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence"). You may not use this work except in compliance with the Licence.
License: European Union Public License v1.2