[英]ARCore eyes tracking
我是 ARCore 的新手,我正在嘗試使用 Google 自己的增強面部示例來跟蹤雙眼。 問題是谷歌只為 NOSE_TIP、FOREHEAD_LEFT、FOREHEAD_RIGHT 創建了區域姿勢。 在撰寫本文時,我使用的是最新版本的 ARCore,即 1.20。 在 onDrawFrame 方法中我這樣做:
face.getRegionPose(RegionType.NOSE_TIP).toMatrix(noseMatrix, 0);
face.getRegionPose(RegionType.NOSE_TIP).toMatrix(noseMatrix2, 0);
noseObject.updateModelMatrix(noseMatrix, scaleFactor);
noseObject.draw(viewMatrix, projectionMatrix, colorCorrectionRgba, DEFAULT_COLOR);
noseObject2.updateModelMatrix(noseMatrix2, scaleFactor);
noseObject2.draw(viewMatrix, projectionMatrix, colorCorrectionRgba, DEFAULT_COLOR);
所以,我想知道該怎么做才能得到眼睛 position。感謝所有願意以任何可能的方式幫助我的人。
您可以查看這篇博文,了解它是如何使用 ARCore 和 Sceneform 完成的。 希望它能給你一些想法
我是 ARCore 的新手,我正在嘗試使用 Google 自己的增強面部示例來跟蹤雙眼。 問題是 Google 只為 NOSE_TIP、FOREHEAD_LEFT、FOREHEAD_RIGHT 創建了區域姿勢。 在撰寫本文時,我使用的是最新版本的 ARCore,即 1.20。 在 onDrawFrame 方法中,我這樣做:
face.getRegionPose(RegionType.NOSE_TIP).toMatrix(noseMatrix, 0);
face.getRegionPose(RegionType.NOSE_TIP).toMatrix(noseMatrix2, 0);
noseObject.updateModelMatrix(noseMatrix, scaleFactor);
noseObject.draw(viewMatrix, projectionMatrix, colorCorrectionRgba, DEFAULT_COLOR);
noseObject2.updateModelMatrix(noseMatrix2, scaleFactor);
noseObject2.draw(viewMatrix, projectionMatrix, colorCorrectionRgba, DEFAULT_COLOR);
所以,我想知道怎么做才能得到眼睛的位置。 感謝所有願意以任何可能的方式幫助我的人。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.