Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maherzaidoune/react-native-facetec
facetec sdk react-native
https://github.com/maherzaidoune/react-native-facetec
android facetec facial-recognition ios react-native sdk
Last synced: 3 days ago
JSON representation
facetec sdk react-native
- Host: GitHub
- URL: https://github.com/maherzaidoune/react-native-facetec
- Owner: maherzaidoune
- License: mit
- Created: 2020-08-04T18:48:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T18:41:06.000Z (almost 2 years ago)
- Last Synced: 2024-08-08T19:56:32.245Z (3 months ago)
- Topics: android, facetec, facial-recognition, ios, react-native, sdk
- Language: Java
- Homepage:
- Size: 15.8 MB
- Stars: 5
- Watchers: 1
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-facetec
facetec module bridge
## Installation
```sh
npm install react-native-facetec
```## Usage
```js
import {
init,
enroll,
authenticateUser,
livenessCheck,
} from 'react-native-facetec';init(
() => {
console.log('init success');
},
() => console.log('init fail')
);enroll(
'USER_ID',
(resp) => {
//JSON.parse(resp)
console.log('enroll ' + resp);
},
(error) => console.log('enroll ' + error)
);livenessCheck(
(resp) => {
console.log('livenessCheck ' + resp);
},
(error) => console.log('livenessCheck ' + error)
)authenticateUser(
'USER_ID',
(resp) => {
console.log('authenticateUser ' + resp);
},
(error) => console.log('authenticateUser ' + error)
)CheckId(
'USER_ID',
(resp) => {
console.log('CheckId ' + resp);
let data = JSON.parse(params);
data.FrontImagesCompressedBase64 // front id image data:image/jpeg;base64
data.BackImagesCompressedBase64 // back id image data:image/jpeg;base64
},
(error) => console.log('CheckId ' + error)
)
```
## config
minSdkVersion = 19```java
//Add your SDK key to ZoomGlobalState.java
public static String DeviceLicenseKeyIdentifier = "YOUR_API_KEY";
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
## TODO
IOS