Skip to content

Commit 8d09748

Browse files
committed
✨ add International ID (beta)
1 parent 5b0f922 commit 8d09748

File tree

12 files changed

+456
-164
lines changed

12 files changed

+456
-164
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from mindee import Client, product, AsyncPredictResponse
2+
from time import sleep
3+
4+
# Init a new client
5+
mindee_client = Client(api_key="my-api-key")
6+
7+
# Load a file from disk
8+
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")
9+
10+
# Load a file from disk and enqueue it.
11+
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
12+
product.InternationalIdV1,
13+
input_doc,
14+
)
15+
16+
# Print a brief summary of the parsed data
17+
print(result.document)

docs/extras/guide/invoice_splitter_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The following fields are extracted for Invoice Splitter V1:
8585

8686
```py
8787
for invoice_page_groups_elem in page.prediction.invoice_page_groups):
88-
print(invoice_page_groups_elem.polygon)
88+
print(invoice_page_groups_elem)
8989
```
9090

9191
# Questions?

docs/product/international_id_v1.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
International ID V1
2+
-------------------
3+
4+
**Sample Code:**
5+
6+
.. literalinclude:: /extras/code_samples/international_id_v1.txt
7+
:language: Python
8+
9+
.. autoclass:: mindee.product.international_id.international_id_v1.InternationalIdV1
10+
:members:
11+
:inherited-members:
12+
13+
.. autoclass:: mindee.product.international_id.international_id_v1_document.InternationalIdV1Document
14+
:members:
15+
:inherited-members:

0 commit comments

Comments
 (0)