How to import image data and sample import formats.
Supported file formats: JPG, PNG, and BMP Import methods:
https
URLs only)Image size limit
Please note that Labelbox does not recommend labeling images larger than 9000px by 9000px. Labeling images of this size may cause annotations to be irretrievable.
When importing cloud-hosted image data to Labelbox, your JSON file must include the following information for each image.
Parameter | Required | Description |
---|---|---|
row_data | Yes | https path to a cloud-hosted image. For IAM Delegated Access, this URL must be in virtual-hosted-style format. For older regions, your S3 bucket may be in https://<bucket-name>.s3.<region>.amazonaws.com/<key> format. If your object URLs are formatted this way, make sure they are in the virtual-hosted-style format before importing. |
global_key | No | Unique user-generated file name or ID for the file. Global keys are enforced to be unique in your org. Data rows will not be imported if its global keys are duplicated to existing data rows. |
media_type | No | "IMAGE" (optional media type to provide better validation and error messaging) |
metadata_fields | No | See Metadata. |
attachments | No | See Attachments and Asset overlays. |
This import format can be used for both importing data assets via Uploading a file, and for importing data assets via Python SDK.