Questions tagged [avcapturephotosettings]
15 questions
5
votes
1 answer
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…

user2995344
- 268
- 1
- 3
- 14
5
votes
3 answers
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…

Dhaval Patel
- 716
- 1
- 10
- 26
2
votes
1 answer
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"
…

Gizmodo
- 3,151
- 7
- 45
- 92
2
votes
1 answer
AVCapturePhotoOutput isFlashScene Key-Value-Observing
I am following Apple's latest sample code AVCam Swift, which is updated to use AVCapturePhotoOutput.
var isFlashScene: Bool { get }
A Boolean value indicating whether the scene currently being previewed
by the camera warrants use of the flash.…

Gizmodo
- 3,151
- 7
- 45
- 92
1
vote
0 answers
availableRawPhotoPixelFormatTypes empty when taking RAW image
I'm working on a library to capture RAW images on iPhones camera. Official documentation and various Apple developer videos provides no fully working example but only chunk of codes.
When I run this code:
let capturePhotoOutput =…

Francesco Piraneo G.
- 882
- 3
- 11
- 25
1
vote
1 answer
AVCapturePhotoCaptureDelegate Error When Capturing Image
I seem to get this error message randomly after a few cycles of capture:
Error finishing photo: Error Domain=AVFoundationErrorDomain
Code=-11800 "The operation could not be completed"
UserInfo={NSLocalizedFailureReason=An unknown error occurred…

Gizmodo
- 3,151
- 7
- 45
- 92
1
vote
0 answers
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…

Kartick Vaddadi
- 4,818
- 6
- 39
- 55
1
vote
0 answers
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…

Harry Kennedy
- 11
- 1
1
vote
1 answer
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…

Deepak Sharma
- 5,577
- 7
- 55
- 131
1
vote
1 answer
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:…
user4502361
1
vote
0 answers
What preview photo formats are available?
I'm iterating over AVCapturePhotoSettings.availablePreviewPhotoPixelFormatTypes like this:
for av in availablePreviewPhotoPixelFormatTypes {
print("Avbl preview type: \(av)")
}
And I get non-descriptive numbers like:
Avbl preview type:…

Kartick Vaddadi
- 4,818
- 6
- 39
- 55
1
vote
3 answers
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…

Rubaiyat Jahan Mumu
- 3,887
- 1
- 33
- 35
0
votes
0 answers
How to Instantiate AVCapturePhotoSettings( format: [string:string] )
I tried various ways to attempt to instantiate the class: AVCapturePhotoSettings to capture images in lossless BGRA format as listed below:
let settings = AVCapturePhotoSettings(format: [ kCVPixelBufferPixelFormatTypeKey : "BGRA"] )
let…

Stephen
- 191
- 2
- 7
0
votes
0 answers
(iOS Cam App)How to set flashMode to align the flash behavior with System Apple Camera App?
I am developing a custom camera app on iOS 15 and have encountered difficulties when working on the flash mechanism to make it work like the native Camera app. I noticed that when I call
[_photoOutput capturePhotoWithSettings:photoSettings…

kobunketsu
- 157
- 2
- 10
0
votes
1 answer
How to convert an image taken with captureOutput didFinishProcessingPhoto into a string to be stored in a JSON using objective C
I am taking a photo and processing it using captureOutput:didFinishProcessingPhoto.
I need to convert the photo (AVCapturePhoto) into a string so I can send it to the server in a JSON. I need to store it in the userDefaults first, and on the last…

Jo Momma
- 1,126
- 15
- 31