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

Specifies summary attributes to return from a call to * DetectProtectiveEquipment. You can specify which types of PPE to * summarize. You can also specify a minimum confidence value for detections. * Summary information is returned in the Summary * (ProtectiveEquipmentSummary) field of the response from * DetectProtectiveEquipment. The summary includes which persons in an * image were detected wearing the requested types of person protective equipment * (PPE), which persons were detected as not wearing PPE, and the persons in which * a determination could not be made. For more information, see * ProtectiveEquipmentSummary.

See Also:

AWS * API Reference

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

The minimum confidence level for which you want summary information. The * confidence level applies to person detection, body part detection, equipment * detection, and body part coverage. Amazon Rekognition doesn't return summary * information with a confidence than this specified value. There isn't a default * value.

Specify a MinConfidence value that is between 50-100% * as DetectProtectiveEquipment returns predictions only where the * detection confidence is between 50% - 100%. If you specify a value that is less * than 50%, the results are the same specifying a value of 50%.

*/ inline double GetMinConfidence() const{ return m_minConfidence; } /** *

The minimum confidence level for which you want summary information. The * confidence level applies to person detection, body part detection, equipment * detection, and body part coverage. Amazon Rekognition doesn't return summary * information with a confidence than this specified value. There isn't a default * value.

Specify a MinConfidence value that is between 50-100% * as DetectProtectiveEquipment returns predictions only where the * detection confidence is between 50% - 100%. If you specify a value that is less * than 50%, the results are the same specifying a value of 50%.

*/ inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; } /** *

The minimum confidence level for which you want summary information. The * confidence level applies to person detection, body part detection, equipment * detection, and body part coverage. Amazon Rekognition doesn't return summary * information with a confidence than this specified value. There isn't a default * value.

Specify a MinConfidence value that is between 50-100% * as DetectProtectiveEquipment returns predictions only where the * detection confidence is between 50% - 100%. If you specify a value that is less * than 50%, the results are the same specifying a value of 50%.

*/ inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; } /** *

The minimum confidence level for which you want summary information. The * confidence level applies to person detection, body part detection, equipment * detection, and body part coverage. Amazon Rekognition doesn't return summary * information with a confidence than this specified value. There isn't a default * value.

Specify a MinConfidence value that is between 50-100% * as DetectProtectiveEquipment returns predictions only where the * detection confidence is between 50% - 100%. If you specify a value that is less * than 50%, the results are the same specifying a value of 50%.

*/ inline ProtectiveEquipmentSummarizationAttributes& WithMinConfidence(double value) { SetMinConfidence(value); return *this;} /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline const Aws::Vector& GetRequiredEquipmentTypes() const{ return m_requiredEquipmentTypes; } /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline bool RequiredEquipmentTypesHasBeenSet() const { return m_requiredEquipmentTypesHasBeenSet; } /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline void SetRequiredEquipmentTypes(const Aws::Vector& value) { m_requiredEquipmentTypesHasBeenSet = true; m_requiredEquipmentTypes = value; } /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline void SetRequiredEquipmentTypes(Aws::Vector&& value) { m_requiredEquipmentTypesHasBeenSet = true; m_requiredEquipmentTypes = std::move(value); } /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline ProtectiveEquipmentSummarizationAttributes& WithRequiredEquipmentTypes(const Aws::Vector& value) { SetRequiredEquipmentTypes(value); return *this;} /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline ProtectiveEquipmentSummarizationAttributes& WithRequiredEquipmentTypes(Aws::Vector&& value) { SetRequiredEquipmentTypes(std::move(value)); return *this;} /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline ProtectiveEquipmentSummarizationAttributes& AddRequiredEquipmentTypes(const ProtectiveEquipmentType& value) { m_requiredEquipmentTypesHasBeenSet = true; m_requiredEquipmentTypes.push_back(value); return *this; } /** *

An array of personal protective equipment types for which you want summary * information. If a person is detected wearing a required requipment type, the * person's ID is added to the PersonsWithRequiredEquipment array * field returned in ProtectiveEquipmentSummary by * DetectProtectiveEquipment.

*/ inline ProtectiveEquipmentSummarizationAttributes& AddRequiredEquipmentTypes(ProtectiveEquipmentType&& value) { m_requiredEquipmentTypesHasBeenSet = true; m_requiredEquipmentTypes.push_back(std::move(value)); return *this; } private: double m_minConfidence; bool m_minConfidenceHasBeenSet = false; Aws::Vector m_requiredEquipmentTypes; bool m_requiredEquipmentTypesHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws