Affectiva обнаружение эмоций из файла macOS

Я пытаюсь сделать приложение для MacOS, которое распознает эмоции от изображения, используя файлы с диска. У меня есть проблема с добавлением пути в правильном пути к "usingFile". В настоящее время Xcode показывает ошибку: "Использование необъявленного идентификатора 'path' ".

- (void)viewDidLoad {
    [super viewDidLoad];

// detector
self.detector = [[AFDXDetector alloc] initWithDelegate: self
                                             usingFile: (NSString *)path
                                          maximumFaces: (NSUInteger)maximumFaces;

[self.detector setDetectAllEmotions:YES];
self.detector.maxProcessRate = 5;
[self.detector start];
}

Документация для Affdex-SDK: http://affectiva.github.io/developerportal/pages/platforms/v4_0_0/ios/classdocs/interface_a_f_d_x_detector.html

0 ответов

Другие вопросы по тегам