Skip to content

TypeScript SDK Reference / BlinkDetectorConfig

Interface: BlinkDetectorConfig

Defining the object for configuring the blink detector

Properties

earDiffThreshold?

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?

enableBlinkDetector?: boolean

Enable or disable the blink detector. Default is true.


enableMovementDetection?

enableMovementDetection?: boolean

Enable or disable movement detector. Default is true.


freezedTheshold?

freezedTheshold?: number

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


minFps?

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?

movementThreshold?: number

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


startMovementDurationThreshold?

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?

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.