/** * 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 { /** *

Specifies a location within the frame that Rekognition checks for text. Uses * a BoundingBox object to set a region of the screen.

A word * is included in the region if the word is more than half in that region. If there * is more than one region, the word will be compared with all regions of the * screen. Any word more than half in a region is kept in the * results.

See Also:

AWS * API Reference

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

The box representing a region of interest on screen.

*/ inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; } /** *

The box representing a region of interest on screen.

*/ inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; } /** *

The box representing a region of interest on screen.

*/ inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; } /** *

The box representing a region of interest on screen.

*/ inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); } /** *

The box representing a region of interest on screen.

*/ inline RegionOfInterest& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;} /** *

The box representing a region of interest on screen.

*/ inline RegionOfInterest& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;} private: BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws