Reference documentation and code samples for the Cloud Video Intelligence V1p2beta1 API class Google::Cloud::VideoIntelligence::V1p2beta1::TextAnnotation.
Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#segments
def segments() -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>) — All video segments where OCR detected text appears.
#segments=
def segments=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>
Parameter
- value (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>) — All video segments where OCR detected text appears.
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>) — All video segments where OCR detected text appears.
#text
def text() -> ::String
Returns
- (::String) — The detected text.
#text=
def text=(value) -> ::String
Parameter
- value (::String) — The detected text.
Returns
- (::String) — The detected text.