22
33:bulb : Before you start: if you just want to play with an online demo, visit our [ playground] ( https://api.regulaforensics.com ) .
44
5- :warning : 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 ` .
6+
7+ :warning : NOTE: If a custom Document Reader endpoint is not specified, demo web API will be used by default.
8+ By sending requests to demo Regula Document Reader web API,
9+ you agree with our [ Privacy Policy] ( https://api.regulaforensics.com/terms )
10+ and [ License Agreement] ( https://downloads.regulaforensics.com/work/SDK/doc/Eula.pdf ) .
611
712Requirements:
813- installed python 3.5 or higher
@@ -27,31 +32,29 @@ Setup project and download dependencies:
2732pip install -e ./
2833```
2934
30- ### Running with local Regula Document Reader web API installation
35+ ### Running the client with demo Regula Document Reader web API
3136
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:
37+ Execute example:
3438``` bash
3539cd example
3640python example.py
37-
38- # If Regula Document Reader web API is running not on localhost, specify host via env variable:
39- API_BASE_PATH=" http://192.168.0.101:8080" python example.py
4041```
4142
42- ### Running using Regula Document Reader web API test SaaS
43+ ### Running the client with local Regula Document Reader web API installation
4344
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!
45+ Get your [ free trial here] ( https://mobile.regulaforensics.com/ ) . When you receive the ` regula.license ` file,
46+ copy it to the [ example] ( ../example ) folder. Now you are ready for start!
47+
48+ Follow [ the instructions] ( https://docs.regulaforensics.com/web-service/quick-start-guide ) to run Regula Document Reader web API.
49+ If the instance has been launched successfully, use the following line command to run the example:
4650
47- Execute example:
4851``` bash
4952cd example
50- API_BASE_PATH=" https ://test-api.regulaforensics.com " python example.py
53+ API_BASE_PATH=" http ://127.0.0.1:8080 " python example.py
5154```
5255
5356### Output
54- This sample generates next text output:
57+ This sample generates the following text output:
5558``` text
5659 ---------------------------------------------------------------------------
5760 Document Overall Status: not valid
@@ -62,5 +65,5 @@ This sample generates next text output:
6265 MRZ-Visual values comparison: 1
6366 ---------------------------------------------------------------------------
6467```
65- Also, it creates [ portrait] ( portrait.jpg ) and [ document image] ( document-image.jpg ) pictures inside current folder.
66- Edit on your own [ example.py ] ( ./example.py ) , and re-run to see your results.
68+ Also, it stores [ portrait] ( portrait.jpg ) and [ document image] ( document-image.jpg ) images in the current folder.
69+ You can modify [ this example] ( .. /example/example .py ) and re-run it to get your own results.
0 commit comments