Skip to content

Commit 04edbcb

Browse files
♻️ remove canvas dependency (#332)
1 parent e87c10c commit 04edbcb

File tree

6 files changed

+49
-362
lines changed

6 files changed

+49
-362
lines changed

docs/driver_license_v1.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parentDoc: 609809574212d40077a040f1
66
---
77
The Node.js OCR SDK supports the [Driver License API](https://platform.mindee.com/mindee/driver_license).
88

9-
The [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/driver_license/default_sample.jpg) can be used for testing purposes.
9+
Using the [sample below](https://github.com/mindee/client-lib-test-data/blob/main/products/driver_license/default_sample.jpg), we are going to illustrate how to extract the data that we want using the OCR SDK.
1010
![Driver License sample](https://github.com/mindee/client-lib-test-data/blob/main/products/driver_license/default_sample.jpg?raw=true)
1111

1212
# Quick-Start
@@ -33,6 +33,37 @@ apiResponse.then((resp) => {
3333
console.log(resp.document.toString());
3434
});
3535
```
36+
37+
**Output (RST):**
38+
```rst
39+
########
40+
Document
41+
########
42+
:Mindee ID: fbdeae38-ada3-43ac-aa58-e01a3d47e474
43+
:Filename: default_sample.jpg
44+
45+
Inference
46+
#########
47+
:Product: mindee/driver_license v1.0
48+
:Rotation applied: Yes
49+
50+
Prediction
51+
==========
52+
:Country Code: USA
53+
:State: AZ
54+
:ID: D12345678
55+
:Category: D
56+
:Last Name: Sample
57+
:First Name: Jelani
58+
:Date of Birth: 1957-02-01
59+
:Place of Birth:
60+
:Expiry Date: 2018-02-01
61+
:Issued Date: 2013-01-10
62+
:Issuing Authority:
63+
:MRZ:
64+
:DD Number: DD1234567890123456
65+
```
66+
3667
# Field Types
3768
## Standard Fields
3869
These fields are generic and used in several products.

docs/financial_document_v1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ apiResponse.then((resp) => {
6565
########
6666
Document
6767
########
68-
:Mindee ID: b26161ce-35d0-4984-b1ff-886645e160e6
68+
:Mindee ID: f469a24d-3875-4a83-ad43-e0d5aa9da604
6969
:Filename: default_sample.jpg
7070
7171
Inference
@@ -82,8 +82,8 @@ Prediction
8282
:Document Number: INT-001
8383
:Reference Numbers: 2412/2019
8484
:Purchase Date: 2019-11-02
85-
:Due Date: 2019-02-26
86-
:Payment Date: 2019-02-26
85+
:Due Date: 2019-11-17
86+
:Payment Date: 2019-11-17
8787
:Total Net: 195.00
8888
:Total Amount: 204.75
8989
:Taxes:
@@ -134,8 +134,8 @@ Page 0
134134
:Document Number: INT-001
135135
:Reference Numbers: 2412/2019
136136
:Purchase Date: 2019-11-02
137-
:Due Date: 2019-02-26
138-
:Payment Date: 2019-02-26
137+
:Due Date: 2019-11-17
138+
:Payment Date: 2019-11-17
139139
:Total Net: 195.00
140140
:Total Amount: 204.75
141141
:Taxes:

docs/invoices_v4.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ apiResponse.then((resp) => {
6565
########
6666
Document
6767
########
68-
:Mindee ID: a67b70ea-4b1e-4eac-ae75-dda47a7064ae
68+
:Mindee ID: 86b1833f-138b-4a01-8387-860204b0e631
6969
:Filename: default_sample.jpg
7070
7171
Inference
@@ -80,8 +80,8 @@ Prediction
8080
:Purchase Order Number: AD29094
8181
:Reference Numbers: AD29094
8282
:Purchase Date: 2018-09-25
83-
:Due Date: 2011-12-01
84-
:Payment Date: 2011-12-01
83+
:Due Date:
84+
:Payment Date:
8585
:Total Net: 2145.00
8686
:Total Amount: 2608.20
8787
:Total Tax: 193.20
@@ -126,8 +126,8 @@ Page 0
126126
:Purchase Order Number: AD29094
127127
:Reference Numbers: AD29094
128128
:Purchase Date: 2018-09-25
129-
:Due Date: 2011-12-01
130-
:Payment Date: 2011-12-01
129+
:Due Date:
130+
:Payment Date:
131131
:Total Net: 2145.00
132132
:Total Amount: 2608.20
133133
:Total Tax: 193.20

0 commit comments

Comments
 (0)