Reference documentation and code samples for the Cloud Video Intelligence V1 API class Google::Cloud::VideoIntelligence::V1::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::V1::TextSegment>
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1::TextSegment>) — All video segments where OCR detected text appears.
#segments=
def segments=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1::TextSegment>
Parameter
- value (::Array<::Google::Cloud::VideoIntelligence::V1::TextSegment>) — All video segments where OCR detected text appears.
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1::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.
#version
def version() -> ::String
Returns
- (::String) — Feature version.
#version=
def version=(value) -> ::String
Parameter
- value (::String) — Feature version.
Returns
- (::String) — Feature version.