biometry-react-components 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,12 +91,16 @@ Records video with facial guidance overlay. This component could be used for [Pr
|
|
|
91
91
|
import { FaceRecorder } from 'biometry-react-components';
|
|
92
92
|
|
|
93
93
|
function FaceRecorder() {
|
|
94
|
-
const handleCapture = (
|
|
95
|
-
console.log('Captured video:',
|
|
94
|
+
const handleCapture = (video: File, face: File, audio: File, phrase: string) => {
|
|
95
|
+
console.log('Captured video:', video);
|
|
96
|
+
console.log('Captured face image:', face);
|
|
97
|
+
console.log('Captured audio:', audio);
|
|
96
98
|
console.log('Phrase:', phrase);
|
|
97
|
-
// Send
|
|
99
|
+
// Send files to your endpoint that will process the biometric data
|
|
98
100
|
// or
|
|
99
|
-
// const response = await sdk.processVideo(
|
|
101
|
+
// const response = await sdk.processVideo(video, phrase, userFullName);
|
|
102
|
+
// const faceResponse = await sdk.enrollFace(face, userFullName);
|
|
103
|
+
// const voiceResponse = await sdk.enrollVoice(audio, userFullName);
|
|
100
104
|
};
|
|
101
105
|
|
|
102
106
|
return <FaceRecorder onCapture={handleCapture} />;
|
|
@@ -107,7 +111,7 @@ function FaceRecorder() {
|
|
|
107
111
|
|
|
108
112
|
| Prop | Type | Default | Description |
|
|
109
113
|
|------|------|---------|-------------|
|
|
110
|
-
| `onCapture` | `(
|
|
114
|
+
| `onCapture` | `(video: File, face: File, audio: File, phrase: string) => void` | **required** | Callback with captured video file, face image file, audio file, and phrase |
|
|
111
115
|
| `rectWidth` | `number` | `360` | Width of camera area |
|
|
112
116
|
| `rectHeight` | `number` | `576` | Height of camera area |
|
|
113
117
|
| `className` | `string` | - | Custom CSS class |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biometry-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React UI component library for capturing high-quality biometric data (voice, face, documents, video) to facilitate integration with Biometry services",
|
|
6
6
|
"main": "dist/index.js",
|