Questions tagged [ios-camera]
285 questions
1
vote
1 answer
Request access for camera in Objective-C
I have this objective-c code taken from this answer to request camera usage on iOS.
[AVCaptureDevice requestAccessForMediaType:mediaType completionHandler:^(BOOL granted)
{
if(granted){
return true;
} else {
return…

Denis Rouzaud
- 2,412
- 2
- 26
- 45
1
vote
1 answer
How to temporarily save UIImage to Camera Roll
I know that I can save an UIImage to Camera Roll/Photo Album using the following code.
let image = UIImage(data: data) {
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil)
}
However, this does not provide for a way to know…

Purple Lights
- 13
- 2
1
vote
1 answer
Understanding AVCaptureDevice exposureDuration, exposureTargetOffset, exposureTargetBias
Come from Android os, I'm trying to understand the AVCaptureDevice API and find a match between the different parameters of the IOS and Android.
I'm working with auto-continuous exposure mode.
I'm having trouble with exposure parameters above:
To my…

Yair Buchbletter
- 11
- 1
1
vote
2 answers
What's the best way to launch a periodic task in iOS camera to use frames data?
I am building a cross-platform tool that uses frames from camera to do some work on them. I'm starting from this code-base, which is the camera Flutter plugin. My goal is to have a periodic task (running every 200ms) that does some work in parallel…

fff
- 199
- 2
- 10
1
vote
1 answer
Jumio netvrify error when using webview in iOS. Browser does not support camera
I have website that redirect user to do eKYC through Jumio. It was working fine on Desktop browser, Mobile Browser, Android App(webview).
However, when come to iOS app(wkwebview), my user keeps getting error as in cant complete the eKYC process.…

poi2003
- 11
- 3
1
vote
0 answers
SwiftUI How to add overlay over VNDocumentCameraViewController?
I'm trying to create a camera scanner with an overlay using SwiftUI.
The camera scanner should have an overlay "highlighting" a part of the screen which the user should focus on when scanning an image.
I'm currently using a document camera view…

RnadomG
- 145
- 1
- 9
1
vote
1 answer
How to get the iOS Camera suggest my app when snapping a QR code
I want the Camera App that comes with an iPhone to recommend a QR code be opened up in my app. My first question is, if two or more apps register the same universal link, which app gets suggested.
For instance I removed one app that kept on being…

jimijon
- 2,046
- 1
- 20
- 39
1
vote
1 answer
Ios: how to avoid video orientation change during capture?
I have an iOS app that only supports portrait. When rotating the device the video captured by the RTCCameraVideoCapturer (WebRTC) rotates to landscape orientation, even when the rest of the UI stays in portrait. How to avoid this?

zeus
- 12,173
- 9
- 63
- 184
1
vote
0 answers
Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
We are using CIRectFeature to detect rectangle area using camera delegate (AVCaptureVideoDataOutputSampleBufferDelegate) and works fine with other devices except iPad Pro 3rd Generation. Due to the process of CIRectangleFeature app gets hang every…

Manikandan D
- 1,422
- 1
- 13
- 25
1
vote
0 answers
Smooch iOS SDK: can't add SKTMenuItemCamera to list of menu items
I'm trying to add the camera option to the list of menu items in Smooch. I've followed the steps in the docs, those being...
1) Add SKTMenuItemCamera to my settings.allowedMenuItems in AppDelegate.m
SKTSettings* settings = [SKTSettings…

Eli
- 299
- 5
- 18
1
vote
0 answers
allowEdit property is not working for iOS camera in cordova application
I am trying to add camera for iOS in cordova application. I have added the plugin cordova-plugin-camera with latest version 4.0.3 and it is working fine but allowEdit property to crop the photo is only working for photo library not for camera.
Here…

Abilash Bansal
- 284
- 2
- 13
1
vote
0 answers
HTML5 multiple file uploads on iOS
I have an HTML5 form that has three file fields which the user can click on to take a photo with the camera or select an existing photo from the device.

user1480192
- 665
- 8
- 23
1
vote
1 answer
How to rotate a AVCaptureVideoPreviewLayer by 90 degrees to correct it in iOS11?
I have an AVCaptureVideoPreviewLayer which is set to capture the live preview of a session using the front camera feed. However, the output is rotated by 90 degrees, and I am trying to get the layer to be aligned to the rest of my app, which is in…

sccoding
- 356
- 3
- 18
1
vote
1 answer
Cannot capture photo with custom camera
I am trying to display an image taken from my custom camera (from a snapchat-like menu where you swipe right to open the camera on the left). I updated the code to 3.0 but now it gives me this error:
'AVCapturePhotoOutput' has no member…

Jovan Angelov
- 101
- 8
1
vote
2 answers
AvCam-ios switch from rear to front cameras is very slow,how can i fix this?
///before toggle,I exactly sure isRunning == true
func toggleCamera(){
let first:TimeInterval = Date().timeIntervalSince1970
let currentVideoDevice = self.videoInput.device
///////////////begin to switch
…

taonix
- 11
- 2