Asset Attachment

class labelbox.schema.asset_attachment.AssetAttachment(client, field_values)[source]

Bases: DbObject

Asset attachment provides extra context about an asset while labeling.

attachment_type

IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, TEXT_URL, or PDF_URL.

Type:

str

attachment_value

URL to an external file or a string of text

Type:

str

attachment_name

The name of the attachment

Type:

str

delete() None[source]

Deletes an attachment on the data row.

update(name: str | None = None, type: str | None = None, value: str | None = None)[source]

Updates an attachment on the data row.

class labelbox.schema.asset_attachment.AttachmentType(value)[source]

Bases: str, Enum

An enumeration.