-
Notifications
You must be signed in to change notification settings - Fork 3
Classes and parameters JSON description
Sets of classes and parameters of objects labelled on an image is customizable.
While configuring the job, user of the system should should modify the JSON file with classes and parameters of objects labelled on images, in order to specify those classes and parameters he/she is interested in.
The structure of that JSON file is described below.
{
"classes":
[
"class 0",
"class 1",
"class 2",
"class N"
],
//OPTIONAL
"colors":
{
"class 0":"#468966",
"class 1":"#FFF0A5",
"class 2":"#FFB03B",
"class N":"#B64926"
},
"parameters":
[
{
"type": "boolean",
"name": "is occluded"
},
{
"type": "string",
"name": "phone number",
"prefix": "+7"
},
{
"type": "select",
"name": "select an option",
"options":
[
"option 1 name",
"option 2 name",
"option N name"
]
}
]
}
On the systems GUI (as of version 0.2) users can find configured classes and parameters
of objects in the "Label Parameters block", which is accentuated with a red rounded rectangle
on the image below.
Classes are represented by a drop-down menu.
Unfolded drop-down menu with objects classes looks as on the image below:
Boolean parameters are represented by checkboxes as one on the image below:
String parameters are represented by input blocks as one on the image below:
Select parameters are represented by drop-down menus as one on the image below:
To make annotating easier we provide the ability to specify colors for each class. To do so, create a new dict in classesandparams.json and specify a color for each class in HEX format. Note that providing colors is optional and if no colors were supplied, the default color scheme will be used. The default color scheme can be located in color_scheme.js file.
The example configuration is shown above and marked with OPTIONAL comment.