No description
Find a file
2022-01-25 13:56:44 +01:00
src add EUPL license 2022-01-25 12:51:50 +01:00
.gitignore remove images from repo 2020-08-12 15:16:45 +02:00
Cargo.lock first working program 2020-08-12 15:10:43 +02:00
Cargo.toml add EUPL license 2022-01-25 12:51:50 +01:00
LICENSE add license file 2022-01-25 13:56:44 +01:00
README.md add EUPL license 2022-01-25 12:51:50 +01:00

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