Skip to content

Commit 8c72e80

Browse files
📝 add auto-sync for md documentation (#252)
1 parent 7ca1672 commit 8c72e80

30 files changed

+197
-169
lines changed

.github/workflows/sync-readme.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync `documentation` directory to ReadMe
2+
3+
# Run workflow for every push to the `main` branch
4+
on:
5+
workflow_dispatch:
6+
release:
7+
branches:
8+
- main
9+
10+
jobs:
11+
sync:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout this repo
15+
uses: actions/checkout@v4
16+
17+
# Run GitHub Action to sync docs in `documentation` directory
18+
- name: GitHub Action
19+
uses: readmeio/rdme@v8
20+
with:
21+
rdme: docs ./docs/extras/guide --key=${{ secrets.README_API_KEY }} --version=1.0

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ Complete details on the working of the library are available in the following gu
133133

134134
* [Getting started](https://developers.mindee.com/docs/python-getting-started)
135135
* [Python Command Line Interface (CLI)](https://developers.mindee.com/docs/python-cli)
136-
* [Python Custom APIs (API Builder)](https://developers.mindee.com/docs/python-api-builder)
136+
* [Python Generated](https://developers.mindee.com/docs/generated-api-python)
137+
* [Python Custom APIs (Deprecated - API Builder)](https://developers.mindee.com/docs/python-api-builder)
137138
* [Python Invoice OCR](https://developers.mindee.com/docs/python-invoice-ocr)
138139
* [Python International Id OCR](https://developers.mindee.com/docs/python-international-id-ocr)
139140
* [Python Resume OCR](https://developers.mindee.com/docs/python-resume-ocr)
@@ -146,15 +147,15 @@ Complete details on the working of the library are available in the following gu
146147
* [Python FR Bank Account Detail OCR](https://developers.mindee.com/docs/python-fr-bank-account-details-ocr)
147148
* [Python FR Carte Grise OCR](https://developers.mindee.com/docs/python-fr-carte-grise-ocr)
148149
* [Python FR Carte Vitale OCR](https://developers.mindee.com/docs/python-fr-carte-vitale-ocr)
149-
* [Python FR ID Card OCR](https://developers.mindee.com/docs/python-fr-id-card-ocr)
150+
* [Python FR ID Card OCR](https://developers.mindee.com/docs/python-fr-carte-nationale-didentite-ocr)
150151
* [Python FR Petrol Receipts OCR](https://developers.mindee.com/docs/python-fr-petrol-receipts-ocr)
151152
* [Python US Bank Check OCR](https://developers.mindee.com/docs/python-us-bank-checks-ocr)
152153
* [Python US W9 OCR](https://developers.mindee.com/docs/python-us-w9-ocr)
153154
* [Python US Driver License OCR](https://developers.mindee.com/docs/python-us-driver-license-ocr)
154-
* [Python Barcode Reader API](https://developers.mindee.com/docs/python-barcode-reader-api)
155-
* [Python Cropper API](https://developers.mindee.com/docs/python-cropper-api)
156-
* [Python Invoice Splitter API](https://developers.mindee.com/docs/python-invoice-splitter-api)
157-
* [Python Multi Receipts Detector API](https://developers.mindee.com/docs/python-multi-receipts-detector-api)
155+
* [Python Barcode Reader API](https://developers.mindee.com/docs/python-barcode-reader-ocr)
156+
* [Python Cropper API](https://developers.mindee.com/docs/python-cropper-ocr)
157+
* [Python Invoice Splitter API](https://developers.mindee.com/docs/python-invoice-splitter-ocr)
158+
* [Python Multi Receipts Detector API](https://developers.mindee.com/docs/python-multi-receipts-detector-ocr)
158159

159160
You can view the source code on [GitHub](https://github.com/mindee/mindee-api-python).
160161

docs/extras/guide/bank_account_details_v2.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: FR Bank Account Details OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-fr-bank-account-details-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Bank Account Details API](https://platform.mindee.com/mindee/bank_account_details).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -70,15 +74,15 @@ Page 0
7074
## Standard Fields
7175
These fields are generic and used in several products.
7276

73-
### BasicField
77+
### BaseField
7478
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
7579
A typical `BaseField` object will have the following attributes:
7680

7781
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
7882
* **confidence** (`float`): the confidence score of the field prediction.
7983
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
8084
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
81-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
85+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
8286
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
8387

8488
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).

docs/extras/guide/bank_check_v1.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: US Bank Check OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-us-bank-check-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Bank Check API](https://platform.mindee.com/mindee/bank_check).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -70,15 +74,15 @@ Page 0
7074
## Standard Fields
7175
These fields are generic and used in several products.
7276

73-
### BasicField
77+
### BaseField
7478
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
7579
A typical `BaseField` object will have the following attributes:
7680

7781
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
7882
* **confidence** (`float`): the confidence score of the field prediction.
7983
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
8084
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
81-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
85+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
8286
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
8387

8488
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).
@@ -106,7 +110,7 @@ The position field `PositionField` does not implement all the basic `BaseField`
106110
The text field `StringField` only has one constraint: its **value** is an `Optional[str]`.
107111

108112
## Page-Level Fields
109-
Some fields are constrained to the page level, and so will not be retrievable to through the document.
113+
Some fields are constrained to the page level, and so will not be retrievable at document level.
110114

111115
# Attributes
112116
The following fields are extracted for Bank Check V1:

docs/extras/guide/barcode_reader_v1.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: Barcode Reader OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-barcode-reader-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Barcode Reader API](https://platform.mindee.com/mindee/barcode_reader).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -60,15 +64,15 @@ Page 0
6064
## Standard Fields
6165
These fields are generic and used in several products.
6266

63-
### BasicField
67+
### BaseField
6468
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
6569
A typical `BaseField` object will have the following attributes:
6670

6771
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
6872
* **confidence** (`float`): the confidence score of the field prediction.
6973
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
7074
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
71-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
75+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
7276
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
7377

7478
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).

docs/extras/guide/carte_grise_v1.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: FR Carte Grise OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-fr-carte-grise-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Carte Grise API](https://platform.mindee.com/mindee/carte_grise).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -136,15 +140,15 @@ Page 0
136140
## Standard Fields
137141
These fields are generic and used in several products.
138142

139-
### BasicField
143+
### BaseField
140144
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
141145
A typical `BaseField` object will have the following attributes:
142146

143147
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
144148
* **confidence** (`float`): the confidence score of the field prediction.
145149
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
146150
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
147-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
151+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
148152
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
149153

150154
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).

docs/extras/guide/carte_vitale_v1.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: FR Carte Vitale OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-fr-carte-vitale-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Carte Vitale API](https://platform.mindee.com/mindee/carte_vitale).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -62,15 +66,15 @@ Page 0
6266
## Standard Fields
6367
These fields are generic and used in several products.
6468

65-
### BasicField
69+
### BaseField
6670
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
6771
A typical `BaseField` object will have the following attributes:
6872

6973
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
7074
* **confidence** (`float`): the confidence score of the field prediction.
7175
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
7276
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
73-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
77+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
7478
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
7579

7680
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).

docs/extras/guide/cli.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,58 @@
1-
## Command Line Usage
1+
---
2+
title: Command Line Interface
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-cli
5+
parentDoc: 609808f773b0b90051d839de
6+
---
7+
# Command Line Usage
28

39
The CLI tool is provided mainly for quick tests and debugging.
410

5-
### General help
11+
## General help
612

713
```shell
814
python3 -m mindee --help
915
```
1016

11-
### Example command help
17+
## Example command help
1218

1319
```shell
1420
python3 -m mindee parse --help
1521
```
1622

17-
### Example parse command for Off-the-Shelf document
23+
## Example parse command for Off-the-Shelf document
1824

1925
```shell
2026
python3 -m mindee parse invoice --key xxxxxxx /path/to/invoice.pdf
2127
```
2228

23-
### Works with environment variables
29+
## Works with environment variables
2430

2531
```shell
2632
export MINDEE_API_KEY=xxxxxx
2733
python3 -m mindee parse invoice /path/to/invoice.pdf
2834
```
2935

30-
### Example parse command for a custom document
36+
## Example parse command for a custom document
3137

3238
```shell
3339
python3 -m mindee parse custom -a pikachu -k xxxxxxx pokemon_card /path/to/card.jpg
3440
```
3541

36-
### Example async parse command
42+
## Example async parse command
3743

3844
```shell
3945
python3 -m mindee parse invoice-splitter
4046
```
4147

4248

43-
### Full parsed output
49+
## Full parsed output
4450

4551
```shell
4652
python3 -m mindee invoice -o parsed /path/to/invoice.pdf
4753
```
4854

49-
### Running the script through shell
55+
## Running the script through shell
5056

5157
A helper script allows you to start the command directly:
5258

docs/extras/guide/cropper_v1.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: Cropper OCR Python
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-cropper-ocr
5+
parentDoc: 609808f773b0b90051d839de
36
---
47
The Python OCR SDK supports the [Cropper API](https://platform.mindee.com/mindee/cropper).
58

@@ -25,6 +28,7 @@ print(result.document)
2528

2629
# Print the document-level summary
2730
# print(result.document.inference.prediction)
31+
2832
```
2933

3034
**Output (RST):**
@@ -56,15 +60,15 @@ Page 0
5660
## Standard Fields
5761
These fields are generic and used in several products.
5862

59-
### BasicField
63+
### BaseField
6064
Each prediction object contains a set of fields that inherit from the generic `BaseField` class.
6165
A typical `BaseField` object will have the following attributes:
6266

6367
* **value** (`Union[float, str]`): corresponds to the field value. Can be `None` if no value was extracted.
6468
* **confidence** (`float`): the confidence score of the field prediction.
6569
* **bounding_box** (`[Point, Point, Point, Point]`): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.
6670
* **polygon** (`List[Point]`): contains the relative vertices coordinates (`Point`) of a polygon containing the field in the image.
67-
* **page_id** (`int`): the ID of the page, is `None` when at document-level.
71+
* **page_id** (`int`): the ID of the page, always `None` when at document-level.
6872
* **reconstructed** (`bool`): indicates whether an object was reconstructed (not extracted as the API gave it).
6973

7074
> **Note:** A `Point` simply refers to a List of two numbers (`[float, float]`).
@@ -80,7 +84,7 @@ The position field `PositionField` does not implement all the basic `BaseField`
8084
* **quadrangle** (`[Point, Point, Point, Point]`): a free polygon made up of four points.
8185

8286
## Page-Level Fields
83-
Some fields are constrained to the page level, and so will not be retrievable to through the document.
87+
Some fields are constrained to the page level, and so will not be retrievable at document level.
8488

8589
# Attributes
8690
The following fields are extracted for Cropper V1:

docs/extras/guide/custom_v1.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
2-
title: Custom API Python
2+
title: Custom API Python (Deprecated)
3+
category: 622b805aaec68102ea7fcbc2
4+
slug: python-api-builder
5+
parentDoc: 609808f773b0b90051d839de
36
---
7+
> 🚧 This product is still supported, but is considered to be deprecated. If you are looking for the DocTI API documentation, you can find it [here](https://developers.mindee.com/docs/generated-api-python).
8+
49
The Python OCR SDK supports [custom-built APIs](https://developers.mindee.com/docs/build-your-first-document-parsing-api).
510
If your document isn't covered by one of Mindee's Off-the-Shelf APIs, you can create your own API using the[API Builder](https://platform.mindee.com/api-builder).
611

0 commit comments

Comments
 (0)