Method TryGetLabelEntryFromInstanceId
TryGetLabelEntryFromInstanceId(int, out LabelEntry)
Returns the class ID for the given instance ID resolved by LabelingConfiguration. Only valid when bounding boxes are being computed.
Declaration
public bool TryGetLabelEntryFromInstanceId(int instanceId, out LabelEntry labelEntry)
Parameters
| Type | Name | Description |
|---|---|---|
| int | instanceId | The instanceId of the object |
| LabelEntry | labelEntry | When this method returns, contains the LabelEntry associated with the given instanceId if one exists. default otherwise. |
Returns
| Type | Description |
|---|---|
| bool | True if a valid LabelEntry was found for the given instanceId. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown when produceBoundingBoxAnnotations was not true on Start. |