README.md 2.14 KB
Newer Older
Chokmongkhon Jansanom committed
1 2 3 4
# myhr_facescan

Connect luxand made easy.

5
### Face enrollment
Chokmongkhon Jansanom committed
6

7 8 9 10 11 12 13 14
```
EnrollFace(
    licenseKey: Env.luxandLicenseKey,
    onFinish: (templates) {
        Get.off(LivenessPage(templates: templates));
    },
)
```
Chokmongkhon Jansanom committed
15

16 17 18 19 20 21
| Parameter Name         | Description                                             | Default value         |
|------------------------|---------------------------------------------------------|-----------------------|
| licenseKey             | Luxand license key                                      | None                  |
| imageStreamMilliSecond | Capture image every this value and send image to luxand | 100 ms                |
| templateCount          | Total template for this enrollment                       | 3                     |
| topMessage             | Display message that show on top of face rectangle      | 'Please touch screen' |
Chokmongkhon Jansanom committed
22

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

### Active liveness detection

```
ActiveLivenessVerifier(
    licenseKey: Env.luxandLicenseKey,
    onFinish: (success, template) {},
)
```

| Parameter Name         | Description                                                                                                                                 | Default value |
|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| licenseKey             | Luxand license key                                                                                                                          | None          |
| imageStreamMilliSecond | Capture image every this value and send image to luxand                                                                                     | 200 ms        |
| failAcceptableInSecond | Widget will finish and return false if luxand cannot detect face in picture in 1 / imageStreamInMillisecond / 1000 x failAcceptableInSecond | 3 s           |

### Matching face template
:warning: this widget can match template but not yet send data to user (in development).

```
MatchTemplateScanner(
    licenseKey: Env.luxandLicenseKey,
    templates: con.templates,
    onFinish: (success, template) {},
)
```