Skip to main content

OCRAnalyses API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
ocr_analyses_snapshotGET /ocr_analysesYour GET endpoint

ocr_analyses_snapshot​

OCRAnalyses ocr_analyses_snapshot(transferables=transferables)

Your GET endpoint

This will get a snapshot of all of your ocr analyses, an ocr analysis is attached to an image analysis.

Example​

import pieces_os_client
from pieces_os_client.models.ocr_analyses import OCRAnalyses
from pieces_os_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:1000
# See configuration.py for a list of all supported configuration parameters.
configuration = pieces_os_client.Configuration(
host="http://localhost:1000"
)


# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pieces_os_client.OCRAnalysesApi(api_client)
transferables = True # bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)

try:
# Your GET endpoint
api_response = api_instance.ocr_analyses_snapshot(transferables=transferables)
print("The response of OCRAnalysesApi->ocr_analyses_snapshot:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling OCRAnalysesApi->ocr_analyses_snapshot: %s\n" % e)

Parameters​

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]

Return type​

OCRAnalyses

Authorization​

No authorization required

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json, text/plain

HTTP response details​

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-