HMS FACEOFF Dress Trial Android sample code encapsulates APIs of the Image Kit (Image Cropping Service) and ML Kit (Image Segmentation) . It provides many sample programs for your reference or usage.
The following describes packages of Android sample code.
ImageSeg: Sample code of Image Segmentation feature.
model: code for model class
preferences: code for Shared Preferences instantce
repo: code for repository data
adapter: code for adaper holder
common: Common components and utils.
Android SDK Version >= 28 and JDK version >= 1.8 is recommended.
Before running the app, you need to:
-
If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
-
Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
-
Enable the API permission for below kits from Project Setting > Manage APIs and enable the API permission. ML Kit
See details: HUAWEI ML Kit - Image Segmentation Service Introduction HUAWEI HUAWEI Image Kit - Image Croping Service
HMS FACEOFF Dress Trial sample is licensed under the: Apache License, version 2.0.