Reference documentation and code samples for the Cloud Video Intelligence V1 Client class LogoRecognitionAnnotation.
Annotation corresponding to one detected, tracked and recognized logo class.
Generated from protobuf message google.cloud.videointelligence.v1.LogoRecognitionAnnotation
Namespace
Google \ Cloud \ VideoIntelligence \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ entity |
Entity
Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. |
↳ tracks |
array<Track>
All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. |
↳ segments |
array<VideoSegment>
All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. |
getEntity
Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as.
Returns | |
---|---|
Type | Description |
Entity|null |
hasEntity
clearEntity
setEntity
Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as.
Parameter | |
---|---|
Name | Description |
var |
Entity
|
Returns | |
---|---|
Type | Description |
$this |
getTracks
All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTracks
All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames.
Parameter | |
---|---|
Name | Description |
var |
array<Track>
|
Returns | |
---|---|
Type | Description |
$this |
getSegments
All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSegments
All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment.
Parameter | |
---|---|
Name | Description |
var |
array<VideoSegment>
|
Returns | |
---|---|
Type | Description |
$this |