Skip to content

Commit 042a33a

Browse files
✨ add support for EU Driver license & international ID V2 + fixes (#218)
1 parent d95e1b1 commit 042a33a

File tree

75 files changed

+1255
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1255
-97
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,13 @@ Complete details on the working of the library are available in the following gu
135135
* [Python Command Line Interface (CLI)](https://developers.mindee.com/docs/python-cli)
136136
* [Python Custom APIs (API Builder)](https://developers.mindee.com/docs/python-api-builder)
137137
* [Python Invoice OCR](https://developers.mindee.com/docs/python-invoice-ocr)
138+
* [Python International Id OCR](https://developers.mindee.com/docs/python-international-id-ocr)
138139
* [Python Receipt OCR](https://developers.mindee.com/docs/python-receipt-ocr)
139140
* [Python Financial Document OCR](https://developers.mindee.com/docs/python-financial-document-ocr)
140141
* [Python Passport OCR](https://developers.mindee.com/docs/python-passport-ocr)
141142
* [Python Proof of Address OCR](https://developers.mindee.com/docs/python-proof-of-address-ocr)
142143
* [Python EU License Plate OCR](https://developers.mindee.com/docs/python-eu-license-plate-ocr)
144+
* [Python US Driver License OCR](https://developers.mindee.com/docs/python-eu-driver-license-ocr)
143145
* [Python FR Bank Account Detail OCR](https://developers.mindee.com/docs/python-fr-bank-account-details-ocr)
144146
* [Python FR Carte Grise OCR](https://developers.mindee.com/docs/python-fr-carte-grise-ocr)
145147
* [Python FR Carte Vitale OCR](https://developers.mindee.com/docs/python-fr-carte-vitale-ocr)

docs/extras/code_samples/bank_account_details_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.fr.BankAccountDetailsV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/bank_account_details_v2.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.fr.BankAccountDetailsV2, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/bank_check_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.us.BankCheckV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/barcode_reader_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.BarcodeReaderV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/carte_grise_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.fr.CarteGriseV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/carte_vitale_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.fr.CarteVitaleV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/cropper_v1.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.CropperV1, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from mindee import Client, PredictResponse, product
2+
3+
# Init a new client
4+
mindee_client = Client(api_key="my-api-key")
5+
6+
# Load a file from disk
7+
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
8+
9+
# Load a file from disk and parse it.
10+
# The endpoint name must be specified since it cannot be determined from the class.
11+
result: PredictResponse = mindee_client.parse(product.eu.DriverLicenseV1, input_doc)
12+
13+
# Print a summary of the API result
14+
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

docs/extras/code_samples/expense_receipts_v5.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
1010
# The endpoint name must be specified since it cannot be determined from the class.
1111
result: PredictResponse = mindee_client.parse(product.ReceiptV5, input_doc)
1212

13-
# Print a brief summary of the parsed data
13+
# Print a summary of the API result
1414
print(result.document)
15+
16+
# Print the document-level summary
17+
# print(result.document.inference.prediction)

0 commit comments

Comments
 (0)