Copied
Docs

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

EMPLOYEE LOGIN
  • Home
  • Getting Started
  • Annotate
  • Tasks
  • API
  • Recipes
  • Tutorials
  • Integrations

Semantic Segmentation JSON-creation

Updated at February 14th, 2024

Data

Input metadata

The input metadata provides key details about the image, including its size, height, and width. Please note, this image metadata is accessible only when the 'Include Image Metadata' option is activated. You can enable this feature by navigating to 'Project > Settings > Outputs > Pre-processing Settings'. Ensuring this setting is on will allow you to access the full range of image information.
 {
   "image":{
      "Original url":"https://IMG_2299.JPG",
      "Original file name":"teddy-bear.jpg",
      "Size":"2462630",
      "Height":"4000",
      "Width":"6000"
   }
}
 
 

Input

The 'data' element systematically enumerates the inputs as specified in the project settings. In this context, the defined inputs include 'name' and 'url'. This means that the 'data' element will specifically list and reference these inputs, aligning with how they are configured within the project's parameters.
{
   "data":{
      "url":"https://IMG_2299.JPG",
      "name": "Teddy Bear",
   }
}

 

 
 
 
 

Output

Scene output

Scene outputs reflect the entire workspace. In this instance, elements like 'date', and 'comments', prefixed with 'output_', are examples of scene outputs. These outputs also encompass the overall scene context, such as indicating whether it's day or night, or whether the weather is sunny or rainy. 
{
    "output_comments": "Test Comment",
    "output_date": "2030-03-03"
}
 
 

Layers

The output includes a main layer that holds all the task's annotation details. Inside this main layer is a 'raster_coding' sub-layer, which stores the pixel mask produced by the annotation.


Read more about the URL mask 
 

{
    "layers": {
        "raster_coding": {
            "mask_url": "https://mask-image.png"
        }
    }
}

 

 
 

Workspace output

The workspace is the canvas where annotations are made. Shapes drawn on this canvas are the workspace's outputs. For semantic segmentation only 'image' can be configured 
{
   "output_image":{
      "layers":{
         "raster_coding":[
            {
               "mask_url": "https://mask-image.png"
            }
         ]
      }
   }
}
 
 
 
 

Check the complete JSON

[
   [
      {
         "priority":0,
         "data":{
            "image Original url":"https://IMG_2299.JPG",
            "image Original file name":"teddy-bear.jpg",
            "image Size":"2462630",
            "image Height":"4000",
            "image Width":"6000",
            "url":"https://IMG_2299.JPG",
            "name":"Teddy Bear",
            "output_image quality":"clear",
            "output_scene":"house | bed room",
            "output_image light":{
               "dark":"0",
               "bright":"1"
            },
            "output_comments":"Test Comment",
            "output_date":"2030-03-03",
            "output_image":{
               "layers":{
                  "raster_coding":{
                     "mask_url":"https://mask-image.png"
                  }
               }
            },
            "output_timeofday":"daytime"
         }
      }
   ]
 
 

Course Home

←  Instance Segmentation JSON-delivery Semantic Segmentation JSON-delivery  →
json segmentation

Was this article helpful?

Yes
No
Give feedback about this article

The first B Corp-certified AI company

  • Security
  • Terms
  • Privacy
  • Quality & Information

Copyright © 2023 Samasource Impact Sourcing, Inc. All rights reserved.


Knowledge Base Software powered by Helpjuice

Expand