Facial Comparison - Face Similarity Online- HUAWEI Developer
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
This API recognizes and extracts key facial features, performs high-precision comparisons of human faces, provides confidence scores, and determines whether the same person appears across different images. Cutting-edge facial comparison technology intelligently categorizes and manages photos. An intelligent image recognition algorithm ensures accurate facial recognition, and enables apps to provide an enhanced user experience.
Scenarios
Similarity comparison, identity authentication
This API performs high-precision facial comparisons, and can be applied in functions related face similarity, such as image management, face similarity comparisons, and identity authentication.
Automatic photo classification in gallery
Intelligently classifies photos in Gallery, based on the face comparison function.
Facial similarity comparisons
This function can be used to match a user's face with that of a similar-looking celebrity.
Description
Request
Copy
FaceComparator faceComparator= new FaceComparator(getApplicationContext()); Frame frame1 = new Frame(); frame1.setBitmap(mBitmapPerson1); Frame frame2 = new Frame(); frame2.setBitmap(mBitmapPerson2);
1Can I call the faceCompare() method without calling the prepare() method of the API?
Yes, you can. The engine is started by default in the faceCompare() method. If the engine has already been started, it will not restart.
2When should I call the release() method?
The release() method will uninstall a model that has been loaded to the NPU chip. If the app is no longer using face detection, uninstall the model in a timely manner to free up resources.