Questions tagged [ios-camera]
285 questions
2
votes
0 answers
How to detect whether camera is in use by another app (iOS/Swift)
I know we can determine if the device has a camera using UIImagePickerController.isSourceTypeAvailable , but how can we detect if it's being used by another app? In other words, if the green camera icon is present at the upper left of the screen?

soleil
- 12,133
- 33
- 112
- 183
2
votes
1 answer
Is there a way to use Python to access IPhone camera resolution?
I know you can use objective-c to access it, but wondering is there any Python module that let us do the same thing?

Junhan Ouyang
- 59
- 1
- 10
2
votes
0 answers
iPhone X/Xs Max AVCaptureVideoPreviewLayer scale factor and coordinates in resizeAspectFill mode
I am working on an application with standard AVCaptureDevice flow for getting and displaying frames from iPhone camera, but then it processes them through OpenCV algorithm and puts markers on the display.
The flow is:
Setting up a…

inthy
- 362
- 6
- 16
2
votes
1 answer
How to access camera and earphones in ios in PWA (React)
I am new to the react js. Here I am trying to access the mobile camera in the app. Here,
I am trying to use the getUserMedia .
I am able to access the camera in the android device. But not able to access in the IOS.
So, I am using react for…

ganesh kaspate
- 1
- 9
- 41
- 88
2
votes
0 answers
Red bar issue when application goes in background(Using AVCaptureSession) and AVCamPreviewLayer jerk
I developed a custom camera functionality using Apple's sample code AVCAM and in my application the background modes are enabled which is causing red bar issue.
I create AVCaptureSession and then add inputs(.Video,.Audio) and outputs in…

Nouman
- 105
- 1
- 11
2
votes
1 answer
Video feed to ThingsBoard dashboard
I'm currently using ThingsBoard as an IoT broker to capture and display telemetry data from several sensors to a dashboard. I would like to add the capability of displaying a live video feed from a iPhone camera or webcam, and I'm wondering if…

Jason O
- 753
- 9
- 28
2
votes
0 answers
How to lock focus for flash photo capture on iPhone 10, is there an api bug?
I'm having issues locking the focus point and taking a photo with flash on iPhone X (iOS 12.0) using the AVFoundation kit. How do I lock focus correctly on iOS 10 and up?
I need to take a photo with flash, but prevent auto-focus kicking in. I need…

Richard Tyson
- 21
- 3
2
votes
1 answer
iOS camera AVCaptureSession in portrait with landscape size or resolution
I created AVCaptureVideoPreviewLayer in portrait mode, I want to know how to appears it in 16:9 ration(landscape aspect ratio) while holding in portrait mode
I tried:
1.Giving camera PreviewLayer 16:9 size but it appears as zoomed
2.I tried using…

dev
- 87
- 1
- 5
2
votes
1 answer
AVCaptureSession get same settings as built in iPhone camera
I've been stuck on this for quite some time. There appears to be a zoom factor when I am recording with the built in camera app on my iPhone. However, I cannot seem to get the same result when I use an AVCaptureSession inside of my app. Here is an…

cheezeItz
- 81
- 5
2
votes
1 answer
How can we detect face using OpenCV
I want to build a app that keeps detecting face from the Camera. I have integrated the library but not getting any valid source from where i can start

Ahmed Sahib
- 213
- 3
- 13
2
votes
2 answers
UIImagePickerController cameraViewTransform is not working in iOS 10
i have implemented camera overlay view in my application. camera overlay view working good in iOS 9. but iOS 10 cameraViewTransform not working how to resolve this problem. please guide me. Thanks
my working code
CGSize screenBounds = [UIScreen…

amsaraj mariyappan
- 21
- 3
2
votes
1 answer
dismissViewController completion handler not called
Try to use the code from the first answer in the link (by Kampai):
How to use UIAlertController to replace UIActionSheet?
However, the completion handler is not even called in my code.
The alert action sheet can be dismissed after pressing both…

Chenya Zhang
- 463
- 3
- 11
- 22
2
votes
1 answer
ios 9 AVCaptureDevice setting focus point
I'm trying to set point of focus with front camera.
override func touchesBegan(touches: Set, withEvent event: UIEvent?) {
let screenSize = cameraView.bounds.size
let frameSize:CGSize = view.frame.size
if let touchPoint =…

gkhanacer
- 575
- 7
- 25
2
votes
1 answer
Custom Camera View - Cannot change the frame size of the cameraLayout UIImagePicker, Swift
I'm trying to make a custom camera view, basically. I am stuck changing the size of the image view inside of the UIImagePicker. By the image view, I mean the window that shows the view of the camera. I hope it will be more clear from the picture. It…

Kutay Demireren
- 640
- 1
- 10
- 25
2
votes
1 answer
How to use allowsCameraControl with a camera node in SceneKit
I have a camera node which has been set a projection transform matrix(Not identity) and can see some 3D models with property model view matrix.When I set allowsCameraControl to YES,I can't see any objects if do any gesture.
Firstly,is there any…

lusnaow
- 51
- 5