Reference documentation and code samples for the Cloud Video Intelligence V1p2beta1 API class Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment.
Video segment level annotation results for text detection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#confidence
def confidence() -> ::Float
Returns
- (::Float) — Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.
#confidence=
def confidence=(value) -> ::Float
Parameter
- value (::Float) — Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.
Returns
- (::Float) — Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.
#frames
def frames() -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>) — Information related to the frames where OCR detected text appears.
#frames=
def frames=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>
Parameter
- value (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>) — Information related to the frames where OCR detected text appears.
Returns
- (::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>) — Information related to the frames where OCR detected text appears.
#segment
def segment() -> ::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment
Returns
- (::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment) — Video segment where a text snippet was detected.
#segment=
def segment=(value) -> ::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment
Parameter
- value (::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment) — Video segment where a text snippet was detected.
Returns
- (::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment) — Video segment where a text snippet was detected.