Questions tagged [ios-camera]
285 questions
3
votes
1 answer
What is the best way to record a video with augmented reality
What is the best way to record a video with augmented reality? (adding text, images logo to frames from iPhone/iPad camera)
Previously I was trying to figure out how to draw into CIImage (How to draw text into CIImage?) and convert CIImage back to…

user924
- 8,146
- 7
- 57
- 139
3
votes
1 answer
Increasing the brightness level for .continuousAutoExposure Mode
I implemented a custom camera with the AVCaptureDevice.Preset.High preset and I'm using .continuousAutoExposure. Everything works as expected, however, the brightness of the picture is sometimes quite low.
I have researched the official…

thelearner
- 1,440
- 3
- 27
- 58
3
votes
3 answers
Get focal length of iOS devices
In Swift, is there an easy way to find the focal length of the currently using camera?
I am working on an iOS application and I need to use the focal length (in pixels or in mm) of iOS cameras. I found documentation from Apple about the focal…

lenhhoxung
- 2,530
- 2
- 30
- 61
3
votes
1 answer
How to make UIImagePickerController crop 16:9 ratio
Hi I am currently working with UIImagePickerController and it is cropping images squared by default. Is there a way that I can make it crop at a 16:9 aspect ratio? I have searched online but haven't found much results.

Bob
- 741
- 2
- 9
- 18
3
votes
0 answers
iOS How to notify when a new photo added to photo album
I have a requirement to send an email whenever a new photo added to the photo album, similar stuff done by IFTTT app, but not getting any clue for where to start and how to proceed.
I am not sure how iOS background executions will help me for this.…

Anshad Rasheed
- 2,526
- 1
- 14
- 32
3
votes
1 answer
iOS 10, XCode 8 Black camera screen when using ABPersonViewController and CNContactViewController
Using xcode 8, devices using iOS 9 and 10
I've got same problems like this
Camera does not working with ABPersonViewController and CNContactViewController.
It pops up with black screen and non of contained controls are working except cancel…

a1ahn
- 58
- 7
3
votes
1 answer
Stop AVCaptureSession when leaving ViewController
I have ViewController with AVCaptureSession. I can start and stop AVCaptureSession easily :
var captureSession: AVCaptureSession?
captureSession = AVCaptureSession()
//start
captureSession?.startRunning()
//stop
captureSession?.stopRunning()
A…

moonvader
- 19,761
- 18
- 67
- 116
3
votes
0 answers
UIImagePickerController: Clip Length & Frames Per Second
Is there a way to configure UIImagePickerController to capture photo bursts at a specific length or under a predetermined number of frames per second?

Eric
- 893
- 10
- 25
3
votes
1 answer
iOS: Play music from another app while camera is open and taking a picture
I checked Google and here as well. Maybe the question hasn't been asked yet or I am just asking it in a very weird way. There are certain apps, one that I've noticed in particular is Snapchat, where when the app opens, the music continues to play…

kygcoleman
- 734
- 15
- 25
3
votes
1 answer
IOS 8 Time Lapse Functionality
I am trying to add Time Lapse Feature on my IOS Application. Can anybody Help me by giving resource/ How to implement this? I want to capture video from my application using Time Lapse mode which is on IOS8 new feature. I didnt Find any resources…

Mehedi Hasan
- 359
- 3
- 10
3
votes
2 answers
How to access the camera from inside the webview in Titanium Appcelerator
I've very nearly finished developing a HTML5 app with Appcelerator, and I have one function left to add which is a function to allow the user to take a photo when sending the client a message through the app. There is a specific div that is…

mickburkejnr
- 3,652
- 12
- 76
- 109
3
votes
2 answers
iphone 5 - center UIImagePickerController on the screen
I created a custom overlay for the camera, using the following code:
- (void) showCamera {
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
self.picker = [[UIImagePickerController alloc] init];
…

its me
- 231
- 2
- 7
2
votes
0 answers
Use webapp to get iPhone image flash status
I am writing a web app that allows iphone users to upload images. Based on some research it looks like iphones will strip EXIF data before uploading images. Is there some way I can extract flash status before iphone uploads the image?
relevant…

AdamXiaotCao
- 223
- 3
- 8
2
votes
0 answers
iOS camera cpu usage
I've written my custom camera. I get a pixelBuffer from AVCaptureVideoDataOutput delegate, create MTLTexture from it and display using Metal. I've got ~ 20% CPU usage. Apple's public project AVCamFilter built on the same principle have the same CPU…

Igor Sorokin
- 77
- 6
2
votes
0 answers
Why doesn't my AVVideoCapturePreview render in the layer?
I'm trying to implement a camera preview view in SwiftUI, for which I have the following code:
import SwiftUI
import AVFoundation
struct CameraPreview: UIViewRepresentable {
let session: AVCaptureSession
func makeUIView(context:…

Tristian
- 3,406
- 6
- 29
- 47