exportV3

imerit_ango.sdk.SDK.

exportV3(project_id, batches, stage, export_format, export_type, include_key_frames_only, zip_file_path, filters)

Export annotated assets together with labels and metadata. Use batch or stage filters to export specific parts of the dataset.

Parameters

  • project_id: string

  • batches: List[string], optional, default None

    • You may choose to only export assets pertaining to one or more specific batches.

    • Example: ['0000000aa0a00a0000aaaa0a']

  • stage: List[string], optional, default None

    • You may choose to only export assets pertaining to one or more specific stages.

    • Example: ['Complete']

  • export_format: string, default "json", {"json", "ndjson"}

    • Select the format of the export output

    • Example: "ndjson"

  • export_type: string, optional, default None, {"issue"}

    • You may choose to only export issues by passing export_type="issue".

  • include_key_frames_only: bool, default False

    • You may choose to only export key frames for video assets.

  • zip_file_path: string, optional, default None

    • If included, the export will be directly downloaded as a .zip file instead of being returned as a Python dictionary. This prevents our server from having to unzip and dict-ify the export, reducing loading times.

    • Example: "/Users/lorenzo/Downloads/my_export.zip"

  • filters: Dict{string:string}

    • You may filter the export by including a filters dict here.

    • If you do not include it, by default, the export will not be filtered and it will contain all information.

    • Here is what you can include in the filters dict (picking true or false as necessary):

filters = {
    'sendEmail': 'false',
    'includeMetadata': 'false',
    'includeHistory': 'false',
    'includeSegmentationPoints': 'true',
}

Returns:

  • output: dict

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

ango_sdk.exportV3(project_id)

Last updated