Questions tagged [avdepthdata]
16 questions
5
votes
1 answer
Filtering Depth Data on iOS 12 appears to be rotated
I am having an issue where the Depth Data for the .builtInDualCamera appears to be rotated 90 degrees when isFilteringEnabled = true
Here is my code:
fileprivate let session = AVCaptureSession()
fileprivate let meta =…

Stephen Furlani
- 6,794
- 4
- 31
- 60
4
votes
1 answer
Depth map from AVDepthData different from HEIC file depth data in Photoshop
I am using the following code to extract depth map (by following Apple's own example):
- (nullable AVDepthData *)depthDataFromImageData:(nonnull NSData *)imageData orientation:(CGImagePropertyOrientation)orientation {
AVDepthData *depthData =…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
3
votes
0 answers
How to build AVDepthData manually
I want to build my own depth map and save image like portrait photo with depth info. So first of all I need generate AVDepthData. After dig how it builded, I try to reproduce it:
func buildDepth() {
// ...
let info: [AnyHashable: Any] =…

Gralex
- 4,285
- 7
- 26
- 47
2
votes
0 answers
Depth capture for iPhone X back camera not working
I'm running into an issue where isDepthDataDeliveryEnabled is false for me on an iPhone X and using .builtInDualCamera.
The weird thing is that this is only happening on one specific iPhone X. I've tested on other iPhone Xs and iPhone 11s, and…

Gwendolyn
- 21
- 1
2
votes
0 answers
How to get Subpixel Disparities in AVDepthData Objects
I'm working on a swift app that should measure physical correct z-values of a person standing in front of a statically mounted iPhone 7+. Therefore, I am using AVDepthData objects that contain the depth maps coming from the Dual Camera System.…

Amadeus
- 21
- 3
2
votes
1 answer
How to create depth data and add it to an image?
Sorry, I duplicated this question How to build AVDepthData manually, because it doesn't have answers I want and I don't have enough rep to comment there. If you don't mind, I could remove my question in the future and ask somebody to move future…

Bakyt Niyazbekov
- 31
- 3
1
vote
0 answers
How to get real world distance with/from iOS AVFoundation LiDAR?
I am trying to use the depthmap data, but in a very simple way.
I am reading data from the Lidar. The data is somehow unexpected. When the iPhone 14 Pro is parallel to a flat wall, say in a distance of 0.3 meter. I would expect to read that 0,3…

Taras Buha
- 11
- 1
1
vote
0 answers
Unwanted "smoothing" in AVDepthData on iPhone 13 (not evident in iPhone 12)
We are writing an app which analyzes a real world 3D data by using the TrueDepth camera on the front of an iPhone, and an AVCaptureSession configured to produce AVDepthData along with image data. This worked great on iPhone 12, but the same code on…

Chris
- 629
- 1
- 10
- 28
1
vote
0 answers
Is there a way to save AVDepthData for video for IOS?
I'm trying to make an IOS app that saves AVDepthData for a video as mp4. I tried using AVAssetWriter but it didn't work (Problem similar to - https://developer.apple.com/forums/thread/685883). My intention is to save both RGB & DepthMap and later…

Anonymous Panda
- 11
- 1
1
vote
2 answers
What are black pixels in ARKit Depth Map pixel buffer?
When taking a depth pixel buffer from ARKit session like:
CVPixelBufferRef depthDataMap = frame.capturedDepthData.depthDataMap;
many pixels are in black. What do they represent? Why are they black? This doesn't reflect the real depth of the real…

mixtly87
- 1,675
- 15
- 32
0
votes
0 answers
How to relate intrinsics and distortion from AVDepthData to the current video stream?
I am writing a small test app in the context of Computer Vision. The final application will require using the camera calibration, so for now my test app creates a capture session, enables the delivery of the intrinsics matrix and logs it.
As an…

sansuiso
- 9,259
- 1
- 40
- 58
0
votes
0 answers
How to get ArKit's world coordinates for the current frame
Step 1: I used sceneDepth?.depthMap to get my depthMap (https://developer.apple.com/documentation/arkit/ardepthdata/3566296-depthmap)
Step 2: I relied on the camera intrinsics parameter to find the point cloud of the current frame (Depth frame)
Step…

AnhTuan
- 205
- 3
- 6
0
votes
0 answers
Does swift 5 support to extract depth data from .HEIC image format?
Recently I'm trying to extract depth data and portrait effects matte data using portrait images. I tried to do that with portrait images (.HEIC format) taken by iPhone 11 with iOS 14.3. But I was unable to extract depth data and matte data from that…

VidU
- 21
- 3
0
votes
0 answers
How to access Android Emulator SD card Files on PC Window 10?
using the Andriod emulator I have downloaded some files from the Internet on Google Chrome Browser. but I don't know where it's located on my PC, Kindly help me with that, here are the details of the emulator
Name: Nexus_5_API_28
CPU/ABI: Google…
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