Asset information overlay

Overlay multi-media metadata on the labeling interface using the Asset Info feature. When asset information is available, it is shown by pressing the i icon in the top right.

Adding asset info via the GraphQL API

Adding text asset info to a Data Row

Run this query

mutation addAssetInfo {
createAssetMetadata(
data: {
dataRowId:"<DATAROW-ID>",
metaValue:"This is textual asset information.",
metaType: TEXT,
}
) {
id
}
}
Adding image asset info to a Data Row

Run this query

mutation addAssetInfo {
createAssetMetadata(
data: {
dataRowId:"<DATAROW-ID>",
metaValue:"https://firebasestorage.googleapis.com/v0/b/labelbox-193903.appspot.com/o/cjhk4p9dyf5va0702liitudpz%2Fd3ffab29-d6be-4d69-b006-89a828679d29%2Fleft_small-pen-test-site_1_1537524039648.jpg?alt=media&token=66e84e55-97e8-46a6-9ab8-685f1e950581",
metaType: IMAGE,
}
) {
id
}
}
Adding video asset info to a Data Row

Run this query

mutation addAssetInfo {
createAssetMetadata(
data: {
dataRowId:"<DATAROW-ID>",
metaValue:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
metaType: VIDEO,
}
) {
id
}
}
Editing asset info on a Data Row

Run this query

mutation updateAssetInfo {
updateAssetMetadata(
where:{
id:"<METADATA-ID>"
},
data:{
metaValue:"New Value Here",
metaType:TEXT
}
){
id
}
}
Removing asset info on a Data Row

Run this query

mutation removeAssetInfo {
deleteAssetMetadata(
where:{
id:"<METADATA-ID>"
}
){
id
}
}


Was this page helpful?