We are working on an app that detects feet and then puts a 3d model of shoes on them — a kind of shoe AR try-on experience. We are working on Java Android. Is there any library or framework that does it?
To achieve what you are asking for requires 2 things.
- To detect feet[AI]
- To put object over feet[AR]
Ideally you can begin with Posnet for point 1 which is based on Tensorflowlite and for point 2 you can look into Screenform which is based on ARCore. You many not find complete package as a library but you have to start building your own according to your need.
There are several ready-made solutions to detect parts of your body (legs/feet included). But, if you are looking for a solution to try on a 3D model of the shoe on your leg - you may faced with the R&D phase.
Because the angle from which the user takes his device - is not in front of the user itself. He tries to move the camera directed to his legs, so you need to:
- Identify the feet with all control points (not only to detect that this is a left or right foot in the frame but also to understand how it is positioned)
- Render a 3D model of the shoe using control points from step 1 to position the 3D model correctly on the user's feet.
The problem is, that using for example native ARKit (iOS way) you can render a 3D model and even possess it by control points, so it's not a big deal. But the main problem related to step 1 - find feet with all control points at not typical angle when you scan your own feet, not the whole human in front of you.
So you may need to have an ML engineer (maybe on Pyhton) to create an ML model first. Next, use your native AR framework (ARKit for iOS for example) or Unity (if not native way) to possess and render the model on detected feet.
You can use tflight model given by MediaPipe. It gives Coordinate of cuboid with centre of Cuboid. Cordinate are in (x,y). You have to map that points in 3D.
You can also try MediaPipe API that will give bounding box aswell as orientation and Transformation of bounding box.
© 2022 - 2024 — McMap. All rights reserved.