【发布时间】:2019-09-11 05:29:48
【问题描述】:
我已经使用 google api 进行人脸检测。所以我已经通过 firebase 集成,也从 firebase 安装了框架。
当设备处于横向时,人脸检测在 iPhonex 中工作正常 模式。
但是当设备处于纵向模式时,它就不起作用了。
我已经调试,发现在FirebaseMLVision.framework 有processImage 传递图像的方法,但是当设备处于纵向时,结果总是空白。
方法 FirebaseMLVision.framework
- (void)processImage:(FIRVisionImage *)image
completion:(FIRVisionFaceDetectionCallback)completion
NS_SWIFT_NAME(process(_:completion:));
我如下调用:
[_faceRecognizer
processImage:image
completion:^(NSArray<FIRVisionFace *> *faces, NSError *error) {
if (error != nil || faces == nil) {
completed(emptyResult);
} else {
completed([self processFaces:faces]);
}
}];
请帮我看看有什么问题。
谢谢。
【问题讨论】:
-
如果您认为 SDK 运行不正常,请向 Firebase 支持提交错误报告。 support.google.com/firebase/contact/support
-
@DougStevenson 好的,发送报告。
标签: ios objective-c firebase firebase-mlkit