# Cloud Video Intelligence V1 Client - Class LogoRecognitionAnnotation (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.15.5 1.14.2 1.13.1 1.12.16 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.Entity` Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. |
| `↳ tracks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.Track>` All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. |
| `↳ segments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.Track>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |