调用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();