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
0 answers

When button click switch camera front and back in iOS

if (_session == nil) { NSLog(@"Starting up server"); self.isCapturing = NO; self.isPaused = NO; _currentFile = 0; _discont = NO; // create capture device with video input _session =…
Arjun Sa
  • 125
  • 2
  • 13
0
votes
1 answer

AVCaptureMetadataOutput with Driver's License

I am trying to capture the data from the pdf417 2d barcodes on the back of driver's licenses using the AVCaptureMetadataOutput for iOS7. I have the program recognizing other pdf417 barcodes, but it won't recognize the one on the back of my FL DL. …
0
votes
1 answer

No sound recorded using iPhone5

I am using below code to capture sound. It works fine on all devices expect iPhone5 ios7. Please help. AVCaptureDevice *audioCaptureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeAudio]; NSError *error = nil; AVCaptureDeviceInput…
user3085992
  • 163
  • 1
  • 11
0
votes
1 answer

How to save a movie from AVCapture

I've been trying to figure out AVCapture the last couple of days and am struggling to save a video. My understanding is that you call [movieFileOutput startRecordingToOutputFileURL:outputURL recordingDelegate:self]; and then at a later time you can…
0
votes
1 answer

How to set focus mode in UIImagePickerController

Actually the question is in the title of the question. In AVCaptureDevice there is a property - Focus Mode. There is no such thing in UIImagePickerController. So the question is how can I manage focus settings in UIImagePickerController?
Werolik
  • 923
  • 1
  • 9
  • 23
0
votes
2 answers

AVCaptureDevice exposureMode not supported?

I'm confused! I'm trying to manually adjust the exposure to fit the CGPoint in the center of the preview. I'm taking the device object and using setExposureMode and setExposurePointOfInterest in order to do the manipulation. The first thing I do…
Patricia
  • 5,019
  • 14
  • 72
  • 152
0
votes
0 answers

How to determine if AVCaptureDevice has focus

I have successfully turned on the setSubjectAreaChangeMonitoringEnabled: self.videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; [self.videoDevice lockForConfiguration:nil]; //you must lock before setting torch…
Patricia
  • 5,019
  • 14
  • 72
  • 152
0
votes
1 answer

Setting the focus depth of the AVCaptureDevice ios

I want to set the focus of the camera to be a fixed value (in my case 6"). Objects that are 6in from the camera will be in focus and anything else will be out of focus. But I don't see any way to hook into the focus value of the iphone camera. You…
jmel
  • 5
  • 3
0
votes
1 answer

720P versus 1080P camera buffer on ios cameras

Some of the iOS devices have cameras capable of 720P and others are 1080P. Holding the screen size fixed, obviously the 1080P will provide a better picture since we are fitting more pixels in the same screen size. But if we wanted to manipulate…
Khaled Barazi
  • 8,681
  • 6
  • 42
  • 62
0
votes
0 answers

Live Feed Camera Orientation - IOS 6

I'm struggling to find a resolution to this issue I have. I can't make heads or tails from various examples and other SO posts I have sifted through. My problem is i'm wanting to take a still image from a live video feed on an iPad. I successful see…
0
votes
1 answer

Does the Illumination sensor on iPhone and iPad adjusts RGB values automatically?

The iPhone and iPad have different AvCaptureDevice methods to lock or put on Auto: white balance and exposure settings. I am trying to understand the mechanism of the "Backside illumination sensor" on the back camera and now the front camera and…
0
votes
1 answer

subjectAreaChangeMonitoringEnabled only works on certain camera devices

I've been attempting to use AVCaptureDevice's subjectAreaChangeMonitoringEnabled property to monitor movement with a potential motion-detection application. For the back-facing camera of both iPhone 4S and iPad 2, I receive…
Joshua J. McKinnon
  • 1,696
  • 1
  • 18
  • 29
0
votes
0 answers

Show Front Camera Within Set Frame of View Controller

I am trying to add the Front Camera as a subView to my existing View Controller. I would like to set a frame for it, and be able to emulate the way a FaceTime call would look, with the Front Camera showing in the corner. Here is what I have tried…
user717452
  • 33
  • 14
  • 73
  • 149
-1
votes
1 answer

Crash in AVCaptureDevice temperatureAndTintValues

I have the following code to observe white balance changes via KVO in Swift. self.addObserver(self, forKeyPath: "videoInput.device.deviceWhiteBalanceGains", options: [.new, .old], context: &whitebalanceGainsObserverContext) And then in…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
-1
votes
1 answer

Play a song and show the waves

I have been working in AVAudioPlayer and I would like to draw a wave form which looks look like this:
Arjun Sa
  • 125
  • 2
  • 13
1 2 3
23
24