Questions tagged [avcapturephotooutput]

25 questions
0
votes
1 answer

iPhone 12 Pro, 13 Pro Max take super-bright (maybe overexposed) photos with flash

On the current project once again I use the camera. I use two streams of video and photo Video to detect rectangle and photo to capture a photo with the flash. After several checks I found the bug. On 12 Pro & 13 Pro Max in a bright room I obtain…
0
votes
1 answer

How to convert an image taken with captureOutput didFinishProcessingPhoto into a string to be stored in a JSON using objective C

I am taking a photo and processing it using captureOutput:didFinishProcessingPhoto. I need to convert the photo (AVCapturePhoto) into a string so I can send it to the server in a JSON. I need to store it in the userDefaults first, and on the last…
0
votes
1 answer

Swiftui photoOutput for Images not called every time

This is actually the same issue as this post AVCapturePhotoCaptureDelegate photoOutput() not called every time however no one responded to that . I find that on takePic the photoOutput function is called sometimes and not others it is literally…
user1591668
  • 2,591
  • 5
  • 41
  • 84
0
votes
1 answer

Instance member 'fileDataRepresentation' cannot be used on type 'AVCapturePhoto'; did you mean to use a value of this type instead?

Swift gives the error that a fileDataRepresentation cannot be created for AVCapturePhoto. Printing "photo", returns the photo's metadata. How can I convert the image to file bytes and eventually base64? I have tried many methods so far, but all rely…
0
votes
0 answers

AVCapturePhotoOutput didFinishProcessingPhoto not getting called

I am trying to capture an image using AVCapturePhotoOutput and AVCaptureSession, my code is as follows (running it though an XCTest): func testCapture() { let expectation = expectation(description: "Camera") let captureSession =…
gkpln3
  • 1,317
  • 10
  • 24
0
votes
1 answer

AVCapturePhotoOutput to Base64

I am using swift to develop an app that communicates with my server which runs flask. I would like to be able to take a picture and upload it in a base64 format. Currently the base64 encoding I am using is producing a corrupt and unusable image. As…
Python 123
  • 59
  • 1
  • 13
0
votes
2 answers

Cropping AVCapturePhoto to overlay rectangle displayed on screen

I am trying to take a picture of a thin piece of metal, cropped to the outline displayed on the screen. I have seen almost every other post on here, but nothing has got it for me yet. This image will then be used for analysis by a library. I can get…
Siriss
  • 3,737
  • 4
  • 32
  • 65
0
votes
1 answer

How to get depth data from camera images

I am writing an app to get the depth data and disparity data from pictures taken from the camera. I can get the disparity data but not the depth data it always returns nil. I need to get the depth information and save it as a jpg I have tried the…
UIB
  • 103
  • 2
  • 13
0
votes
1 answer

iOS Custom Camera - Take Photo Instantly

In my app I created a custom camera view for image capturing. When I trigger capturing, I use the following code: private func takePhoto() { let settings = AVCapturePhotoSettings() self.stillImageOutput.capturePhoto(with: settings, delegate:…
Zoltan Varadi
  • 2,468
  • 2
  • 34
  • 51
0
votes
2 answers

How to put a pause after taking a picture?

I'm using AVCapturePhotoOutput to capture with a button click. I checked the built-in camera and found that when camera takes a picture it somewhat pause for a bit. How can I do that using AVCapturePhotoOutput?
jay123456
  • 131
  • 1
  • 1
  • 10
1
2