Artifact: seeta-face-sdk-debug.aar
Target projects: Android face recognition / face verification applications (face enrollment, 1:1 verification, 1:N search, liveness detection, two-image comparison, face library management)
This document is intended for integrators' developers and describes how to import the AAR, its public entry points, engine and face library APIs, built-in models and native libraries, activation code / gateway sync logic, and notes.
Contents
1. Overview
1.1 Introduction
This AAR is a reusable SDK extracted from the face recognition online edition application. All face business pages and flows are packaged inside, so integrators can use the following capabilities directly through the entry pages:
- Activation code / gateway verification: device ID generation, online activation code verification, local activation code persistence; built-in activation code management page; protected features are automatically intercepted and verified before entry when not activated.
- Face enrollment: real-time camera detection; automatic capture once pose / quality / occlusion / eye state meet the criteria; manual capture is also supported; after entering a name, features are extracted and written to the local face library.
- 1:1 face verification: select a target face from the library and compare it 1:1 with the live camera face, returning similarity and verification result.
- 1:N face search: compare the live camera face against the entire local face library, returning the matched person, similarity and verification result on a hit.
- Liveness detection: video stream liveness detection that determines whether the person in front of the camera is real, preventing attacks by photos, videos, masks and similar spoofs.
- Two-image face comparison: select image A and image B respectively and compare the faces in the two images for similarity.
- Face library management: view the number of people in the library and enrolled people (including enrollment time); supports long-press deletion, adding faces, cloud sync update and list refresh.
- Parameter settings: recognition similarity threshold, liveness toggle, model toggles, recognition model selection, camera selection, etc.
- Cloud face sync: pull cloud face photos from the gateway by the current activation code, then decode, detect and extract features one by one and write them to the local face library.
1.2 Package Contents
| Category | Content |
|---|
| Engine wrapper | Inference wrappers for face detection, landmarks, feature extraction, comparison, liveness, age / gender / mask / pose / quality / eye state |
| Face library | Local SQLite face feature library, in-memory search library |
| Gateway communication | Activation code verification, cloud face list fetching, cloud sync helper |
| Business pages | Main menu, enrollment, 1:1, 1:N, liveness, two-image comparison, face library management, settings, activation code management, model test |
| Built-in AI models | 15 .csta models packaged with the AAR, automatically released to the app internal directory on first launch for loading |
| Bundled native runtime libraries | arm64-v8a runtime libraries packaged with the AAR |
1.3 Environment Requirements
| Item | Requirement |
|---|
| minSdkVersion | 21 |
| compileSdkVersion | 36 |
| targetSdkVersion | 34 |
| Supported ABI | arm64-v8a |
| Build environment | Android Gradle Plugin 8.10.1 / Gradle 8.14.5, built with JDK 17, bytecode level 11 |
| Third-party dependencies | appcompat, material, constraintlayout, recyclerview, CameraX (coordinates in 2.2, already declared in the AAR) |
2. Integration Steps
2.1 Import the AAR
- Copy
seeta-face-sdk-debug.aar to the integrator project's app/libs/ directory (create the directory if it does not exist). - Add it to
dependencies in the integrator's app/build.gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar'])
}
2.2 Repositories and Third-party Dependencies
The SDK itself declares the following dependency coordinates in build.gradle. The AAR does not embed the classes of these third-party libraries, so the integrator project must be able to access the corresponding repositories and let the app resolve and bundle them at build time:
repositories {
google()
mavenCentral()
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
// CameraX camera preview
implementation 'androidx.camera:camera-core:1.3.4'
implementation 'androidx.camera:camera-camera2:1.3.4'
implementation 'androidx.camera:camera-lifecycle:1.3.4'
implementation 'androidx.camera:camera-view:1.3.4'
}
2.3 Permissions
The SDK's AndroidManifest.xml already declares the following permissions, which are merged automatically with the integrator's manifest; if the integrator project trims permissions, make sure these are kept:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
Runtime permissions such as camera and media storage are requested by each camera page on entry; activation verification and cloud sync require network permission.
2.4 Initialization
The SDK does not require a mandatory initialization class registered in the Application.
- After the
MainActivity entry page opens, model loading is completed on a background thread: ModelLoader.ensureModels(Context) first releases the built-in models to filesDir/models, then the engine is initialized and the local face library is loaded. - Before the engine is ready, feature buttons that depend on the engine are disabled and grayed out; they are enabled automatically once the engine is ready.
2.5 Launch Entry
Start the SDK main menu from any page of the integrator:
Intent intent = new Intent(context, com.seeta6.demo.ui.MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
3. Functional Modules and Entry Pages
The 10 registrable pages in the SDK are already registered (fully qualified names) in AndroidManifest.xml; integrators can start them directly by constructing an Intent.
3.1 Page List
| Page class | Fully qualified name | Function | Orientation |
|---|
MainActivity | com.seeta6.demo.ui.MainActivity | SDK main menu (entry page), holds the static engine instance ENGINE | Portrait |
EnrollCameraActivity | com.seeta6.demo.ui.EnrollCameraActivity | Face enrollment (real-time automatic capture when criteria met / manual capture) | Landscape |
Verify1v1Activity | com.seeta6.demo.ui.Verify1v1Activity | 1:1 face verification | Portrait |
Search1NActivity | com.seeta6.demo.ui.Search1NActivity | 1:N face search | Portrait |
LivenessActivity | com.seeta6.demo.ui.LivenessActivity | Video liveness detection | Portrait |
TwoImageVerifyActivity | com.seeta6.demo.ui.TwoImageVerifyActivity | Two-image face comparison | Portrait |
FaceManageActivity | com.seeta6.demo.ui.FaceManageActivity | Face library management (delete / add / cloud sync / refresh) | Portrait |
SettingsActivity | com.seeta6.demo.ui.SettingsActivity | Parameter settings (threshold / liveness / model toggles / model selection) | Portrait |
ActivationManageActivity | com.seeta6.demo.ui.ActivationManageActivity | Activation code management (view current code / verify new code / clear) | Portrait |
ModelTestActivity | com.seeta6.demo.ui.ModelTestActivity | Model function test page | Portrait |
3.2 Camera Base Class and Views
| Class | Package name | Description |
|---|
CameraBaseActivity | com.seeta6.demo.ui | Camera base class: CameraX preview, YUV to Bitmap, rotation / mirror control, per-frame callback, resolution selection; all camera pages inherit from it |
FaceOverlayView | com.seeta6.demo.ui | Face box / status overlay view |
Pages mainly interact through the static engine instance, the local face library and SharedPreferences, and do not pass parameters through Intent extras; integrators only need to enter from MainActivity, and in-page navigation is handled inside the SDK.
4. Activation Code / Gateway Verification Module
4.1 Verification Flow
- When entering
MainActivity, read the locally saved activation code; if empty, show the activation code login dialog. - After the activation code is entered, a background thread calls the gateway verification API; once verification passes, the activation code is written locally and the engine is initialized.
- Before entering protected features such as enrollment, 1:1, 1:N, liveness, face library management and two-image comparison, the activation code is verified online again; on failure the reason returned by the gateway is shown.
ActivationManageActivity can view the current activation code, enter and verify a new code and save it, and clear the local activation code.
4.2 Local Persistence
| Storage name (SharedPreferences) | Key | Content |
|---|
gateway_prefs | activation_code | Activation code saved on this device |
| Local database | Table | Content |
|---|
seeta_face.db | faces | Features, name, enrollment time and avatar path of enrolled faces |
4.3 Gateway Configuration GatewayConfig
com.seeta6.demo.gateway.GatewayConfig:
| Member | Description |
|---|
GATEWAY_BASE_URL | Gateway HTTP address (statically editable), currently http://192.168.0.91:5000 |
CLOUD_FACE_ROOT | Cloud face photo root directory prefix, fixed as faces |
API_VERIFY_CODE | Activation code verification API path /api/device_verify_code |
API_CLOUD_IMAGES | Cloud face list API path /api/cloud_images |
getDeviceId(Context) | Unique device ID, prefix android_ + ANDROID_ID |
getActivationCode(Context) / setActivationCode(Context, String) | Read / save the local activation code |
getCloudFaceFolder(Context) | Cloud directory corresponding to the current activation code, in the form faces/001; returns null when there is no activation code |
4.4 Gateway API GatewayApi
com.seeta6.demo.gateway.GatewayApi:
| Method | Return value | Description |
|---|
verifyCode(Context ctx, String activationCode) | VerifyResult | Online activation code verification; return code code == 0 means passed |
fetchCloudImages(Context ctx) | List<CloudImage> | Fetch the cloud face photo list under the current activation code directory |
Internal types
GatewayApi.VerifyResult: fields code (int, return code), msg (String, message); method ok() determines whether it passed.GatewayApi.CloudImage: fields key, filename, url.
4.5 Cloud Sync CloudFaceSyncHelper
com.seeta6.demo.gateway.CloudFaceSyncHelper: pulls cloud face photos from the gateway, decodes each one (size limit + EXIF orientation correction), detects, crops the face close-up, extracts features and writes them to the local face library.
| Method | Description |
|---|
CloudFaceSyncHelper(SeetaFaceEngine engine) | Constructor, binds an initialized engine |
syncWithActivation(Context ctx, String activationCode, SyncCallback cb) | Flow with activation code: verify the activation code first, then sync on success |
sync(Context ctx, SyncCallback cb) | Sync directly (requires activation) |
SyncCallback callbacks: onProgress(int done, int total, String msg) (per-image progress), onResult(boolean success, int added, int failed, String msg) (sync result).
5. Face Engine SeetaFaceEngine
5.1 Module Composition
| Class | Package name | Description |
|---|
SeetaFaceEngine | com.seeta6.demo.engine | Face engine facade, native inference wrapper |
ModelLoader | com.seeta6.demo.engine | Utility class that releases built-in models to filesDir/models |
5.2 Initialization and Resource Release
SeetaFaceEngine engine = new SeetaFaceEngine();
boolean ok = engine.init(modelDir, recognizerModel, flags);
| Method | Return value | Description |
|---|
init(String modelDir) | boolean | Default initialization (high-precision recognition model) |
init(String modelDir, String recognizerModel) | boolean | Initialization with a specified recognition model |
init(String modelDir, String recognizerModel, boolean[] flags) | boolean | Initialization with 14 model toggles; when flags is null, native falls back to enabling detection / 5-point / recognition |
isModelLoaded(int idx) | boolean | Query whether the specified model was actually loaded successfully (index 0~13) |
isReady() | boolean | Whether the engine is ready |
release() | void | Release native resources |
5.3 Face Detection and Feature Extraction
| Method | Return value | Description |
|---|
detect(int[] argb, int w, int h) | float[] | Detect faces in the image and return a face box array (every 4 values form a group x/y/width/height) |
extractFeature(int[] argb, int w, int h, int faceIndex) | float[] | Extract the feature vector of the specified face |
extractFeatureWithBox(int[] argb, int w, int h, float x, float y, float bw, float bh) | float[] | Extract features by the specified box |
extractFeatureMask(int[] argb, int w, int h, int faceIndex) | float[] | Feature extraction for mask-wearing scenarios |
compare(float[] f1, float[] f2) | float | Compare two feature sets and return similarity |
5.4 Liveness Detection
| Method | Return value | Description |
|---|
antiSpoofing(int[] argb, int w, int h, int faceIndex) | int | Single-frame liveness decision |
antiSpoofing2(int[] argb, int w, int h, int faceIndex) | int | Multi-frame video liveness decision |
antiSpoofing2WithBox(int[] argb, int w, int h, float x, float y, float bw, float bh) | int | Multi-frame liveness decision by the specified box |
spoofReset() | void | Reset the accumulated liveness state |
Liveness result constants: SPOOF_REAL = 0 (real person), SPOOF_FAKE = 1 (fake person), SPOOF_FUZZY = 2 (blurry image), SPOOF_DETECTING = 3 (detecting).
5.5 Face Attributes and Quality Assessment
| Method | Return value | Description |
|---|
predictAge(int[] argb, int w, int h, int faceIndex) | int | Age prediction |
predictGender(int[] argb, int w, int h, int faceIndex) | int | Gender prediction |
detectMask(int[] argb, int w, int h, int faceIndex) | float[] | Mask detection result |
predictMask(int[] argb, int w, int h, int faceIndex) | int | Mask state decision |
pose(int[] argb, int w, int h, int faceIndex) / predictPose(...) | float[] | Head pose angles (yaw / pitch / roll) |
landmark68(int[] argb, int w, int h, int faceIndex) | float[] | 68 landmarks |
landmark5(int[] argb, int w, int h, int faceIndex) | float[] | 5 landmarks |
predictQuality(int[] argb, int w, int h, int faceIndex) | float | Image quality score |
predictEyeState(int[] argb, int w, int h, int faceIndex) | int | Eye open/closed detection |
5.6 Model Toggle Constants and Names
| Constant | Index | Corresponding model |
|---|
M_DETECTOR | 0 | Face detection face_detector |
M_LANDMARK5 | 1 | 5 landmarks face_landmarker_pts5 |
M_LANDMARK68 | 2 | 68 landmarks face_landmarker_pts68 |
M_LANDMARK_MASK | 3 | Mask 5 landmarks face_landmarker_mask_pts5 |
M_RECOGNIZER | 4 | Feature extraction face_recognizer |
M_RECOGNIZER_MASK | 5 | Mask features face_recognizer_mask |
M_FAS_FIRST | 6 | Single-frame liveness fas_first |
M_FAS_SECOND | 7 | Video liveness fas_second |
M_MASK_DETECTOR | 8 | Mask detection mask_detector |
M_EYE_STATE | 9 | Eye open/closed eye_state |
M_AGE | 10 | Age age_predictor |
M_GENDER | 11 | Gender gender_predictor |
M_POSE | 12 | Pose estimation pose_estimation |
M_QUALITY | 13 | Quality assessment quality_lbn |
M_COUNT | 14 | Total number of models |
5.7 Model Extraction ModelLoader
| Method | Description |
|---|
ModelLoader.ensureModels(Context ctx) | Check whether the models under filesDir/models are complete; if missing or empty, copy all models from assets/models, and return the absolute path of the model directory |
6. Face Library FaceLibrary / FaceDbHelper
6.1 In-memory Search Library FaceLibrary
com.seeta6.demo.db.FaceLibrary: loads all face features for real-time 1:N comparison.
| Method | Return value | Description |
|---|
FaceLibrary.get() | FaceLibrary | Get the singleton (static method) |
reload(Context ctx) | void | Reload all face records from the local database into memory |
size() | int | Number of people in the library |
search(SeetaFaceEngine engine, float[] query) | MatchResult | Compare against all features in the library and return the highest-scoring hit (a candidate exists only when score > 0; the caller decides by threshold) |
searchTop(SeetaFaceEngine engine, float[] query, int n) | List<MatchResult> | Search the Top N most similar, in descending similarity order |
FaceLibrary.MatchResult: fields record (FaceDbHelper.FaceRecord), score (float, similarity).
6.2 Local Database FaceDbHelper
com.seeta6.demo.db.FaceDbHelper (SQLiteOpenHelper):
| Method | Return value | Description |
|---|
FaceDbHelper.get(Context ctx) | FaceDbHelper | Get the singleton (static method) |
insertFace(String id, String name, float[] feature, String avatarPath) | void | Insert one face record |
queryAll() | List<FaceRecord> | Query all face records |
count() | int | Number of people in the library |
deleteFace(String id) | void | Delete the specified face |
clearAll() | void | Clear all faces |
floatArrayToBytes(float[] f) | byte[] | Convert a feature array to bytes (static utility) |
bytesToFloatArray(byte[] b) | float[] | Convert bytes to a feature array (static utility) |
FaceDbHelper.FaceRecord fields:
| Field | Type | Description |
|---|
id | String | Face record ID |
name | String | Person name |
feature | float[] | Face feature vector |
createTime | long | Enrollment time |
avatarPath | String | Path to the face close-up avatar |
7. Camera Base Class and Recognition Pages
7.1 CameraBaseActivity Camera Capabilities
com.seeta6.demo.ui.CameraBaseActivity provides common capabilities for all camera pages:
- CameraX
Preview preview + ImageAnalysis per-frame analysis, with backpressure strategy KEEP_ONLY_LATEST. - YUV frame to Bitmap, EXIF / rotation angle correction, user angle and mirror control.
- Front/back camera switching, resolution selection, high-definition frame acquisition.
- Subclass implementations:
getTitleRes() (title resource), onFrame(Bitmap frame, int w, int h) (per-frame callback); onReady() can optionally be overridden.
Base class local cache keys (SharedPreferences live_prefs): angle, mirror, camera (front/back), camera_res, vflip, camera_index.
7.2 Behavior of Each Recognition Page
| Page | Behavior |
|---|
EnrollCameraActivity | Real-time loop detection: after pose, quality, occlusion and eye state continuously meet the criteria, automatically capture and show an enrollment dialog; a button can also be tapped for manual capture; features are extracted and written to the local face library |
Verify1v1Activity | Select a target face from the face library, compare it 1:1 with the live frame, and show similarity and whether it passed |
Search1NActivity | 1:N search of the live frame against the entire library, showing the matched person and similarity on a hit |
LivenessActivity | Video stream liveness detection, showing real person / fake person / blurry / detecting states |
TwoImageVerifyActivity | Select images A and B, and compare the similarity of the two faces offline |
FaceManageActivity | List the people in the library and enrollment times; long-press delete, add face, cloud sync, refresh list |
SettingsActivity | Threshold, liveness toggle, per-model toggles, recognition model selection, camera selection |
7.3 Enrollment Criteria (In-page Validation Rules)
| Check item | Passing standard |
|---|
| Head pose | Absolute values of yaw / pitch / roll ≤ 10°; may be relaxed to 15~20° under poor on-site conditions |
| Image quality | quality ≥ 0.66 (combined lighting, blur, noise) |
| Face occlusion | At most 1 keypoint in the eye/nose region is occluded |
| Eye open/closed | Both eyes must not be closed (eye_left, eye_right must not be 0) |
8. Built-in Files
8.1 Built-in AI Models (AAR assets/models/)
| File | Purpose |
|---|
face_detector.csta | Face detection |
face_landmarker_pts5.csta | 5-landmark localization |
face_landmarker_pts68.csta | 68-landmark localization |
face_landmarker_mask_pts5.csta | 5 landmarks for mask scenarios |
face_recognizer.csta | High-precision feature extraction |
face_recognizer_mask.csta | Feature extraction with a mask |
face_recognizer_light.csta | Lightweight feature extraction (selected by default) |
fas_first.csta | Single-frame liveness |
fas_second.csta | Multi-frame video liveness |
mask_detector.csta | Mask detection |
eye_state.csta | Eye open/closed detection |
age_predictor.csta | Age prediction |
gender_predictor.csta | Gender prediction |
pose_estimation.csta | Head pose estimation |
quality_lbn.csta | Image quality assessment |
The models are packaged with the AAR and automatically released to filesDir/models and loaded by ModelLoader.ensureModels on first launch, so integrators do not need to copy them manually. .csta resources are not compressed during packaging to speed up first-time extraction.
8.2 Bundled Native Runtime Libraries (AAR jni/arm64-v8a/)
| File | Description |
|---|
libseeta6_jni.so | Java bridge JNI library |
libtennis.so | Engine base library |
libomp.so | OpenMP runtime |
libSeetaAuthorize.so | Authorization verification library |
libSeetaFaceDetector600.so | Face detection library |
libSeetaFaceLandmarker600.so | Landmark localization library |
libSeetaFaceRecognizer610.so | Feature recognition library |
libSeetaFaceAntiSpoofingX600.so | Liveness detection library |
libSeetaAgePredictor600.so | Age prediction library |
libSeetaGenderPredictor600.so | Gender prediction library |
libSeetaMaskDetector200.so | Mask detection library |
libSeetaEyeStateDetector200.so | Eye open/closed detection library |
libSeetaPoseEstimation600.so | Pose estimation library |
libSeetaQualityAssessor300.so | Quality assessment library |
libSeetaFaceTracking600.so | Face tracking library |
libORZ_static.a in the source jniLibs directory is a static archive library; it does not participate in runtime loading and does not enter the AAR's jni/ directory.
8.3 Local Storage Directories (Generated at Runtime)
| Path | Content |
|---|
filesDir/models/ | Model copies released from assets |
filesDir/avatars/ | Face close-up avatars from cloud sync / enrollment |
seeta_face.db | Local face feature library (SQLite) |
9. Notes and FAQ
- ABI limitation: The built-in native libraries are provided only for
arm64-v8a; do not run recognition, verification or liveness features on devices with other CPU architectures. - First-load duration: There are many models, so the first entry into the main menu takes some time to load the engine; during loading, feature buttons that depend on the engine are disabled, which is normal.
- Threading requirements: Do not call time-consuming inference methods such as detection, feature extraction and comparison on the main thread; continuous frame analysis runs in the camera base class's single-threaded analysis pool.
- Resource release: When the app exits or recognition features are no longer used, call
SeetaFaceEngine.release() to release native resources; camera pages already stop the camera and release the analysis thread pool in onDestroy. - Activation gate: Before entering protected features in the main menu, the activation code is automatically verified online; when not activated or verification fails, the reason is shown and the user returns to the login / menu page.
- Verify the gateway address: The gateway address
http://192.168.0.91:5000 in the source is an on-site test value; before production deployment, change GatewayConfig.GATEWAY_BASE_URL to the actual gateway address; cleartext HTTP traffic is already allowed in the SDK manifest (usesCleartextTraffic="true"). - Network dependency: Activation code verification and cloud face sync require network access; local enrollment, 1:1, 1:N, liveness and two-image comparison can run offline once the engine is ready.
- Device ID: The device ID prefix is fixed as
android_, generated from ANDROID_ID and saved locally; after switching devices, the original activation code cannot be reused directly. - Keep package names unchanged: The SDK keeps the original package names
com.seeta6.demo.* and com.seeta.sdk.*; integrator code must not change the packages or rename these classes, to avoid breaking resource R classes and references. - Model selection: The settings page can switch between
face_recognizer.csta (high precision) and face_recognizer_light.csta (lightweight); the lightweight model is the default.
10. Class and Package Name Reference
10.1 Engine / Face Library / Gateway
| Public class | Fully qualified name | Purpose |
|---|
SeetaFaceEngine | com.seeta6.demo.engine.SeetaFaceEngine | Face engine facade |
ModelLoader | com.seeta6.demo.engine.ModelLoader | Built-in model extraction utility |
FaceLibrary | com.seeta6.demo.db.FaceLibrary | In-memory face search library |
FaceDbHelper | com.seeta6.demo.db.FaceDbHelper | Local face feature library (SQLite) |
GatewayConfig | com.seeta6.demo.gateway.GatewayConfig | Gateway address / device ID / activation code configuration |
GatewayApi | com.seeta6.demo.gateway.GatewayApi | Activation verification / cloud photo list APIs |
CloudFaceSyncHelper | com.seeta6.demo.gateway.CloudFaceSyncHelper | Cloud face sync helper |
10.2 Business Pages and Views
| Public class | Fully qualified name | Purpose |
|---|
MainActivity | com.seeta6.demo.ui.MainActivity | Main menu entry page |
EnrollCameraActivity | com.seeta6.demo.ui.EnrollCameraActivity | Face enrollment page |
Verify1v1Activity | com.seeta6.demo.ui.Verify1v1Activity | 1:1 verification page |
Search1NActivity | com.seeta6.demo.ui.Search1NActivity | 1:N search page |
LivenessActivity | com.seeta6.demo.ui.LivenessActivity | Liveness detection page |
TwoImageVerifyActivity | com.seeta6.demo.ui.TwoImageVerifyActivity | Two-image comparison page |
FaceManageActivity | com.seeta6.demo.ui.FaceManageActivity | Face library management page |
SettingsActivity | com.seeta6.demo.ui.SettingsActivity | Parameter settings page |
ActivationManageActivity | com.seeta6.demo.ui.ActivationManageActivity | Activation code management page |
ModelTestActivity | com.seeta6.demo.ui.ModelTestActivity | Model function test page |
CameraBaseActivity | com.seeta6.demo.ui.CameraBaseActivity | Camera base class |
FaceOverlayView | com.seeta6.demo.ui.FaceOverlayView | Face box overlay view |
10.3 Seeta JNI Binding Data Structures
| Class | Fully qualified name | Purpose |
|---|
FaceDetector | com.seeta.sdk.FaceDetector | Detection JNI binding (internal) |
FaceLandmarker | com.seeta.sdk.FaceLandmarker | Landmark JNI binding (internal) |
FaceRecognizer | com.seeta.sdk.FaceRecognizer | Recognition JNI binding (internal) |
FaceAntiSpoofing | com.seeta.sdk.FaceAntiSpoofing | Liveness JNI binding (internal) |
SeetaImageData | com.seeta.sdk.SeetaImageData | Image data structure |
SeetaModelSetting | com.seeta.sdk.SeetaModelSetting | Model loading configuration |
SeetaRect / SeetaPointF / SeetaSize / SeetaDevice | com.seeta.sdk.* | Rectangle / landmark / size / device enum structures |
Appendix: Artifacts and Build
| Item | Description |
|---|
| Debug artifact | seeta-face-sdk/build/outputs/aar/seeta-face-sdk-debug.aar |
| Module source directory | seeta-face-sdk/src/main/ |
| Module build script | seeta-face-sdk/build.gradle |
| Debug build command | ./gradlew :seeta-face-sdk:assembleDebug |
| Release build command | ./gradlew :seeta-face-sdk:assembleRelease |
| SDK namespace | com.seeta6.demo (consistent with the resource R class package name) |