@liveness/engine
v1.0.1
Published
Core computer vision logic and mathematical utilities for Active Liveness Detection.
Downloads
335
Readme
@liveness/engine
Core computer vision logic and mathematical utilities for Active Liveness Detection. This package leverages MediaPipe Face Mesh and TensorFlow.js to provide low-level detection capabilities.
Installation
npm install @liveness/engineFeatures
- Face Mesh Integration: Uses MediaPipe for accurate 3D facial landmark detection.
- Mathematical Utilities: EAR (Eye Aspect Ratio), Laplacian Variance (Texture Analysis), Depth Variance, and FFT (Moire Detection).
- Configuration Driven: Highly customizable detection parameters.
Usage
This package is intended for use within the @liveness/sdk or for custom liveness detection implementations.
import { LivenessEngine } from '@liveness/engine';
const engine = new LivenessEngine({
onSuccess: (data) => console.log('Liveness verified', data),
onFailure: (error) => console.error('Verification failed', error)
});License
MIT
