Questions tagged [avcapturedevice]

AVCaptureDevice represents a physical capture device and the properties associated with that device. You use a capture device to configure the properties of the underlying hardware.

A capture device also provides input data (such as audio or video) to an AVCaptureSession object.

API reference

347 questions
0
votes
1 answer

How to get the current temperature and tint for an AVCaptureDevice?

I figured out how to adjust the temp and tint of an existing session with deviceWhiteBalanceGainsForTemperatureAndTintValues which takes a parameter of AVCaptureWhiteBalanceTemperatureAndTintValues. But I'm struggling to figure out a way to read the…
yamski
  • 471
  • 4
  • 14
0
votes
0 answers

How to scan all bar codes of type AVMetadataObjectTypeEAN13Code

My scanner can scan this barcode. But not this barcode. This is the code i'm using. #pragma mark - IBAction method implementation - (void)startStopReading { if (!_isReading) { // This is the case where the app should read a QR code…
user1898829
  • 3,437
  • 6
  • 34
  • 62
0
votes
1 answer

If it is OK to call "lockForConfiguration: " few times

Regarding AVCaptureDevice lockForConfiguration: https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/index.html#//apple_ref/occ/instm/AVCaptureDevice/lockForConfiguration: According to…
user454083
  • 1,337
  • 3
  • 16
  • 31
0
votes
1 answer

Front Flash Brightness iPhone

I have been working on a project for a while now and I have come to one thing I want to really work out that I haven't been able to figure out. In the application when taking a front facing picture, I would like front flash to actually make the…
user1813278
0
votes
1 answer

SpeechKit transcribing audio file

Is it possible to use Nuance's SpeechKit for iOS to use an audio or video file as it's source, vs. automatically using the microphone? I created a project here: https://github.com/jeffreality/iOSVideoTranscriber using SpeechKit, but it transcribes…
Jeffrey Berthiaume
  • 4,054
  • 3
  • 35
  • 45
0
votes
0 answers

How to instantiate a AVCaptureDevice

I'm getting an error saying: cannot instantiate a AVCaptureDevice directly When I'm trying to set the camera to the front camera. My code looks like this: let inputDevice:AVCaptureDevice = setCameraPosition() var error:NSError? …
martin
  • 1,894
  • 4
  • 37
  • 69
0
votes
1 answer

iOS: AVCaptureDevicePosition, how to get from SCRecorder (error: Bad receiver type)

I have some code, in objective-c, which is as follows: @interface SCRecorderPViewController () { SCRecorder *_recorder; UIImage *_photo; SCRecordSession *_recordSession; UIImageView *_ghostImageView; CGFloat screenWidth; …
ChrisC
  • 892
  • 2
  • 12
  • 33
0
votes
0 answers

(display a picture in a UIImageView) crash on captureStillImageAsynchronouslyFromConnection

I try to display a picture of the camera in a UIImageView. I try to debug my application (whit @property (nonatomic,weak) IBOutlet UILabel *messageLabel; ), -------Line "[output captureStillImageAsynchronouslyFromConnection ..." I have the value…
Nicks777
  • 1
  • 1
0
votes
1 answer

Locking iOS Camera Exposure Crashes

I have the following code: -(void) startCameraCapture { // start capturing frames // Create the AVCapture Session session = [[AVCaptureSession alloc] init]; // create a preview layer to show the output from the camera …
Timothy Frisch
  • 2,995
  • 2
  • 30
  • 64
0
votes
0 answers

Camera Zoom not work for iOS 6 device and iPhone 4(iOS7)

I am developing barcode reader application, in which I want to zoom camera view by tapping on camera. I used following approach to zoom camera view but its not work for the iOS6 and iPhone4(iOS7) device. Please any one help me on this: if…
Divya Bhaloidiya
  • 5,018
  • 2
  • 25
  • 45
0
votes
1 answer

Video recording fails on iPhone, but works on iPod Touch and iPad

Here's the scenario: If I perform both video recording and video editing operations simultaneously (asynchronously), one of the two operations fail. The same piece of code works flawlessly on an iPod Touch, but fails on iPhone. // Method that starts…
0
votes
1 answer

Getting EXC_BAD_ACESS code =1 When Trying To Capture An Image From Camera

New issue has come up as I've moved to Swift. This code worked in Objc but now its broken. func captureImage() { var videoConnection:AVCaptureConnection = AVCaptureConnection() for connection in _stillImageOutput.connections …
Aggressor
  • 13,323
  • 24
  • 103
  • 182
0
votes
1 answer

Torch in background

Is this possible to make torch lighting when app is in background? This is what I do to turn it on: AVCaptureSession *session = [AVCaptureSession new]; AVCaptureDevice *device = [AVCaptureDevice…
Artem Stepanenko
  • 3,423
  • 6
  • 29
  • 51
0
votes
1 answer

AVCaptureDevice can't capture back camera

I'm trying to use the back camera off my iphone with AVCaptureDevice. I tried both AVCaptureDevicePositionBack and AVCaptureDevicePositionFront but it still uses the FrontCamera no matter what. This is my code: - (void)setupCamera { …
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109
0
votes
2 answers

iOS Image Capture from Camera with pixel density(ppi) >300ppi

I am developing an iOS application which takes images from the iPhone camera using AVCaptureDevice. The images captured seem to have a pixel density(ppi) of 72ppi. 1. I need to send these images for further processing to a backend cloud server which…
Shahid Pasha
  • 81
  • 2
  • 5