最近的Android手机模型(荣耀V20、华为P30 Pro、三星Galaxy 10 5G)都配备了TOF(飞行时间)传感器。是否可以通过一些API或制造商提供的SDK来读取它?
最近的Android手机模型(荣耀V20、华为P30 Pro、三星Galaxy 10 5G)都配备了TOF(飞行时间)传感器。是否可以通过一些API或制造商提供的SDK来读取它?
华为可以使用 AR 引擎 SDK
https://developer.huawei.com/consumer/en/ar
SDK文档摘录 AREnginesdk-sample-2.0.0.6\HUAWEI AR Engine Function Manual.doc
4.13 场景网格
华为AR引擎提供实时输出场景网格的能力。输出包括手机在空间中的姿态。当前相机视图的3D网格仅支持指定的华为型号(荣耀V20、P30 Pro)可以获取深度信息,并且支持的扫描场景是静态的。
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.
https://github.com/google-ar/arcore-android-sdk/issues/120#issuecomment-535413944
这个ARCore问题包含了很多信息!目前还不可能。 因为Android在最新的官方SDK中没有包含任何此类API。
此外,像华为、三星和一加这样的制造商正在使用他们定制的操作系统源代码,我认为他们没有公开它。
我正在寻找同样的内容,我在三星社区的这个帖子上找到了相关信息, https://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=371359&listLines=40&startId=zzzzz~&searchType=ALL&searchText=tof