我正在尝试制作一个 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