public EmotionRecognizer(ImageListener listener) { detector = new PhotoDetector(3, FaceDetectorMode.SMALL_FACES); var classifierPath = @"D:\dev\AffdexSDK\data"; detector.setClassifierPath(classifierPath); detector.setDetectAllEmotions(true); detector.setImageListener(listener); detector.start(); }
private AffdexAdapter(FaceDetectorMode mode) { detector = new PhotoDetector(1, mode); detector.setClassifierPath(classifierPath); detector.setProcessStatusListener(this); detector.setImageListener(this); detector.setDetectAllAppearances(true); detector.setDetectAllEmojis(true); detector.setDetectAllEmotions(true); detector.setDetectAllExpressions(false); }