DoreEmotionRecognition
Getting Started
The following instructions will guide you on how to implement the DoreEmotionRecognition SDK on a specific platform.
IOS
Technical Specifications:
Xcode | 14.2 or Above |
IOS Version | 13.0 or Above |
Supported Device | iPhoneSE or Above |
You can implement DoreEmotionRecognition SDK in your existing/new IOS Xcode project with in just 3 Steps
Step 1:
1. Add this line in your pod file
pod 'DoreEmotionRecognition'
2. Run pod install, and open project
pod install
3. Cocoapod version should be 1.12.1 or above
Step 2:
Initiate DoreEmotionRecognition Manager
private var modelManager: EmotionRecognitionManager?
modelManager = EmotionRecognitionManager()
modelManager?.delegate = self
let isValid:Bool = (modelManager?.init_data(licKey: "insert your license key here"))!
if(!isValid){
print("Dore : Lic not valid")
}
Step 3:
Execute EmotionRecognition Manager with input image buffer
func didOutput(pixelBuffer: CVPixelBuffer) {
self.modelManager?.run_model(onFrame: pixelBuffer)
}
Get result callback in "onEmotionRecoReceived"
Emotion Text Result values - "Happy", "Angry", "Surprise", "Sad", "Neutral"
func onEmotionRecoReceived(_ info: EmotionData) {
DispatchQueue.main.async {
self.lbStatus.text = info.eTxt
}
}