open-index/open-npm huggingface dataset:
npm package: @kaelthas/react-native-ksface
Description: 1. 325、804等硬件激活设备 ```
Latest version: 0.0.1

#<center>旷视人脸识别</center>


## 程序配置
1. 325、804等硬件激活设备
```
   
      //旷视人脸-正元定制
    implementation files("./libs/FacePassAndroidSDK-month-release.aar")

    //旷视人脸-软件激活
    //implementation files("./libs/FacePassAndroidSDK-McvSafe-release.aar")

    //旷视人脸-公共部分
    implementation files("./libs/mcvSafe.v1.2.2.aar")

   ```
2. 其他设备
```angular2html

    //旷视人脸-正元定制
    //implementation files("./libs/FacePassAndroidSDK-month-release.aar")

    //旷视人脸-软件激活
    implementation files("./libs/FacePassAndroidSDK-McvSafe-release.aar")

    //旷视人脸-公共部分
    implementation files("./libs/mcvSafe.v1.2.2.aar")

```

## 使用

1. 设置参数
 ```js
import KSFaceView, {KSFace} from 'react-native-ksface'
KSFace.setConfig({
   isCross: false,
   cameraFacingFront: false,
   livenessEnabled: false,
   cameraPreviewRotation: 90,
   faceRotation: 90,
   faceMinThreshold: 40,
   searchThreshold: 0.7,
})
```

|参数|说明|默认值|
|----|----|----|
|isCross              |镜像展示                     |false|
|cameraFacingFront    |是否使用前置摄像头             |false|
|livenessEnabled      |是否开启活体检测               |false|
|cameraPreviewRotation|画面预览角度                  |90|
|faceRotation         |算法角度                     |90|
|faceMinThreshold     |人脸识别距离，数值越小识别距离越远|40|
|maxFailCount         |人脸检测失败次数，到达次数后返回识别失败|8|
|searchThreshold      |算法最小相似度                |0.7|

2. 激活程序
   1. 325、804、327
   ```js
   KSFace.checkAuthStatusByHardware(result=>{
  
   })
   ```
   2. 其他设备
   ```js
   KSFace.checkAuthStatus("cert", "activateCode",result=>{

   })
   ```
3. 初始化
   ```js
   KSFace.init()
   ```