Invoice Splitter V1

Sample Code:

from mindee import Client, product
from time import sleep
from mindee.parsing.common import AsyncPredictResponse

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and enqueue it.
result: AsyncPredictResponse = mindee_client.enqueue_and_parse(
    product.InvoiceSplitterV1,
    input_doc,
)

# Print a brief summary of the parsed data
print(result.document)
class InvoiceSplitterV1(raw_prediction)

Inference prediction for Invoice Splitter, API version 1.

static get_endpoint_info(klass)

Retrives the endpoint information for an Inference.

Should never retrieve info for CustomV1, as a custom endpoint should be created to use CustomV1.

Parameters:

klass (Type[Inference]) – product subclass to access endpoint information.

Return type:

Dict[str, str]

endpoint_name: Optional[str] = 'invoice_splitter'

Name of the endpoint.

endpoint_version: Optional[str] = '1'

Version of the endpoint.

is_rotation_applied: Optional[bool]

Whether the document has had any rotation applied to it.

page_id: Optional[int]

Optional page id for page-level predictions.

pages: List[Page[InvoiceSplitterV1Document]]

Page-level prediction(s).

prediction: InvoiceSplitterV1Document

Document-level prediction.

product: Product

Name and version of a given product, as sent back by the API.

class InvoiceSplitterV1Document(raw_prediction)

Document data for Invoice Splitter, API version 1.

Parameters:

raw_prediction (Dict[str, Any]) –

invoice_page_groups: List[InvoiceSplitterV1PageGroup]

Page groups linked to an invoice.