FaceRecognition-LivenessDetection-Javascript
FaceRecognition-LivenessDetection-Javascript copied to clipboard
Face Recognition Javascript SDK using ONNX Runtime Web and OpenCV.js (Face Detection, Face Landmarks, Face Liveness, Face Pose, Face Expression, Eye Closeness, Age, Gender and Face Recognition)
Installation
npm install faceplugin
Table of Contents
- Face Detection
- Face Landmark Extraction
- Face Liveness Detection
- Face Expression Detection
- Face Pose Estimation
- Eye Closeness Detection
- Gender Detection
- Age Detection
- Face Feature Embedding
Examples
https://github.com/kby-ai/FaceRecognition-Javascript/assets/125717930/551b6964-0fef-4483-85a7-76792c0f3b56
[Please subscribe on Youtube channel]
Documentation
Here are some useful documentation
Face Detection
Load detection model
loadDetectionModel()
Detect face in the image
detectFace(session, canvas_id)
Face Landmark Extraction
Load landmark extraction model
loadLandmarkModel()
Extract face landmark in the image using detection result
predictLandmark(session, canvas_id, bbox)
Face Liveness Detection
Load liveness detection model
loadLivenessModel()
Detect face liveness in the image using detection result. (Anti-spoofing)
predictLiveness(session, canvas_id, bbox)
Face Expression Detection
Load expression detection model
loadExpressionModel()
Detect face expression
predictExpression(session, canvas_id, bbox)
Face Pose Estimation
Load pose estimation model
loadPoseModel()
Predict facial pose
predictPose(session, canvas_id, bbox, question)
Eye Closeness Detection
Load eye closeness model
loadEyeModel()
Predict eye closeness
predictEye(session, canvas_id, landmark)
Gender Detection
Load gender detection model
loadGenderModel()
Predict gender using face image
predictGender(session, canvas_id, landmark)
Age Detection
Load age detection model
loadAgeModel()
Predict age using face image
predictAge(session, canvas_id, landmark)
Face Recognition
Load feature extraction model
loadFeatureModel()
Extract face feature vector in 512 dimension
extractFeature(session, canvas_id, landmarks)
Contact
If you want to get better model, please contact us