Skip to content

Commit 0f3db2f

Browse files
⚰️ remove synchronous support for material certificate (#223)
1 parent 00e8f47 commit 0f3db2f

File tree

4 files changed

+33
-23
lines changed

4 files changed

+33
-23
lines changed

docs/extras/code_samples/material_certificate_v1.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/extras/guide/international_id_v2.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,37 @@ print(result.document)
2929

3030
**Output (RST):**
3131
```rst
32+
########
33+
Document
34+
########
35+
:Mindee ID: cfa20a58-20cf-43b6-8cec-9505fa69d1c2
36+
:Filename: default_sample.jpg
37+
38+
Inference
39+
#########
40+
:Product: mindee/international_id v2.0
41+
:Rotation applied: No
42+
43+
Prediction
44+
==========
45+
:Document Type: IDENTIFICATION_CARD
46+
:Document Number: 12345678A
47+
:Surnames: MUESTRA
48+
MUESTRA
49+
:Given Names: CARMEN
50+
:Sex: F
51+
:Birth Date: 1980-01-01
52+
:Birth Place: CAMPO DE CRIPTANA CIUDAD REAL ESPANA
53+
:Nationality: ESP
54+
:Personal Number: BAB1834284<44282767Q0
55+
:Country of Issue: ESP
56+
:State of Issue: MADRID
57+
:Issue Date:
58+
:Expiration Date: 2030-01-01
59+
:Address: C/REAL N13, 1 DCHA COLLADO VILLALBA MADRID MADRID MADRID
60+
:MRZ Line 1: IDESPBAB1834284<44282767Q0<<<<
61+
:MRZ Line 2: 8001010F1301017ESP<<<<<<<<<<<3
62+
:MRZ Line 3: MUESTRA<MUESTRA<<CARMEN<<<<<<<
3263
```
3364

3465
# Field Types

docs/extras/guide/material_certificate_v1.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Material Certificate OCR Python
33
---
44
The Python OCR SDK supports the [Material Certificate API](https://platform.mindee.com/mindee/material_certificate).
55

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

99
# Quick-Start
@@ -27,10 +27,6 @@ print(result.document)
2727
# print(result.document.inference.prediction)
2828
```
2929

30-
**Output (RST):**
31-
```rst
32-
```
33-
3430
# Field Types
3531
## Standard Fields
3632
These fields are generic and used in several products.

mindee/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class CommandConfig(Generic[TypeInference]):
120120
"material-certificate": CommandConfig(
121121
help="Material Certificate",
122122
doc_class=product.MaterialCertificateV1,
123-
is_sync=True,
123+
is_sync=False,
124124
is_async=True,
125125
),
126126
"multi-receipts": CommandConfig(

0 commit comments

Comments
 (0)