Is it possible to access the infrared camera on iP

2019-03-31 14:58发布

问题:

According to this picture:

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?

回答1:

not via the approved iOS API library calls. But undocumented API should be possible if you guess how to do it.



回答2:

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.