Object Objects
title
children
create_instance
encord.objects.ObjectInstance
to be used with a label row.
Returns:
ObjectInstance
- An instance of the object to be used in labeling.
from_dict
d
- A dictionary representing the object.
Object
- The created Object instance.
TypeError
- If the shape in the dictionary is not recognized.
to_dict
add_attribute
cls
- The attribute type, one ofRadioAttribute
,ChecklistAttribute
,TextAttribute
.name
- The user-visible name of the attribute.local_uid
- Integer identifier of the attribute. Normally auto-generated; omit this unless the aim is to create an exact clone of an existing ontology.feature_node_hash
- Global identifier of the attribute. Normally auto-generated; omit this unless the aim is to create an exact clone of an existing ontology.required
- Whether the label editor would mark this attribute as ‘required’.dynamic
- Whether the attribute can have a different answer for the same object across different frames.
AttributeType
- The created attribute that can be further specified with options, where appropriate.
ValueError
- If the specifiedlocal_uid
orfeature_node_hash
violate uniqueness constraints.