Try Huawei 3D Modeling Service

We know that Apple and some other companies can automatically generate 3D models by scanning objects with mobile phones. Recently, I saw a 3D modeling service for Huawei consumer terminals, so I couldn’t wait to try it out.

1. We use Huawei's 3D modeling demo to try it out. First download the demo code of the 3D modeling service on github. The code address is as follows:

https://github.com/HMS-Core/hms-3d-modeling-demo

2. After downloading the code, open it with android studio. The 3D modeling service takes pictures on the client and uploads the photos to the server for modeling, so it needs to be connected to the Internet, so we need to create a Huawei account and real-name authentication. This step is more troublesome. For account registration, please refer to: https://developer.huawei.com/consumer/en/service/josp/agc/index.html

3. After opening an account, you need to create a project and create an application first, please refer to

https://developer.huawei.com/consumer/cn/doc/development/graphics-Guides/config-agc-0000001142925473

4. According to the integrated HMS reference guide, we download agconnect-services.json on the project page

5. The name of the project we named is com.huawei.hms.ModelTracking, then the next step is how to combine it with the 3D modeling service demo. We put the downloaded agconnect-services.json under the app/ directory. Delete their sample-agconnect-services.json.

6. Modify the package name, open app/build.gradle, and modify the applicationId to the following

applicationId "com.huawei.hms.ModelTracking"

Open the app/src/AndroidManifest.xml file and modify the package as follows

package="com.huawei.hms.ModelTracking"

 Modify the entire package name com.huawei.hms.modeling3d to com.huawei.hms.ModelTracking

 

 7. After the modification is completed, it can be compiled and run.

I tried to build a 3D model, the modeling effect is as follows, the basic modeling is still ok.

 Share your modeling experience here:

1. The model is best if the texture of the object needs to be rich and non-reflective. such as furry toys. Officially recommended modeling:

2. When taking pictures, it will be very good if there is a lighting device in terms of lighting.

Softboxes give proper light

 

In terms of backgrounds, it is helpful to have a photo studio background preferably behind and below the object. Soft curves from the wall to the table or floor are important to avoid edges in the background.

White noise-free background

 And some other experiences:

Ideally use images captured from the same camera device
Do not crop the image before uploading, but use the native resolution
Ideally, take photos from the same area of ​​the object from different locations
In general, when using high-resolution images, the result will be better. In our tests, 12-megapixel images worked just fine. However, this is also limited. Our recommendation is to use 12MP (4032×3024) images, which as of 2018 is a common resolution for smartphone cameras.
Take the image in HDR mode (if available) as the exposure will be evenly distributed
Use pictures that overlap a bit with each other Take the picture
in even light

references:

https://developer.huawei.com/consumer/cn/doc/development/graphics-Guides/introduction-0000001143077297

https://github.com/HMS-Core/hms-3d-modeling-demo

Guess you like

Origin blog.csdn.net/grace_yi/article/details/119251489