1

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();
4
  • There are files and subfolders in C:\Program Files\Affectiva\AffdexSDK\data?
    – rene
    Dec 6, 2017 at 8:31
  • yes.. there are Dec 7, 2017 at 4:48
  • @swargujrania Is this fixed? If not which release are you using? Dec 14, 2017 at 21:34
  • @UmangMukeshMehta - No.. it still persists. I am using 9.12.16 Dec 17, 2017 at 14:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.