VideoDetector.start抛出异常“无法初始化,无效的数据文件夹”

时间:2017-12-06 08:26:37

标签: c# windows affdex-sdk emotion

调用Detector.start()方法时,VideoDetector会抛出异常。

  

无法初始化无效数据文件夹

我的classifierPath已正确设置为C:\Program Files\Affectiva\AffdexSDK\data

我错过了什么吗?

代码:

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 个答案:

没有答案