Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Learn how to work with pre-annotations by acquiring a fundamental understanding of project configuration. The subsequent example demonstrates the process of uploading pre-annotations for image annotation. This procedure remains consistent across all project types. Sample files, JSON structures, and custom code are provided for each project type.

  1. Configure project metadata as instructed in the setup document. Click NEXT.

  1. In the Task Design tab, field MediaUrl of type “Image” is added by default. To store our pre-annotations add another field JsonData of type “Text”. Add necessary output fields.

  1. Once the rest of the project configuration is done, go to Advanced > Project Task > Custom code > On load. Add the following code, click on SAVE.

if(currentUserLevel === 1) {  
let inputJsonData = JSON.parse(inputValues["JsonData"])
let x = JSON.stringify(inputJsonData);
this.updateAnnotations(x);
}
  1. Create an input file in the following format. The field JsonData has the necessary JSON structure.

  1. Follow the same procedure for all types of projects to upload pre-annotations.

  2. For Audio pre-annotation ,use the same custom code as Image pre-annotation and use the attached sample input file containing the JSON structure.

  1. NER pre-annotation.

Custom code -

let anns = {key:taskId, value: JSON.parse(inputValues["filename"])}
if(currentUserLevel === 1 && annotations.length == 0) {  
  this.updateAnnotations([anns])
}

Input file and JSON structure

  1. For Segmentation pre-annotation, use same custom code as Image annotation.

Input and JSON structure

  • No labels