Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Regula Document Reader java client compatible with jvm and android

💡 Before you start: if you just want to play with an online demo, visit our playground.

⚠️ NOTE: If a custom Document Reader endpoint is not specified, demo web API will be used by default. By sending requests to demo Regula Document Reader web API, you agree with our Privacy Policy and License Agreement.

Requirements:

  • installed java 11+

Java version verification:

java --version  
>  openjdk 14.0.1 2020-04-14

Example of cloning:

git clone https://github.com/regulaforensics/DocumentReader-web-java-client.git
cd DocumentReader-web-java-client

Running the client with demo Regula Document Reader web API

⚠️ NOTE: for some systems, the gradlew.bat command should be used instead of ./gradlew.

Example of execution:

./gradlew :example:run

Running the client with local Regula Document Reader web API installation

⚠️ NOTE: for some systems, the gradlew.bat command should be used instead of ./gradlew.

Get your free trial here. When you receive the regula.license file, copy it to the example resources folder. Now you are ready for start!

Follow the instructions to run Regula Document Reader web API. If the instance has been launched successfully, use the following line command to run the example:

API_BASE_PATH="http://127.0.0.1:8080" ./gradlew :example:run

Output

This sample generates the following text output:

    ---------------------------------------------------------------------------
                   Document Overall Status: not valid
                    Document Number Visual: U0996738
                       Document Number MRZ: U0996738
        Validity Of Document Number Visual: 1
           Validity Of Document Number MRZ: 1
              MRZ-Visual values comparison: 1
    ---------------------------------------------------------------------------

Also, it stores portrait and document image images in the current folder. You can modify this example and re-run it to get your own results.