Search code examples
iphone-xinfrared

Is it possible to access the infrared camera on iPhone X?


According to this picture:

iPhone X sensors

the iPhone X has an infrared camera. It is primarily used for face detection but there are other uses for infrared. Can it be accessed directly?


Solution

  • Still not sure about infrared but to read the depth information from the iPhone X TrueDepth camera, we can use the AVDepthData class and related APIs. Here's a tutorial.