# Cloud Video Intelligence V1beta2 API - Class Google::Cloud::VideoIntelligence::V1beta2::FaceSegment (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.2 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud Video Intelligence V1beta2 API class Google::Cloud::VideoIntelligence::V1beta2::FaceSegment.

Video segment level annotation results for face detection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #segment

    def segment() -> ::Google::Cloud::VideoIntelligence::V1beta2::VideoSegment

**Returns**

- ([::Google::Cloud::VideoIntelligence::V1beta2::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1beta2/latest/Google-Cloud-VideoIntelligence-V1beta2-VideoSegment)) --- Video segment where a face was detected.

### #segment=

    def segment=(value) -> ::Google::Cloud::VideoIntelligence::V1beta2::VideoSegment

**Parameter**

- **value** ([::Google::Cloud::VideoIntelligence::V1beta2::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1beta2/latest/Google-Cloud-VideoIntelligence-V1beta2-VideoSegment)) --- Video segment where a face was detected.
**Returns**

- ([::Google::Cloud::VideoIntelligence::V1beta2::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1beta2/latest/Google-Cloud-VideoIntelligence-V1beta2-VideoSegment)) --- Video segment where a face was detected.