Skip to content

TypeScript SDK Reference / BlinkDetectorConfig

Interface: BlinkDetectorConfig ​

Defining the object for configuring the blink detector

Properties ​

earDiffThreshold? ​

optional earDiffThreshold: number

The threshold value of the Eye Aspect Ratio Change. if the EAR change is larger then the threshold, a blink is detected.


enableBlinkDetector? ​

optional enableBlinkDetector: boolean

Enable or disable the blink detector. Default is true.


enableMovementDetection? ​

optional enableMovementDetection: boolean

Enable or disable movement detector. Default is true.


freezedTheshold? ​

optional freezedTheshold: number

The threshold duration for the freezed detection. If movement is zero for the threshold duration. It is detected as freezed.


minFps? ​

optional minFps: number

The minimum framerate for the blink detector. If the actual framerate is lower then the minimum framerate, the blink detector is disabled.


movementThreshold? ​

optional movementThreshold: number

The threshold value of the movement detector. If the movement is larger then the threshold, the movement started.


startMovementDurationThreshold? ​

optional startMovementDurationThreshold: number

The threshold duration of the start of a movement. If the movement started for the threshold duration, it is detected as started moving.


stopMovementDurationThreshold? ​

optional stopMovementDurationThreshold: number

The threshold duration of the stop of a movement. If the movement stopped for the threshold duration, it is detected as stopped moving.