Hello everybody,
I started calculating blink frequency for determining the user fatigue. Here is my code.
if (gd.RightValidity == 4 && gd.LeftValidity == 4)
{
blinkTimer.Start(); // Stopwatch blinkTimer = new Stopwatch();
}
else
{
blinkTimer.Stop();
if (blinkTimer.ElapsedMilliseconds >= 100 && blinkTimer.ElapsedMilliseconds <= 400)
{
eyeblinks++;
}
blinkTimer.Reset();
}
Please let me know, Is this correct way of calculating using stopwatch.
Also, Could you please tell me how to calculate the blink Duration i.e time required to Close the eyes?
Thank you so much in advance.