Summary
This article describes two ways to install and launch the Regula Document Reader demo application:
- via the prebuilt regula-reader package
- via manual compilation using CMake and Qt
Requirements
- Linux OS (Debian, Ubuntu, RHEL)
- Administrator privileges (sudo)
- Internet connection to install packages
Steps
Option 1: Installation via package
- Install the base or developer package:
sudo apt-get install regula-reader
or
sudo apt-get install regula-reader-dev
- Navigate to the application directory:
cd /usr/lib/regula/
- Run the demo application:
./RegulaDocumentReader
- Click Connect to connect the reader:
Option 2: Manual build using custom Qt
- Install CMake and a Qt development package:
sudo apt-get install cmake qtbase5-dev
For RHEL:
sudo yum install cmake qt5-qtbase-devel
If using a custom build of Qt, make sure QTDIR or PATH is configured.
- Run the build command:
cmake -DCMAKE_BUILD_TYPE=Release -S /usr/share/regula/Examples/RegulaDocumentReader-src -B <BUILD_PATH>
- <BUILD_PATH> — the directory where build files will be placed
- Go to the build directory:
cd <BUILD_PATH>
- Launch the application:
./RegulaDocumentReader
- Click Connect to connect the reader:
Verification
- The application launches without errors.
- The reader connects after clicking Connect.
- Place a document and click Process:
- You will see the document image and RFID binary result:
Common errors
-
Application is unresponsive when connecting → Ensure there are no foreign objects in the reader’s scan area. Click Wait:
-
Qt is not found by CMake → Manually specify the Qt path using -DCMAKE_PREFIX_PATH:
cmake -S ... -DCMAKE_PREFIX_PATH=/opt/Qt/5.15.2/gcc_64
Comments
Please sign in to leave a comment.