0.1.0 • Published 2 years ago

biometrickz-liveness-detection v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Functions

loadModels() ⇒ Promise.<void>

Loading models for face detection and landmarks

Kind: global function

getChoices() ⇒ Array.<Object>

Kind: global function

drawOutline(color)

Draws outline circle of video stream

Kind: global function

ParamDefault
colorrgba(0, 0, 0, 0.15)

getRadians(degrees) ⇒ number

Helper method for drawOutline

Kind: global function

Param
degrees

startVideoStream()

Starts video stream (access to video) and adding event listener to video tag setting interval to call every * sec method for liveness and face detection

Kind: global function

detection()

Main method that detect user face and trying to calculate to which side user is watching and sending photos to back

Kind: global function

takePhoto()

taking photo of user's face and send it to back

Kind: global function

convertToFile(dataURL, filename) ⇒ File

Helper method for takePhoto

Kind: global function

Param
dataURL
filename

calculateFacePosition(detections) ⇒ number

Helper method for detection method

Kind: global function

Param
detections

getMeanPosition(position) ⇒ Array.<number>

Helper method for calculateFacePosition method

Kind: global function

Param
position

stopVideoStream()

Stops video stream and clear interval

Kind: global function