Questions tagged [ios-camera]
285 questions
2
votes
1 answer
How to record video using the as3 camera class
I'm trying to add video recording into a mobile app I'm building. But am struggling with the recording part. So far I have got the camera class displaying in a video object with the code below.
private function init():void
{
var…

Nick
- 21
- 1
2
votes
2 answers
How to use CvPhotoCamera with iOS openCV?
I have followed the tutorial on how to use the CvVideoCamera object to play a video and apply some processing.
I am now interested to use the CvPhotoCamera object to capture a high definition picture by using the takePicture method. However, the…

poiuytrez
- 21,330
- 35
- 113
- 172
2
votes
3 answers
Camera Flash is not working
I am trying to make an extension for marmalade, which turns on and off the camera flash in iPhone. I am referring to this answer on SO about using camera flash. I've put the exact code what he has mentioned and [device…

0xC0DED00D
- 19,522
- 20
- 117
- 184
1
vote
0 answers
Can we control optical zoom value manually for iOS camera?
I want to add an optical zoom level to the custom value for the ios camera, Can we achieve this for all iPhone devices depending on their camera type?
I have tried this but I am not sure about this is correct or not.
if let device =…

Akash S
- 17
- 7
1
vote
0 answers
RCTPresentedViewController does not open UIImagePickerController
I am trying to open camera app using react native's new architecture with UIImagePickerController for iOS
I have written the code in swift and i am calling it via objective-c
Here is my objective-c++ code
#import
#import…

BraveEvidence
- 53
- 11
- 45
- 119
1
vote
0 answers
Use native document picture scanner from the web
I am building a web application that needs to have document scanner functionalities. I made some research to do that fully with web technologies but it seems that it's a bit too complicated for what I need. Is it possible from within a web app to…

user1780729
- 520
- 1
- 7
- 24
1
vote
0 answers
AVFoundation, SwiftUI: session starting but file not writing to record video
Goal: Record video with custom SwiftUI Camera using AVFoundation and save to Firestore
Problem: No error messages appear, session is starting, fileOutput is not writing metadata to URL
I have a CameraView that calls CameraModel when the button is…

Dhara
- 31
- 3
1
vote
0 answers
iOS 16 has more noise in stream of raw depth values
I'm having an issue with depth values using iOS 16. I'm getting noisier depth data from my AVFCaptureSession on iOS 16 than iOS 15 and below. Has something changed for iOS 16? If anyone has encountered same issue or know how to resolve? Please…

Ishani Vyas
- 11
- 2
1
vote
0 answers
Is using UIPresentationView for a camera preview significantly more efficient than converting frames for use in a SwiftUI Image?
My app needs to show a camera preview in SwiftUI for QR code scanning. As SwiftUI doesn't have a camera preview, most tutorials describe how to use AVCaptureVideoPreviewLayer (based on UIKit) in a UIPresentationView. However, I found this…

realh
- 962
- 2
- 7
- 22
1
vote
0 answers
Automatically Take Picture UIImagePickerController not working in SwiftUI
I want to automatically take an image in my application when the camera is presented. I am using SwiftUI and UIImagePickerController for the camera application.
Here is my code for the ImagePicker:
import Foundation
import SwiftUI
import…

Manan Vij
- 131
- 5
1
vote
2 answers
Error reading from camera: PlatformException(CAMERA_ERROR, QrReader couldn't open camera, null, null) on iOS with qr_mobile_vision
I am testing my app on and iOS and scanning qr codes functionality https://pub.dev/packages/qr_mobile_vision is not working for me with error mentioned in title.
I add
platform :ios, '11.0'
I make both other steps mentioned in package site but I am…

Karol Wiśniewski
- 378
- 4
- 15
1
vote
0 answers
Turn flash/LEN on or off using JavaScript - works on Android, not iOS
The following code turns the torch/flash on or off using JavaScript inside browser.
VideoStream derived from navigator.mediaDevices.getUserMedia
VideoStream.applyConstraints({ advanced: [{ torch: state }]
});
//Where…

Vinnie Amir
- 557
- 5
- 10
1
vote
1 answer
AVFoundation -> record camera video with animated overlay
In my app I am recording camera output with AVFoundation. I am trying to save not just camera output, but also GUI layout(overlay) presented over camera surface.
I am executing some basic animations on GUI layer( showing and hiding of UIView and…

kostik
- 639
- 2
- 10
- 25
1
vote
0 answers
iOS Appium Camera Testing: How to inject video as if coming from camera to test apps using Appium
We want to automate the testing of an iOS app, the main functionality involves image processing from a video stream coming from the camera.
What is the best way to use Appium to inject a video stream and make it appear to the app as if it is coming…

Saw
- 6,199
- 11
- 53
- 104
1
vote
1 answer
Angualr Webapp : Images selected from Android Camera throws CORS error while uploading. The same image upload working fine in Desktop
Developed a Mobile Responsive web application in Angular 8.
There is an image upload functionality which is Working perfectly fine in desktop but facing CORS issue while selecting images from camera. Also the same functionality works when the image…

Sree ram
- 369
- 3
- 14