11# Regula Document Reader web API Python 3.5+ client
22
3- Before you start: if you just want to play with an online demo, visit our [ playground] ( https://api.regulaforensics.com ) .
3+ : bulb : Before you start: if you just want to play with an online demo, visit our [ playground] ( https://api.regulaforensics.com ) .
44
5- ## Running local example
6-
7- NOTE: for some systems ` python3 ` and ` pip3 ` commands should be used, instead of ` python ` and ` pip ` .
5+ :warning : NOTE: for some systems ` python3 ` and ` pip3 ` commands should be used, instead of ` python ` and ` pip ` .
86
97Requirements:
108- installed python 3.5 or higher
119- installed [ pip] ( https://pip.pypa.io/en/stable/installing/ )
12- - running [ Regula Document Reader web API with trial license] ( https://docs.regulaforensics.com/web/quick-start-guide )
1310
1411Verify Python and pip versions:
1512``` bash
@@ -30,15 +27,30 @@ Setup project and download dependencies:
3027pip install -e ./
3128```
3229
33- Run example:
30+ ### Running with local Regula Document Reader web API installation
31+
32+ Follow [ the instructions] ( https://docs.regulaforensics.com/web/quick-start-guide ) to run Regula Document Reader web API.
33+ Assuming you have successfully launched instance, use next line command to run example:
3434``` bash
3535cd example
3636python example.py
3737
38- # If Regula Document Reader web API is running not on localhost, also specify host via env variable:
38+ # If Regula Document Reader web API is running not on localhost, specify host via env variable:
3939API_BASE_PATH=" http://192.168.0.101:8080" python example.py
4040```
4141
42+ ### Running using Regula Document Reader web API test SaaS
43+
44+ Get your [ free trial here] ( https://mobile.regulaforensics.com/ ) . You should obtain ` regula.license ` file.
45+ Copy it to ** example** folder. You are ready for running!
46+
47+ Execute example:
48+ ``` bash
49+ cd example
50+ API_BASE_PATH=" https://test-api.regulaforensics.com" python example.py
51+ ```
52+
53+ ### Output
4254This sample generates next text output:
4355``` text
4456 ---------------------------------------------------------------------------
@@ -50,11 +62,5 @@ This sample generates next text output:
5062 MRZ-Visual values comparison: 1
5163 ---------------------------------------------------------------------------
5264```
53- Also, it creates [ portrait] ( portrait.jpg ) and [ document image] ( document-image.jpg )
54- pictures inside current folder.
55-
65+ Also, it creates [ portrait] ( portrait.jpg ) and [ document image] ( document-image.jpg ) pictures inside current folder.
5666Edit on your own [ example.py] ( ./example.py ) , and re-run to see your results.
57-
58- ## Detailed guide
59-
60- tbd
0 commit comments