Questions tagged [avcapturephotosettings]

1

votes
1

answer
116

Views

Capturing raw image type in Swift

To capture raw images, I am setting this AVCapturePhotoSettings(rawPixelFormatType: kCVPixelFormatType_24RGB) But I am getting an invalid argument exception like as * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[AVCapturePhotoSettings photoSettingsWithRawPix...
1

votes
0

answer
102

Views

AVCapturePhotoOutput captures image before flash goes off

I am building a camera app using AVCapturePhotoOutput on iOS 11. Below I have set the flashMode to on using AVCapturePhotoSettings and return the captured image to the view. The flash and photo capture both successfully run, but the photo is captured before the flash comes on. Is there a way to sync...
Harry Kennedy
1

votes
3

answer
514

Views

CapturePhoto is not working swift 3

I am trying to build a camera application. As I am new in iOS, I read documentations, watched tutorials and wrote the following codes: import UIKit import AVFoundation class StartVC: UIViewController { var connection: AVCaptureConnection! var output: AVCapturePhotoOutput! var videoPreviewLayer: AVC...
mumu
1

votes
1

answer
564

Views

AVFoundation Error Codes

I am getting following two error messages when taking RAW and also JPEG photos. I have no way to diagnose these: Error capturing photo: Error Domain=AVFoundationError- Domain Code=-11800 'The operation could not be completed' Userlnfo={NSLocalizedFailur- eReason=An unknown erroroccurred (42686), NS...
Gizmodo
1

votes
0

answer
46

Views

Why is dual photo delivery unreliable?

Dual photo delivery is supposed to simultaneously capture a photo with the wide and tele cameras, but the tele photo looks like a digitally zoomed version of the wide, not optically zoomed: By contrast, here's a 2x photo shot with the iPhone camera app: Notice how much clearer it is, as you'd expect...
Vaddadi Kartick
5

votes
3

answer
551

Views

issue while taking photo wtth flash On using AVCapturePhotoOutput

I am working on camera app. i am using AVCapturePhotoOutput for ios 10.x device and AVCaptureStillImageOutput for below 10.x devices. I am using below capture settings while capturing Photo let settings = AVCapturePhotoSettings() let previewPixelType = settings.availablePreviewPhotoPixelFormatTypes....
Dhaval Patel
1

votes
1

answer
121

Views

AVCaptureVideoDataOutput P3 colorspace

Is there anyway of getting CMSampleBuffers in 10bit P3 colorspace using AVCaptureVideoDataOutput (or otherwise?) at minimum 30 frames per second? I can configure AVCaptureSession to use P3 color space but in AVCaptureVideoDataOutput delegate can not get anything better than BGRA or YUV420, both of w...
Deepak Sharma
2

votes
1

answer
235

Views

AVCapture​Photo​Output isFlashScene Key-Value-Observing

I am following Apple's latest sample code AVCam Swift, which is updated to use AVCapture​Photo​Output. var isFlashScene: Bool { get } A Boolean value indicating whether the scene currently being previewed by the camera warrants use of the flash. This property’s value changes depending on the s...
Gizmodo
4

votes
1

answer
189

Views

AVCapturePhotoOutput color different than preview layer

When capturing an image, the color of the output image is different than what I see on the preview layer. For some reason, the color changes slightly. Has anyone come across this issue before? How can I fix this? The green is a little bit darker when I get my image from didFinishProcessingPhotoSampl...
user2995344