Skip to content

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)

License

Notifications You must be signed in to change notification settings

crazyai-kby/Face-Recognition-SDK-Javascript

 
 

Repository files navigation

face-recognition-plugin

Awesome Badge Star Badge issue pr

How it works

demo.mp4

Installation

npm install face-recognition-plugin

Table of Contents

Examples

  • Vue3
cd example/vue
npm install face-recognition-plugin
node post-install.js
npm run dev

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

www.prenes.org

www.prenes.org

www.prenes.org

www.prenes.org

About

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.5%
  • Vue 19.4%
  • CSS 1.2%
  • HTML 0.9%