truedepth-camera

Converting TrueDepth data to grayscale image produces distorted image

梦想的初衷 提交于 2021-01-29 07:37:35
问题 I'm getting the depth data from the TrueDepth camera, and converting it to a grayscale image. (I realize I could pass the AVDepthData to a CIImage constructor, however, for testing purposes, I want to make sure my array is populated correctly, therefore manually constructing an image would ensure that is the case.) I notice that when I try to convert the grayscale image, I get weird results. Namely, the image appears in the top half, and the bottom half is distorted (sometimes showing the

What's the range of the TrueDepth camera?

好久不见. 提交于 2020-12-15 05:14:40
问题 What's the minimum and maximum distance that the front facing TrueDepth camera can detect? When detecting depth data, if the value returned was normalized to the range 0 to 1, I'd be able to convert it to a grayscale image pretty easily. However, since the values returned are distance in meters, I could easily get a value such as 2.5. Therefore, knowing the theoretical minimum and maximum could help me normalize the values into the range of 0 to 1. Update: Very inaccurate estimates using

How to make a 3D model from AVDepthData?

扶醉桌前 提交于 2020-01-31 04:01:06
问题 I’m interested in the issue of data processing from TrueDepth Camera. It is necessary to obtain the data of a person’s face, build a 3D model of the face and save this model in an .obj file. Since in the 3D model needed presence of the person’s eyes and teeth, then ARKit / SceneKit is not suitable, because ARKit / SceneKit do not fill these areas with data. But with the help of the SceneKit.ModelIO library, I managed to export ARSCNView.scene (type SCNScene) in the .obj format. I tried to

Can I require a user to have a True Depth camera to download my app from the App Store?

江枫思渺然 提交于 2019-12-30 17:46:22
问题 An app I want to make only makes sense with a TrueDepth camera for ARKit and augmented reality face tracking capability. Can I require a user to have a True Depth camera(iPhone X only right now) to download my app from the App Store? 回答1: No. Apple's mechanism for segregating App Store listings by device capabilities does include a front-depth-camera key. However, that key is not enabled for use by third-party apps , and Apple doesn't include it in the list of device capabilities that third

Save depth images from TrueDepth camera

断了今生、忘了曾经 提交于 2019-12-09 06:49:50
问题 I am trying to save depth images from the iPhoneX TrueDepth camera. Using the AVCamPhotoFilter sample code, I am able to view the depth, converted to grayscale format, on the screen of the phone in real-time. I cannot figure out how to save the sequence of depth images in the raw (16 bits or more) format. I have depthData which is an instance of AVDepthData . One of its members is depthDataMap which is an instance of CVPixelBuffer and image format type kCVPixelFormatType_DisparityFloat16 . Is

Can I require a user to have a True Depth camera to download my app from the App Store?

风格不统一 提交于 2019-12-01 16:02:22
An app I want to make only makes sense with a TrueDepth camera for ARKit and augmented reality face tracking capability. Can I require a user to have a True Depth camera(iPhone X only right now) to download my app from the App Store? No. Apple's mechanism for segregating App Store listings by device capabilities does include a front-depth-camera key. However, that key is not enabled for use by third-party apps , and Apple doesn't include it in the list of device capabilities that third-party apps can use to limit App Store availability of an app. If you include that key in your app's Info