Attributes
Concepts and Terms
- Attribute Definitions are templates. They have a name and a value type, such as
String
,Number
, orBoolean
. Definitions must be created before attribute values can be assigned. Tracks and detections each have their own set of definitions. - Track Attributes apply to an entire track. Each track can only have one value for each track attribute definition.
- Detection Attributes can be different for every frame in a track.
Example Attribute Definition
- Track Attributes:
- CompleteTrack:
Boolean
- FishLength:
number (cm)
- CompleteTrack:
- Detection Attributes:
- Swimming:
Boolean
- Eating:
Boolean
- Swimming:
Example Attribute Values
- Fish Track 1
- Track Attributes
{ "FishLength": 20 }
- Detection Attributes
- Frame 1
{ "Eating": True }
- Frame 2
{ "Swimming": False, "Eating": True }
- Frame 1
- Track Attributes
Info
All Attribute definitions do not need to be assigned to values. CompleteTrack (Track Attribute) and Swimming for Frame 1 (Detection Attribute) weren't assigned in this example.
Using the Attributes Panel
- Select an existing track or detection with left click.
- Open the Track Details page by clicking on the button in the Type List area or pressing the A key.
- Here you will see the track/detection type, confidence pairs associated with it and then a list of track and detection attributes.
- For attributes there are two sections
- Track Attributes - All track level attributes
- Detection Attributes - attributes associated with the track on a per frame basis
- Attributes can be sorted by their name (alphabetically) or by their numeric value. Clicking on the or the button will swap between the two.
- Attribute Filtering
- The Attribute filtering icon will change color when filtering is being applied.
- Clicking on the filter icon will bring up the Attributes Details Panel
Info
Attributes found during import in a VIAME CSV will automatically show up in the list. The data type of the attribute is guessed by examining values and may need to be manually corrected.
By default, all attributes associated with the dataset are visible and editable. You can hide unused attributes by clicking the toggle next to Attribute.
Show Unused | Hide Unused |
---|---|
Creating Attribute Definitions
- Click on the Attribute icon for in either the track or detection attribute area.
- Enter a unique name
- Choose a Datatype
Number
Boolean
(True/False)Text
- Custom text that the user provides
- A predefined list of text to choose from, separated by newline.
- Click Save to add the new attribute
Editing Attribute Definitions
Click the button next to an existing attribute to edit its definition.
Warning
Editing or deleting an attribute definition doesn’t change any existing attribute values.
- Deleting an attribute definition will cause it to disappear from the list, but the values will remain in the database.
- Editing an attribute definition will change the way the controls behave, but will not change any existing set values.
Setting Attribute Values
- Click on the attribute value when in viewing mode to edit and set the attribute
- Or directly edit the value field when in the attribute editing mode
- Setting an attribute to the empty value will remove the value from the track/detection
Importing and Exporting Attributes
Attributes are part of the dataset configuration that can be imported and exported.
- Set up a dataset with all the attributes you need
- In the Download menu, choose Configuration.
- Use this configuration with other datasets
- Use the Import button to load this configuration to other datasets.
- Upload the configuration file when you create new datasets to initialize them with these attribute definitions.