gpt4 book ai didi

ios - 关闭人脸识别 iOS 7 UIImagePicker

转载 作者:行者123 更新时间:2023-11-29 02:55:15 25 4
gpt4 key购买 nike

有没有办法在呈现 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 编写一个简单的相机?

最佳答案

根据UIImagePickerControllerdocumentation .没有用于启用/禁用人脸识别的 API。

如果你真的想在用户拍照时禁用它,我建议你使用 Media Capture and Access to CameraAV Foundation Programming Guide .

关于ios - 关闭人脸识别 iOS 7 UIImagePicker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23983589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com