是否可以从Android上的TOF(飞行时间)传感器读取数据?

Ale*_*rev 8 android samsung-galaxy huawei

Android手机的最新型号(Honor View 20,Huawei P30 Pro,三星Galaxy 10 5g)具有TOF(飞行时间)传感器。是否可以通过某些API或制造商SDK读取它?

fiv*_*vef 7

华为可以使用 AR Engine SDK

https://developer.huawei.com/consumer/en/ar

SDK文档摘录 AREnginesdk-sample-2.0.0.6\HUAWEI AR Engine Function Manual.doc

4.13 场景网格
华为AR Engine提供实时输出场景网格能力。输出包括手机在空间中的姿势。当前摄像头视图的3D网格仅支持指定的可以获取深度信息的华为机型(荣耀V20?P30Pro),并且支持的扫描场景是静态的。

SDK文档摘录 AREnginesdk-sample-2.0.0.6\java\HUAWEI AR Engine SDK Interface Manual.docx

2.2.1.18.   ARSceneMesh
•   Description: The class used to return the tracking result when the environment Mesh is tracked. The result includes the Mesh vertex coordinates, the triangle subscript, and so on.
•   Methods: 
public ShortBuffer getSceneDepth()
        // Get the depth image of current frame(optimized).
public int getSceneDepthHeight()
        // Get the height of the depth image.
public int getSceneDepthWidth()
        // Get the width of the depth image.
Run Code Online (Sandbox Code Playgroud)


华为可能使用camera2 API

https://github.com/google-ar/arcore-android-sdk/issues/120#issuecomment-535413944

ARCore中的这个issue包含了很多信息!

在 S10 5G 上似乎也有可能,但目前在 Note 10+ 上不可用

夜视 / ToF 查看器应用程序说明摘录:

此应用目前仅适用于华为 P30 Pro、Honor View 20 和三星 S10 5G。更多的设备将通过未来的设备软件更新开始工作。

新功能

  • 添加了对三星 S10 5G 的兼容性(也可能适用于其他设备)
  • 分辨率对话框已删除
  • 移除正面支撑

注意:对三星 Note10+ 支持进行了大量研究,但是该设备似乎不支持第三方应用程序的 ToF。


另一个有趣的应用程序:

使用华为 ToF 传感器的 3D 扫描仪应用程序 https://play.google.com/store/apps/details?id=com.lvonasek.arcore3dscannerpro