Questions tagged [avcapturesession]

iPhone - To perform a real-time or offline capture, you instantiate an AVCaptureSession object and add appropriate inputs (such as AVCaptureDeviceInput), and outputs (such as AVCaptureMovieFileOutput).

You use an AVCaptureSession object to coordinate the flow of data from AV input devices to outputs.

To perform a real-time or offline capture, you instantiate an AVCaptureSession object and add appropriate inputs (such as AVCaptureDeviceInput), and outputs (such as AVCaptureMovieFileOutput).

The AVFoundation Programming Guide explains how to use AVCapureSession.

1246 questions
-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

How to capture Camera frames of all supported resolutions?

Now I'm trying to figure out a way to capture camera frames of all supported resolutions concurrently. For example, I need to capture camera frames for both resolutions (640x480, 1920x1080). The thing is, I've failed to add multiple…
Pendulum
  • 1
  • 3
-1
votes
1 answer

Detect QRCode using AVCaptureSession and AVMetadataObjectTypeQRCode worked in xCode 8, but not xCode 9

I am was to detect QRCode using AVCaptureSession and AVMetadataObjectTypeQRCode when using Xcode 8 iOS 10, now it won't detect the QR codes when compiled with xCode 9 iOS 11. Can anyone help! I don't understand what changed. Thanks in advance, Rob
Rob
  • 757
  • 1
  • 10
  • 26
-1
votes
2 answers

how to correctly start a camera session using AVCapture session/AVCapture

I want to make an iOS app in objective C. Right now I'm stuck on making the preview layer to the AVCapture preview output. Could someone please tell me how to successfully start an image capture session using the AVCapture camera session in iOS…
sreejesh
  • 718
  • 5
  • 15
-1
votes
2 answers

No error printed however function doesn't run

I am attempting to make a camera view appear, as you can see in my code below I have it set up to display any errors and not break the program if any errors occur, however when I do run this code no error occurs or camera view is displayed. I am…
-1
votes
1 answer

How to add video recording to image capture session

I have already set up a session that can take photos using the AVFoundation and I have a custom camera, so I am not using the default picker controller. How can I add the option to record video? On the button I have added a gesture that detects if…
Lehman2020
  • 637
  • 7
  • 22
-1
votes
3 answers

Objective-C to Swift: correct way to translate a for-loop

I'm trying to convert this code to swift, but I keep getting an error in the if-statement, the objective-c code looks like this: AVCaptureStillImageOutput *stillImageOutPut; AVCaptureConnection *videoConnection = nil; for (AVCaptureConnection…
martin
  • 1,894
  • 4
  • 37
  • 69
-1
votes
1 answer

AVCapture iOS — user experience when capturing at lower frame rates

I am working with some computer vision algorithms that require me to work on lower frame rates ~ sometimes even 7-10 fps. The issue is that I don't want the user to have a poor experience when using the app but I still want to process at a lower…
p0lAris
  • 4,750
  • 8
  • 45
  • 80
-1
votes
1 answer

How do I use the AVFoundation framework to take a picture with the iPhone camera?

I need the iOS camera to take a picture without any input from the user. How would I go about doing this? This is my code so far: -(void)initCapture{ AVCaptureDeviceInput *newVideoInput = [[AVCaptureDeviceInput alloc] init]; …
-1
votes
1 answer

iPhone 5S lowLightBoost seems not supported. Why?

I'm trying to add lowLightBoost, but on the iPhone i'm testing it is not supported. Am I doing something wrong or did Apple block this feature on iPhone 5S ? I can paste code for AVCaptureSession's setup if necessary, but it's just basic, taken from…
-1
votes
2 answers

iOS SDK Realtime Text Removal on AVCatureSession Frame of Image in focus

I am developing an iOS app similar to Word Lens . What I want is the functionality to add some blurred pieces as overlay on certain text part as shown in the attached images. If it is possible to wipe out the text data completely from an Image, I…
inkaas
  • 1
-1
votes
1 answer

Why does this code work sometimes, but not others?

I created a 'mirror'-like view in my app that uses the front camera to show a 'mirror' to the user. The problem I'm having is that I have not touched this code in weeks (and it did work then) but now I'm testing it again and it's not working. The…
-2
votes
1 answer

Why does the Breakfast Finder sample code result in a blank screen after adding it to a new xcodeproj file?

Goal I am trying to apply the object detection functionality of the Breakfast Finder sample code to my app. When I add my personal model to the Breakfast Finder sample code and run it, it detects my objects and presents labels just…
Brian
  • 19
  • 7
-2
votes
1 answer

AVCaptureSession not feeding data to iPhones below iPhone X

If you are working on a project and the iPhone camera is not passing through data (you do get a view), with current setting AVCaptureSession.Preset.Photo .
Anton
  • 7
  • 2
-2
votes
1 answer

How to play .mov file in Android devices using default player?

I have been working on an iOS application, in my application I have recorded .mov file using AVCaptureSession, however when I tried to play in any Android devices it is not supporting in their default player. What should I do now, Do I need to…
Newbee
  • 3,231
  • 7
  • 42
  • 74
1 2 3
83
84