OpenCV Use Cases

OpenCV Use Cases

OpenCV Usage

The application template for demonstrating the connection and usage of the OpenCV library.

Terms of Use and Participation

The source code of the project is provided under the license, that allows it to be used 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.
    • OpenCVUsage.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.OpenCVUsage.desktop file defines the display and parameters for launching the application.
  • opencv subproject contains the git submodule with OpenCV library source code.
  • ru.auroraos.OpenCVUsage.pro file describes the project structure for the qmake build system.
  • rpm directory contains the rpm-package build settings.

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.OpenCVUsage.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.OpenCVUsage/lib/ directory on the Aurora OS device.

Screenshots

screenshots

This document in Russian / Перевод этого документа на русский язык