简体   繁体   English

Sceneform SDK:如何在平面以外的物体上添加 3D 可渲染

[英]Sceneform SDK: How to add a 3D renderable on things other than plane

I am trying to develop an app to render a 3D model of a watch on my wrist.我正在尝试开发一个应用程序来在我的手腕上渲染手表的 3D 模型。 But the Sceneform SDK detects a plane only.但 Sceneform SDK 仅检测平面。

I tried augmented images by augmenting the picture of my wrist, but my wrist was not detected due to too few feature points.我尝试通过增强我的手腕图片来增强图像,但由于特征点太少,我的手腕没有被检测到。

Any suggestion on how it can be done?关于如何完成的任何建议? I am an Android Developer and use Sceneform SDK with ARCore.我是一名 Android 开发人员,使用带有 ARCore 的 Sceneform SDK。 I have no experience with Unity.我没有使用 Unity 的经验。

Please help!!请帮忙!!

You need to use a Google ML Kit model along with ARCore and Sceneform .您需要使用 Google ML Kit模型以及ARCoreSceneform This Machine Learning framework allows you to add to your app such features as Faces/Landmark Detection, OCR, Image Labelling, QRcode/Barcode scanning, etc.该机器学习框架允许您将人脸/地标检测、OCR、图像标记、二维码/条形码扫描等功能添加到您的应用程序中。

AI can detect your wrist using Custom Model Inference (then ARCore can place an Anchor on it). AI可以使用自定义模型推断来检测您的手腕(然后 ARCore 可以在其上放置一个锚点)。 But you have to implement a TensorFlow Lite pre-trained model.但是你必须实现一个TensorFlow Lite预训练模型。

ML Kit is for Android and iOS. ML Kit适用于 Android 和 iOS。

在此处输入图片说明

Hope this helps.希望这可以帮助。

While I love the idea of using ML Kit to build your own computer vision model, that's probably a tad more involved than you were hoping to make things.虽然我喜欢使用 ML Kit 构建您自己的计算机视觉模型的想法,但这可能比您希望制作的东西要复杂一些。

Might I suggest that a quick and easy solution would be to stick a sticker on your wrist that is registered as an image target with ARCore?我是否可以建议一种快速简便的解决方案是在您的手腕上贴一个贴纸,并在 ARCore 中注册为图像目标? You could even just draw a marker on your wrist with some success.您甚至可以成功地在手腕上画一个标记。

You could then make some assumptions about the size of an average wrist for setting up some basic occlusion effect, in order to hide the bands of the watch on the other side of your wrist.然后,您可以对平均手腕的大小进行一些假设,以设置一些基本的遮挡效果,以便隐藏手腕另一侧的手表表带。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM