label_hash
and the date labels were created, but more details are available. To see all available label details, see the LabelRowV2 SDK Reference.
initialise_labels()
: Downloads the existing label information. This method must be called before performing any label operations using the SDK.save()
: Saves any changes made to the labels back to the server. This method must be called after completing label operations to ensure updates are stored.frames=0
.
Bounding box
person
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Rotatable bounding box
person
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Polygon
person
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Polyline
snake
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Keypoint
star
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Bitmask
Lung
to the first label row (data unit) of the specified Project. The object label is applied to the first frame.Bounding Box
person
object label.Rotatable Bounding Box
person
object label.Polygon
person
object label.Polyline
snake
object label.Keypoint
star
object label.Bitmask
lung
object label.<private_key_path>
with the full path to your private key.<project_hash>
with the name of the project you want to update labels in.<file_name>
with the name of the file / data unit you want to edit labels for.<object_name>
with the name of the object.<attribute_name>
with the name of the attribute.<option_name>
with the name of the radio button option of the attribute.Text Classification
Mood
. In this example, the text classification for the first label row (data unit) in the Project is set to Melancholy
on the first frame.<private_key_path>
with the key to your private key for authentication.<project_hash>
with the hash of your Project.Radio Button Classification
Checklist Classification
What is visible?
. In this example, the text attribute for the first label row (data unit) in the project is set to Monkey
and Parrot
on the first frame.Whale
has already been created. Each script retrieves the object instance and searches for the corresponding attribute within the Project’s Ontology. For radio buttons and checklists, the scripts also identify the relevant attribute options.
<private_key_path>
with the key to your private key for authentication.<project_hash>
with the hash of your Project.Whale
with the name of your object.Whale
has already been created. To learn how to create a new object instance see the section here.
Radio attributes can also be nested under classifications. See here to learn how to do this.
#relation
is appended to the attribute name.
Person
to three frames. It then sets the dynamic attribute Position
to Walking
and Standing
. Wherever you can set frames, you can either set a single integer, a Range, or a list of Ranges.