Document Scanner
The project provides an example of using video filters to finding documents.
Terms of Use and Participation
The source code of the project is provided under the license, which allows its use in third-party applications.
The contributor agreement documents the rights granted by contributors of the Open Mobile Platform.
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.
Information about the contributors is specified in the AUTHORS file.
Project Structure
The project has a standard structure of an application based on C++ and QML for Aurora OS.
app subproject contains the application source code:
- app.pro file describes the app subproject 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.
- icons directory contains the additional custom UI icons.
- pages directory contains the application pages.
- DocumentScanner.qml file provides the application window implementation.
-
src directory contains the C++ source code.
- main.cpp file is the application entry point.
- translations directory contains the UI translation files.
- ru.auroraos.DocumentScanner.desktop file defines the display and parameters for launching the application.
- opencv directory is a git submodule with OpenCV 4.7.0.
- ru.auroraos.DocumentScanner.pro file describes the project structure for the qmake build system.
-
rpm directory contains the rpm-package build settings.
- ru.auroraos.DocumentScanner.spec file is used by rpmbuild tool.
Compatibility
The project is compatible with all current versions of the Aurora OS.
Project Building
The project is built in the usual way using the Aurora SDK.
To build the project it needs to increase the Build Engine virtual machine RAM. It is required to allocate 500 MB RAM to the virtual machine for each processor core. For example, if Build Engine has 4 processor cores, then its RAM must be at least 2000 MB.
To build OpenCV library it uses CMake. The Cmake running configuration is described inside the ru.auroraos.DocumentScanner.spec file.
The shared libraries and some include files of OpenCV library will be built into the <build-project-dir>/opencv
directory.
Some include files of OpenCV library can be found in opencv source directory.
The shared libraries files of OpenCV library will be installed into the /usr/share/ru.auroraos.DocumentScanner/lib/
directory on the Aurora OS device.