OcrDocumentRequest
OcrDocumentRequest documentation for Python SDK
Request body for OCR document processing.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| content | str | Base64-encoded document bytes | |
| format | OcrInputFormat | [optional] | |
| include_raw_json | bool | Include raw OCR JSON payload in the response | [optional] |
| include_markdown | bool | Include markdown rendering in the response | [optional] |
| start_page | int | 0-based inclusive start page | [optional] |
| end_page | int | 0-based inclusive end page | [optional] |
Example
from goodmem_client.models.ocr_document_request import OcrDocumentRequest
# TODO update the JSON string below
json = "{}"
# create an instance of OcrDocumentRequest from a JSON string
ocr_document_request_instance = OcrDocumentRequest.from_json(json)
# print the JSON string representation of the object
print(OcrDocumentRequest.to_json())
# convert the object into a dict
ocr_document_request_dict = ocr_document_request_instance.to_dict()
# create an instance of OcrDocumentRequest from a dict
ocr_document_request_from_dict = OcrDocumentRequest.from_dict(ocr_document_request_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK