Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DetectedObject.
Each DetectedObject is one particular identification of an object specified with the AnnotationSpec id and display_name, the bounding box, the associated confidence score and the corresponding track_id.
Generated from protobuf message google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject
Namespace
Google \ Cloud \ VisionAI \ V1 \ VideoObjectTrackingPredictionResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
The resource ID of the AnnotationSpec that had been identified. |
↳ display_name |
string
The display name of the AnnotationSpec that had been identified. |
↳ bounding_box |
BoundingBox
Boundingbox. |
↳ confidence |
float
The Model's confidence in correction of this identification, higher value means higher confidence. |
↳ track_id |
int|string
The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object. |
getId
The resource ID of the AnnotationSpec that had been identified.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
The resource ID of the AnnotationSpec that had been identified.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
The display name of the AnnotationSpec that had been identified.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
The display name of the AnnotationSpec that had been identified.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBoundingBox
Boundingbox.
| Returns | |
|---|---|
| Type | Description |
BoundingBox|null |
|
hasBoundingBox
clearBoundingBox
setBoundingBox
Boundingbox.
| Parameter | |
|---|---|
| Name | Description |
var |
BoundingBox
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidence
The Model's confidence in correction of this identification, higher value means higher confidence.
| Returns | |
|---|---|
| Type | Description |
float |
|
setConfidence
The Model's confidence in correction of this identification, higher value means higher confidence.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTrackId
The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setTrackId
The same object may be identified on muitiple frames which are typical adjacent. The set of frames where a particular object has been detected form a track. This track_id can be used to trace down all frames for an detected object.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|