2
2
3
3
:bulb : Before you start: if you just want to play with an online demo, visit our [ playground] ( https://api.regulaforensics.com ) .
4
4
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 ) .
6
11
7
12
Requirements:
8
13
- installed python 3.5 or higher
@@ -27,31 +32,29 @@ Setup project and download dependencies:
27
32
pip install -e ./
28
33
```
29
34
30
- ### Running with local Regula Document Reader web API installation
35
+ ### Running the client with demo Regula Document Reader web API
31
36
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:
34
38
``` bash
35
39
cd example
36
40
python 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
40
41
```
41
42
42
- ### Running using Regula Document Reader web API test SaaS
43
+ ### Running the client with local Regula Document Reader web API installation
43
44
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:
46
50
47
- Execute example:
48
51
``` bash
49
52
cd 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
51
54
```
52
55
53
56
### Output
54
- This sample generates next text output:
57
+ This sample generates the following text output:
55
58
``` text
56
59
---------------------------------------------------------------------------
57
60
Document Overall Status: not valid
@@ -62,5 +65,5 @@ This sample generates next text output:
62
65
MRZ-Visual values comparison: 1
63
66
---------------------------------------------------------------------------
64
67
```
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