- (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo - (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto:(AVCapturePhoto *)photo 这时候需要注意是按照拍照时的设备方向,还是生成时的设备方向,需要使用者自己抉择,演示如下,这时候不管怎么拍的图片,最终显示都会变成竖屏的显示了 - (void)captureOutput:(AVCapturePhotoOutput
Capturing Photos with Depth [1505703167678_9015_1505703167800.jpg] AVCapturePhotoOutput,这是去年推出的一个类, AVCapturePhotoOutput 需要进行许多更改以支持HEIF,因此在iOS 11中,为了适应这些许多变化,添加了新的委托回调。 一个简单示例: func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto 可以使用 AVCapturePhotoOutput 捕获带有深度信息的照片。 最后讲到了双摄像头,双照片,对于某些计算机视觉可以单独用到广角和长焦的照片。
AVFoundation.AVCaptureMetadataOutput import AVFoundation.AVCaptureOutput import AVFoundation.AVCaptureOutputBase import AVFoundation.AVCapturePhotoOutput
[_captureSession addInput:_videoInput]; // [self _configureCurrentCamera]; _imageOutput = [AVCapturePhotoOutput
AVFoundation.AVCaptureMetadataOutput import AVFoundation.AVCaptureOutput import AVFoundation.AVCaptureOutputBase import AVFoundation.AVCapturePhotoOutput
与音频输出设备相关联,可用于播放 由 AVCaptureSession 捕获的音频数据 AVCaptureDepthDataOutput 输出相机画面的场景深度信息,只有双摄像头或以上才支持深度信息 AVCapturePhotoOutput
这里以静态图片的输出源为例,指的是AVCapturePhotoOutput。最后将其也add到session中。 设置预览图层,即AVCaptureVideoPreviewLayer。 capture方法,并制定具体的AVCapturePhotoSettings对象以及delegate对象 在capture的delegate方法: func capture(_ captureOutput: AVCapturePhotoOutput