QR Code Reader
The project demonstrates working with the QR Filter QML plugin. The project provides examples of using video filters to recognize and decode QR codes and barcodes of various types from a video stream, as well as an example of generating images of QR codes and barcodes from a text string.
You can read more about working with the QML plugin QR Filter here.
Build status:
Table of Contents
- Table of Contents
- Compatibility
- Features of build
- Branch info
- Install and Run
- Screenshots
- Use cases
- Restrictions
- Project Structure
- Terms of Use and Participation in Development
Compatibility
The project is compatible with all the supported versions of the Aurora OS. Different project branches should be used for different versions: Branch info
Features of build
This example being built using the Aurora SDK in the usual way: Documentation.
Branch info
Install and Run
The project being installed and run in the usual way using the Aurora SDK: Documentation.
When you first launch the application, you must grant it all the required permissions:
Screenshots
Use cases
Supported data types in QR codes
This application supports such types of data as: plain text, email address, link, phone number, SMS message, contact(VCard, MeCard), geolocation, Wifi connection, and calendar event.
Pre-generated QR codes for testing are located in the test-qr-codes directory. A website was used to generate them https://qrcode.tec-it.com/ru/Raw/.
Main use cases
Scanning the code
Point the camera at the code and click the "Process" button. If there is data to process and a handler, the "Show" button will be active on the next page.
Qr Code Generation
To generate code, click the "plus" button in the header panel.
Restrictions
Generating QR-codes for texts in Russian is not supported.
For OS versions lower than 5.2, code generation in other formats (DataMatrix, EAN-13, etc.) is not supported, except for the QRcode format.
Project structure
The project has a standard structure of an application based on C++ and QML for Aurora OS.
- ru.auroraos.QrCodeReader.pro file describes the project structure for the qmake build system.
- icons directory contains the application icons for different screen resolutions.
-
qml directory contains the QML source code and the UI resources.
- cover directory contains the application cover implementations.
- images directory contains the additional custom UI icons.
- pages directory contains the application pages.
- QrCodeReader.qml file provides the application window implementation.
-
rpm directory contains the rpm-package build settings.
- ru.auroraos.QrCodeReader.spec file is used by rpmbuild tool.
-
src directory contains the C++ source code.
- handler directory contains QR codes handler.
- types directory contains list types QR codes.
- createqrcodepagecontroller.h & createqrcodepagecontroller.cpp files implement the generated code processing class.
- main.cpp file is the application entry point.
- translations directory contains the UI translation files.
- test-qr-codes directory contains examples QR codes.
- ru.auroraos.QrCodeReader.desktop file defines the display and parameters for launching the application.
Terms of Use and Participation in Development
The source code of the project is provided under the license, which allows it to be used in third-party applications.
Contributor License Agreement The contributor agreement documents the rights granted by contributors of the Open Mobile Platform.
Information about the contributors is specified in the AUTHORS file.
Code of conduct is a current set of rules of the Open Mobile Platform which informs you how we expect the members of the community will interact while contributing and communicating.