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

最佳答案

适用于使用AR Engine SDK的华为

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

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



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.

在华为上可以使用camera2 API

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

ARCore中的此问题包含很多信息!

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

Night Vision / ToF Viewer app description的摘录:



另一个有趣的应用程序:

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

关于android - 是否可以从Android上的TOF(飞行时间)传感器读取数据?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55381412/

10-10 11:19
查看更多