/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Information about text detected in a video. Incudes the detected text, the * time in milliseconds from the start of the video that the text was detected, and * where it was detected on the screen.

See Also:

AWS * API Reference

*/ class TextDetectionResult { public: AWS_REKOGNITION_API TextDetectionResult(); AWS_REKOGNITION_API TextDetectionResult(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API TextDetectionResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time, in milliseconds from the start of the video, that the text was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the text first appears.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

The time, in milliseconds from the start of the video, that the text was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the text first appears.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time, in milliseconds from the start of the video, that the text was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the text first appears.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time, in milliseconds from the start of the video, that the text was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the text first appears.

*/ inline TextDetectionResult& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

Details about text detected in a video.

*/ inline const TextDetection& GetTextDetection() const{ return m_textDetection; } /** *

Details about text detected in a video.

*/ inline bool TextDetectionHasBeenSet() const { return m_textDetectionHasBeenSet; } /** *

Details about text detected in a video.

*/ inline void SetTextDetection(const TextDetection& value) { m_textDetectionHasBeenSet = true; m_textDetection = value; } /** *

Details about text detected in a video.

*/ inline void SetTextDetection(TextDetection&& value) { m_textDetectionHasBeenSet = true; m_textDetection = std::move(value); } /** *

Details about text detected in a video.

*/ inline TextDetectionResult& WithTextDetection(const TextDetection& value) { SetTextDetection(value); return *this;} /** *

Details about text detected in a video.

*/ inline TextDetectionResult& WithTextDetection(TextDetection&& value) { SetTextDetection(std::move(value)); return *this;} private: long long m_timestamp; bool m_timestampHasBeenSet = false; TextDetection m_textDetection; bool m_textDetectionHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws