AISU SI-M1 Face SDK
xin.aisu.si-m1.face is a Unity SDK for AISU SI-M1 face recognition modules. It provides serial communication, packet parsing, module lifecycle management, face verification, face enrollment, user management, image capture, QR code, UVC parameters, mock transport, and sample scenes.
中文说明见 README.zh-CN.md。
Package Info
| Item | Value |
|---|---|
| Package Name | xin.aisu.si-m1.face |
| Display Name | AISU SI-M1 Face SDK |
| Runtime Assembly | Aisu.SIM1.Face.Runtime.dll |
| Editor Assembly | Aisu.SIM1.Face.Editor.dll |
| Unity Version | 2021.3 or newer |
| Settings Asset | Assets/Resources/AISU/SI-M1 Face SDK/FaceSdkSettings.asset |
Quick Start
- Open
AISU/SI-M1 Face SDK/Settings. - Configure serial port, baud rate, mock mode, auto verify, and logging options.
- Add one
FaceModuleManagerto the scene and bind the settings asset. - Call SDK services through
FaceModuleManager.
using Aisu.SIM1.Face.Core;
using UnityEngine;
public sealed class FaceExample : MonoBehaviour
{
[SerializeField] private FaceModuleManager manager;
private async void Start()
{
manager.Open();
await manager.WaitReadyAsync();
var version = await manager.Basic.GetVersionAsync();
Debug.Log("SI-M1 version: " + version);
}
private void OnApplicationQuit()
{
manager?.Close();
}
}
Samples
Open AISU/SI-M1 Face SDK/Settings and click Import Demos, then open the imported scenes under Assets/Samples.
Assets/Samples/AISU SI-M1 Face SDK/SIM1FaceDemo/Scenes/FaceModuleDemo.unity
Assets/Samples/AISU SI-M1 Face SDK/FaceDetectionDemo/Scenes/FaceDetectionDemo.unity
Do not open sample scenes directly from Packages/xin.aisu.si-m1.face/Samples, because Git UPM package contents are read-only in Unity.
Use SI-M1 Face Demo for full SDK command testing. Use Face Detection Demo for a compact camera, serial, enrollment, verification, and user-list workflow.
Documentation
| English | Chinese |
|---|---|
| Quick Start | 快速开始 |
| Configuration | 配置说明 |
| API Reference | API 参考 |
| Mock and Testing | Mock 与测试 |
| Demo UI | Demo UI |
Runtime Notes
- Keep one
FaceModuleManagerin each scene. - Use
Close()orCloseAsync()when leaving a scene or quitting the app. - When auto verify is enabled, use
StopFaceOperationAsync()before enrollment, user management, QR scan, image capture, or other exclusive operations.
Description
Languages
C#
100%