【发布时间】:2014-07-21 22:11:52
【问题描述】:
有没有办法在呈现 UIImagePickerController(即出现在您脸上的黄色框)时关闭人脸识别?
_imagePicker = [[UIImagePickerController alloc] init];
_imagePicker.allowsEditing = YES;
_imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
_imagePicker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
[self presentViewController:_imagePicker animated:NO completion:NULL];
基于这些docs,有一个可以禁用面部识别的键。如何设置此键以禁用它?
CIDetectorTracking
A key used to enable or disable face tracking for the detector. Use this option when you want to track faces across frames in a video
编辑
我将如何使用AVFoundation 编写一个简单的相机?
【问题讨论】:
-
@Thedude 编辑了我的问题,谢谢。
-
您所指的文档是 OS X 文档。我会尝试研究这个问题,听起来很有趣:)
标签: ios objective-c uiimagepickercontroller