Summary
This guide describes two ways to work with a document reader device on Linux OS: directly using libraries or via the Local Service SDK.
Requirements
- Linux operating system (Ubuntu, Debian, CentOS)
- Internet connection to download packages
- Root permissions to install the software
Required Actions
Option 1: Working Directly with Libraries
- Visit the documentation page: Linux - Desktop SDK
- Install the following packages:
- regula-reader — core libraries
- regula-reader-dev — development kit
- Explore the sample project RegulaDocumentReader, which demonstrates how to process data and get results in XML format. The relevant file is located at:
/usr/share/regula/Examples/RegulaDocumentReader-src/documentreader.cpp - In the documentreader.cpp section, you can find examples of working with the optical module (PasspR) and RFID.
- Sample code:
long DocumentReader::ConnectPasspr() // connect to PasspR long DocumentReader::ConnectRFID // connect to RFID long DocumentReader::Process(intptr_t processingMode) // process optical part and RFID
Documentation
Option 2: Working with Local Service SDK
- Refer to the documentation: Linux - Desktop SDK (regulaforensics.com)
- Install the following packages:
- regula-reader
- regula-reader-service
- A JavaScript-based example demonstrating device interaction via the Local Service using the Socket.IO library is available at:
/usr/share/regula/Examples/LocalServiceExample - You can test the service by opening the demo page in your browser: http://localhost:3000/
Verification
- When using libraries: verify that the functions ConnectPasspr, ConnectRFID, and Process execute successfully and return valid results.
- When using Local Service: make sure the service is running and the demo page http://localhost:3000/ is accessible.
Common Errors
- documentreader.cpp not found → Ensure the regula-reader-dev package is installed.
- Service fails to start → Check its status using command systemctl status regula-reader-service.
- No connection to the device → Verify the USB connection and user permissions.
Comments
Please sign in to leave a comment.