/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Rekognition.Model
{
///
/// Specifies a location within the frame that Rekognition checks for objects of interest
/// such as text, labels, or faces. It uses a BoundingBox
or Polygon
/// to set a region of the screen.
///
///
///
/// A word, face, or label is included in the region if it is more than half in that region.
/// If there is more than one region, the word, face, or label is compared with all regions
/// of the screen. Any object of interest that is more than half in a region is kept in
/// the results.
///
///
public partial class RegionOfInterest
{
private BoundingBox _boundingBox;
private List _polygon = new List();
///
/// Gets and sets the property BoundingBox.
///
/// The box representing a region of interest on screen.
///
///
public BoundingBox BoundingBox
{
get { return this._boundingBox; }
set { this._boundingBox = value; }
}
// Check to see if BoundingBox property is set
internal bool IsSetBoundingBox()
{
return this._boundingBox != null;
}
///
/// Gets and sets the property Polygon.
///
/// Specifies a shape made up of up to 10 Point
objects to define a region
/// of interest.
///
///
public List Polygon
{
get { return this._polygon; }
set { this._polygon = value; }
}
// Check to see if Polygon property is set
internal bool IsSetPolygon()
{
return this._polygon != null && this._polygon.Count > 0;
}
}
}