VideoDetector.start throws exception "Failed to initialize, invalid data folder"

145 Views Asked by At

VideoDetector throws below exception when calling Detector.start() method.

Failed to initialize, invalid data folder

My classifierPath is set correctly to C:\Program Files\Affectiva\AffdexSDK\data

Am I missing something?

Code:

private static string classifierPath = @"C:\Program Files\Affectiva\AffdexSDK\data";
VideoDetector detector = new VideoDetector();
detector.setClassifierPath(classifierPath);
var processor = new AffectivaProcessor(ref AffectivaResult, ref stopProcessing, detectExpressions, detectEmotions, detectEmojis, detectAppearance);

detectorHandler = new AffectivaDetectorHandler(processor);
detector.setFaceListener(processor);
detector.setImageListener(processor);
detector.setProcessStatusListener(processor);

detector.setDetectAllExpressions(detectExpressions);
detector.setDetectAllEmotions(detectEmotions);
detector.setDetectAllEmojis(detectEmojis);
detector.setDetectAllAppearances(detectAppearance);

detector.start();
detector.process(videoFilePath);
detectorHandler.WaitTillProcessing();
detector.stop();
0

There are 0 best solutions below