You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: qr_reader_pc crate: opencv video input and output (#873)
* rscam replaced by nokhwa (crossplatform video capture) crate. Added video output using minifb crate.
* Program argument processing added. Added display of the list of available devices.
* Improved parser of program arguments.
* Program argument parser improvements. Added structure for camera config storing.
* Argument parser refactoring.
* Documentation added.
* implementation with opencv
* QR decoding added. Extra code removed. Documentation updated.
* Quircs crate returned (due to problems with the opencv QR decoder). Unit and integration tests added. QR decoding function added to API.
* Readme file updated.
* Opencv version update. Extra dependencies are removed.
* Doc fix.
* fix: remove extra spaces and add line break
* fix: crate version 0.2.0
* fix: skipping frames to prevent cpaturing old frames from the camera buffer
Co-authored-by: Slesarew <[email protected]>
QR reader crate for PC is a utility to capture (via webcam) QR codes from Signer mobile app
4
+
and extracting data from it.
5
+
It prints a string with decoded QR message in HEX format on display (and to file "decoded_output.txt").
6
+
7
+
## Getting Started
8
+
9
+
### Dependencies
10
+
11
+
The main requirement is the OpenCV. You can check this manuals: https://crates.io/crates/opencv and https://docs.opencv.org.
12
+
13
+
#### Arch Linux:
14
+
15
+
OpenCV package in Arch is suitable for this crate. It requires some dependencies.
16
+
17
+
*`pacman -S clang qt5-base opencv`
18
+
19
+
#### Other Linux systems:
20
+
21
+
* For Debian/Ubuntu also you need: `clang` and `libclang-dev`
22
+
* For Gentoo/Fedora also you need: `clang`
23
+
* It is preferable to build latest version of opencv+opencv_contrib from source. OpenCV package from the system repository may not contain the necessary libraries.\
24
+
Use this manual: https://docs.opencv.org/4.5.3/d7/d9f/tutorial_linux_install.html
25
+
26
+
### Executing program
27
+
28
+
* Run the program: `cargo run` + arguments
29
+
* Press any key to stop
30
+
31
+
#### Arguments
32
+
33
+
*`d` | `-d` | `--device` : set index of camera (from list of available cameras)
34
+
*`l` | `-l` | `--list` : get a list of available camera indexes
0 commit comments