Skip to content

Commit 65617b3

Browse files
committed
📝 improve documentation
1 parent e565095 commit 65617b3

8 files changed

+24
-20
lines changed

docs/java-api-builder.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ For the following examples, we are using our own [W9s custom API](https://develo
66
## Quick Start
77

88
```java
9+
String path = "/path/to/the/file.ext";
10+
DocumentToParse documentToParse = new DocumentToParse(new File(path));
911
CustomEndpoint myEndpoint = new CustomEndpoint(
1012
"wnine",
1113
"john",
@@ -28,7 +30,7 @@ You have two different ways to parse a custom document.
2830
1. Use the default one (named ``CustomPrediction``):
2931
```java
3032

31-
String path = "/my/path/myfile.ext";
33+
String path = "/path/to/the/file.ext";
3234
DocumentToParse documentToParse = new DocumentToParse(new File(path));
3335
CustomEndpoint myEndpoint = new CustomEndpoint(
3436
"wnine",
@@ -60,15 +62,16 @@ public class WNineV1Inference
6062
extends Inference Inference<WNineV1DocumentPrediction, WNineV1DocumentPrediction> {
6163
}
6264

63-
String path = "/my/path/myfile.ext";
65+
String path = "/path/to/the/file.ext";
6466
DocumentToParse documentToParse = new DocumentToParse(new File(path));
6567

6668
Document<WNineV1Inference> myCustomDocument = mindeeClient
6769
.parse(WNineV1Inference.class, documentToParse);
6870
```
6971

7072
## CustomV1Inference object
71-
All the fields which are defined in the API builder when creating your custom document, are available.
73+
All the fields which are present in the API builder
74+
are available (the fields are defined when creating your custom API).
7275

7376
`CustomV1Inference` is an object which contains a document prediction and pages prediction result.
7477
### `CustomV1PagePrediction`
@@ -92,7 +95,7 @@ A Map with the following structure:
9295
In the examples below we'll use the `employer_id` field.
9396

9497
```java
95-
String path = "/my/path/myfile.ext";
98+
String path = "/path/to/the/file.ext";
9699
DocumentToParse documentToParse = new DocumentToParse(new File(path));
97100

98101
Document<WNineV1Inference> myCustomDocument = mindeeClient

docs/java-getting-started.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ Regroup the prediction on all the pages of the document and the prediction for a
186186
* `pages`[Page level prediction](#page-level-prediction)
187187

188188
#### Document Level Prediction
189-
The Response object for each document type has an attribute that represents data extracted from the entire document. It's possible to have the same field in various pages, but at the document level only the highest confidence field data will be shown (this is all done automatically at the API level).
190-
189+
The Response object for each document type has an attribute that represents data extracted from the entire document.
190+
It's possible to have the same field in various pages, but at the document level only the highest confidence field data
191+
will be shown (this is all done automatically at the API level).
191192

192193
```java
193194
Document<InvoiceV4Inference> invoiceDocument =
@@ -203,12 +204,12 @@ logger.info(invoiceResponse.documentPrediction.toString());
203204

204205
```
205206

206-
Each inference specific class will have its own specific attributes, which correspond to the various fields extracted from the document.
207+
Each inference specific class will have its own specific attributes, these correspond to the various fields extracted from the document.
207208

208209

209210
#### Page Level Prediction
210-
The `pagesPrediction` attribute is a list of `prediction` object, often of the same class as the [`documentPrediction` attribute](#document-level-prediction).
211-
But sometimes, it could have a different class which will extends the `documentPrediction` class.
211+
The `pagesPrediction` attribute is a list of `prediction` objects, often of the same class as the [`documentPrediction` attribute](#document-level-prediction).
212+
But sometimes, it could have a different class which would extend the `documentPrediction` class.
212213

213214
Each page element contains the data extracted for a particular page of the document.
214215

docs/java-invoice-ocr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Document<InvoiceV4Inference> invoiceDocument = mindeeClient.parse(InvoiceV4Infer
1616
// Print a summary of the parsed data
1717
logger.info(invoiceDocument.toString());
1818
```
19-
19+
Output:
2020
```rst
2121
########
2222
Document
@@ -232,7 +232,7 @@ invoiceDocument.getInference().getDocumentPrediction().getSupplierPaymentDetails
232232

233233
### Line items
234234

235-
**`LineItems`** (List<InvoiceLineItem>): Line items details. Each object in the list contains :
235+
**`LineItems`** (List<InvoiceLineItem>): Line items details. Each object in the list contains:
236236
* `productCode` (String)
237237
* `description` (String)
238238
* `quantity` (Double)

docs/java-license-plates-ocr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The JAVA SDK OCR SDK supports the API [Licenses plate OCR](https://developers.mindee.com/docs/license-plates-ocr-nodejs) for extracting data from pictures (or documents) of cars.
1+
The JAVA SDK OCR SDK supports the [Licenses plate OCR API](https://developers.mindee.com/docs/license-plates-ocr-nodejs) for extracting license plates from pictures (or documents) of vehicles.
22

33
Using this [sample photo](https://files.readme.io/ffc127d-sample_receipt.jpg) below, we are going to illustrate how to extract the data that we want using the OCR SDK.
44
![sample receipt](https://files.readme.io/fd6086e-license_plate.jpg)
@@ -9,7 +9,7 @@ Using this [sample photo](https://files.readme.io/ffc127d-sample_receipt.jpg) be
99
MindeeClient client = MindeeClientInit.create("<your mindee api key>");
1010

1111
// Load a file from disk and parse it
12-
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./a74eaa5-c8e283b-sample_invoice.jpeg"));
12+
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./fd6086e-license_plate.jpg"));
1313
Document<LicensePlatesV1Inference> licensePlatesDocument =
1414
mindeeClient.parse(LicensePlatesV1Inference.class, documentToParse);
1515

docs/java-passport-ocr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Using this [sample passport](https://files.readme.io/4a16b1d-passport_pic.jpg) b
99
MindeeClient client = MindeeClientInit.create("<your mindee api key>");
1010

1111
// Load a file from disk and parse it
12-
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./a74eaa5-c8e283b-sample_invoice.jpeg"));
12+
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./4a16b1d-passport_pic.jpg"));
1313
Document<PassportV1Inference> passportDocument =
1414
mindeeClient.parse(PassportV1Inference.class, documentToParse);
1515

docs/java-receipt-ocr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The .NET OCR SDK supports the [receipt API](https://developers.mindee.com/docs/receipt-ocr) for extracting data from receipts.
1+
The JAVA OCR SDK supports the [receipt API](https://developers.mindee.com/docs/receipt-ocr) for extracting data from receipts.
22

33
Using this [sample receipt](https://files.readme.io/ffc127d-sample_receipt.jpg) below, we are going to illustrate how to extract the data that we want using the OCR SDK.
44
![sample receipt](https://files.readme.io/ffc127d-sample_receipt.jpg)
@@ -9,7 +9,7 @@ Using this [sample receipt](https://files.readme.io/ffc127d-sample_receipt.jpg)
99
MindeeClient client = MindeeClientInit.create("<your mindee api key>");
1010

1111
// Load a file from disk and parse it
12-
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./a74eaa5-c8e283b-sample_invoice.jpeg"));
12+
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./ffc127d-sample_receipt.jpg"));
1313
Document<ReceiptV4Inference> receiptDocument =
1414
mindeeClient.parse(ReceiptV4Inference.class, documentToParse);
1515

docs/java-shipping-containers-ocr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The JAVA OCR SDK supports the API [Shipping containers OCR](https://developers.mindee.com/docs/shipping-containers-ocr) for extracting data from pictures of containers identification.
1+
The JAVA OCR SDK supports the [Shipping containers OCR API](https://developers.mindee.com/docs/shipping-containers-ocr) for extracting data from pictures of containers identification.
22

33
Using this [sample](https://files.readme.io/853f15a-shipping_containers.jpg) below, we are going to illustrate how to extract the data that we want using the OCR SDK.
44
![sample](https://files.readme.io/853f15a-shipping_containers.jpg)
@@ -9,7 +9,7 @@ Using this [sample](https://files.readme.io/853f15a-shipping_containers.jpg) bel
99
MindeeClient client = MindeeClientInit.create("<your mindee api key>");
1010

1111
// Load a file from disk and parse it
12-
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./a74eaa5-c8e283b-sample_invoice.jpeg"));
12+
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./853f15a-shipping_containers.jpg"));
1313
Document<ShippingContainerV1Inference> shippingContainersDocument =
1414
mindeeClient.parse(ShippingContainerV1Inference.class, documentToParse);
1515

docs/java-us-bank-check-ocr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
The .NET OCR SDK supports the [Bank Checks OCR](https://developers.mindee.com/docs/bank-check-ocr) for extracting data from bank checks.
1+
The JAVA OCR SDK supports the [Bank Checks OCR API](https://developers.mindee.com/docs/bank-check-ocr) for extracting data from bank checks.
22

33
## Quick Start
44
```java
55
// Init a new client
66
MindeeClient client = MindeeClientInit.create("<your mindee api key>");
77

88
// Load a file from disk and parse it
9-
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./a74eaa5-c8e283b-sample_invoice.jpeg"));
9+
DocumentToParse documentToParse = mindeeClient.loadDocument(new File("./path/to/the/file.ext"));
1010
Document<BankCheckV1Inference> bankCheckDocument =
1111
mindeeClient.parse(BankCheckV1Inference.class, documentToParse);
1212

0 commit comments

Comments
 (0)