biometrickz-liveness-detection

0.1.0 • Public • Published

Functions

loadModels()Promise.<void>

Loading models for face detection and landmarks

getChoices()Array.<Object>
drawOutline(color)

Draws outline circle of video stream

getRadians(degrees)number

Helper method for drawOutline

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

detection()

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

takePhoto()

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

convertToFile(dataURL, filename)File

Helper method for takePhoto

calculateFacePosition(detections)number

Helper method for detection method

getMeanPosition(position)Array.<number>

Helper method for calculateFacePosition method

stopVideoStream()

Stops video stream and clear interval

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

Param Default
color rgba(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

Readme

Keywords

none

Package Sidebar

Install

npm i biometrickz-liveness-detection

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

8.17 MB

Total Files

33

Last publish

Collaborators

  • hikovsky