amplify-swift/Amplify/Categories/Predictions/Models/Emotion.swift

20 lines
496 B
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
/// Emotion identified in an entity(faces/celebrities)
/// as a result of identify() API with associated `EmotionType`
/// and confidence value
public struct Emotion {
public let emotion: EmotionType
public let confidence: Double
public init(emotion: EmotionType, confidence: Double) {
self.emotion = emotion
self.confidence = confidence
}
}