1.
AVCaptureConnection *conn = [_output connectionWithMediaType:AVMediaTypeVideo]; //旋转 conn.videoOrientation = AVCaptureVideoOrientationPortrait; // 调节摄像头翻转 [conn setVideoMirrored:YES];
https://blog.csdn.net/qq_42009978/article/details/103401114
2.为什么UIimage.ciimage值为空
如下所示代码返回为空:
UIImage *image = [UIImage imageNamed:@"test.jpg"];
CIImage *ciImage = image.CIImage
如果用这种方式CIImage就不为空:
UIImage *image = [UIImage imageNamed:@"test.jpg"];
CIImage *myImage = [[CIImage alloc] initWithCGImage:image.CGImage options:nil];
https://ask.csdn.net/questions/1876