Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 图像中的人脸检测问题?_Objective C_Uiimage - Fatal编程技术网

Objective c 图像中的人脸检测问题?

Objective c 图像中的人脸检测问题?,objective-c,uiimage,Objective C,Uiimage,我正在尝试做一个人脸检测应用程序,因为我已经尝试了一个应用程序,我从一个链接中得到了参考,他们转换UIImageView,然后转换窗口。默认情况下,检测是颠倒的,因此作为一个快速修复,他们翻转图像,然后翻转窗口,使所有内容再次正确显示。该图像现在将在屏幕底部,但我需要检测与翻转图像和windiw的脸。可能吗?如果是这样,请张贴一些代码 在这里,我放置了翻转图像的代码 UIImageView* imageView = [[UIImageView alloc] initWithImage:[UIIm

我正在尝试做一个人脸检测应用程序,因为我已经尝试了一个应用程序,我从一个链接中得到了参考,他们转换UIImageView,然后转换窗口。默认情况下,检测是颠倒的,因此作为一个快速修复,他们翻转图像,然后翻转窗口,使所有内容再次正确显示。该图像现在将在屏幕底部,但我需要检测与翻转图像和windiw的脸。可能吗?如果是这样,请张贴一些代码

在这里,我放置了翻转图像的代码

UIImageView* imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"steves.jpg"]];
[imageView setTransform:CGAffineTransformMakeScale(1, -1)];
[self.window setTransform:CGAffineTransformMakeScale(1, -1)];
[imageView setFrame:CGRectMake(0, 0, imageView.image.size.width, imageView.image.size.height)];
[self.window addSubview:imageView];
[imageView release];

显然有人很困惑。CIDetector提供的人脸检测不要求图像倒置。更有可能的是,您试图抄袭的代码由于其他原因正在翻转图像。。。或者根本就没有什么好的理由,这是出人意料的普遍

您可以使用CIDetector找到一个简单的教程示例