DocumentationRecipesReferenceGraphQLChangelog
Log In
Check the detailed JSON property descriptions
  • annotationsList of annotations
    • boundingPoly: Polygon of the object contour
      • normalizedVertices: List of vertices of the polygon. In the case of a bounding box, 4 vertices
        • x: Abscissa of the vertex position from top left and expressed as a percentage of the total image size
        • y: Ordinate of the vertex position from top left and expressed as a percentage of the total image size
    • children: Job containing the text recognized by the OCR
    • categories: Category of the object
      • name: Name of the category
      • confidence: Confidence (100 by default when done by human)
    • mid: A unique identifier of the object
    • score: When a pre-annotation model is used, the score is the confidence of the object detection

Examples of exported transcription jobs:

'json_response': {
            'JOB_0': {
                'annotations': [{
                    'boundingPoly': [{
                        'normalizedVertices': [
                            {'x': 0.47, 'y': 0.53},
                            {'x': 0.47, 'y': 0.48},
                            {'x': 0.65, 'y': 0.48},
                            {'x': 0.65, 'y': 0.53}
                        ]
                    }],
                    'categories': [{'name': 'NATIONALITY', 'confidence': 100}],
                    'mid': 'nationality',
                    'type': 'rectangle',
                    'children': {'JOB_1': {'text': 'Nederlandse'}}
                },
                {
                    'boundingPoly': [{
                        'normalizedVertices': [
                            {'x': 0.36, 'y': 0.37},
                            {'x': 0.36, 'y': 0.32},
                            {'x': 0.51, 'y': 0.32},
                            {'x': 0.51, 'y': 0.37}
                        ]
                    }],
                    'categories': [{'name': 'NAME', 'confidence': 100}],
                    'mid': 'name',
                    'type': 'rectangle',
                    'children': {'JOB_2': {'text': 'De Bruijn'}}
                }]
            }
        }
'json_response': {
            'JOB_0': {
                'annotations': [{
                    'boundingPoly': [{
                        'normalizedVertices': [
                            {'x': 0.47, 'y': 0.53},
                            {'x': 0.47, 'y': 0.48},
                            {'x': 0.65, 'y': 0.48},
                            {'x': 0.65, 'y': 0.53}
                        ]
                    }],
                    'categories': [{'name': 'NATIONALITY', 'confidence': 100}],
                    'type': 'rectangle',
                    'mid': 'netherlands',
                    'children': {'TRANSCRIPTION_JOB_1': {'text': 'Nederlandse'}}
                },
                {
                    'boundingPoly': [{
                        'normalizedVertices': [
                            {'x': 0.36, 'y': 0.37},
                            {'x': 0.36, 'y': 0.32},
                            {'x': 0.51, 'y': 0.32},
                            {'x': 0.51, 'y': 0.37}
                        ]
                    }],
                    'categories': [{'name': 'NAME', 'confidence': 100}],
                    'type': 'rectangle',
                    'mid': 'bruijn',
                    'children': {'TRANSCRIPTION_JOB_2': {'text': 'De Bruijn'}}
                },
                {
                    'boundingPoly': [{
                        'normalizedVertices': [
                            {'x': 0.36, 'y': 0.61},
                            {'x': 0.36, 'y': 0.56},
                            {'x': 0.63, 'y': 0.56},
                            {'x': 0.63, 'y': 0.61}
                        ]
                    }],
                    'categories': [{'name': 'BIRTH_DATE', 'confidence': 100}],
                    'type': 'rectangle',
                    'mid': 'date',
                    'children': {'TRANSCRIPTION_JOB_3': {'text': '10 MAA/MAR 1965'}}
                }]
            },
            "OCR_RELATION_JOB": {
                "annotations": [
                    {"categories": [{ "name": "NAME_AND_NATIONALITY", "confidence": 100 }],
                    "startObjects": [{ "mid": "bruijn" }],
                    "endObjects": [{ "mid": "netherlands" }]},
                    {"categories": [{ "name": "NAME_AND_BIRTH_DATE", "confidence": 100 }],
                    "startObjects": [{ "mid": "bruijn" }],
                    "endObjects": [{ "mid": "date" }]}
                ]
            }
        }

For general export format information, refer to Exported data format.