Cloud Video Intelligence V1 Client - Class LogoRecognitionAnnotation (2.0.0-RC1)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ entity Google\Cloud\VideoIntelligence\V1\Entity

Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as.

↳ tracks array<Google\Cloud\VideoIntelligence\V1\Track>

All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames.

↳ segments array<Google\Cloud\VideoIntelligence\V1\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
Google\Cloud\VideoIntelligence\V1\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 Google\Cloud\VideoIntelligence\V1\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<Google\Cloud\VideoIntelligence\V1\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<Google\Cloud\VideoIntelligence\V1\VideoSegment>
Returns
Type Description
$this