Story

All Posts

  • Eye State Detection in ML.NET - Part 1/2

    June 22, 2025 10 minutes read
    Eye State Detection in ML.NET - Part 1/2 header image

    This two-part blog series explores usage of ONNX models in the ML.NET framework to build a pipeline for detecting eye states (open/closed) in images and video frames captured via webcams. Part one (this post) focuses on leveraging the YuNet Face Detection model to identify and crop the most prominent face.

  • Eye State Detection in ML.NET - Part 2/2

    June 22, 2025 10 minutes read
    Eye State Detection in ML.NET - Part 2/2 header image

    This two-part blog series explores usage of ONNX models in the ML.NET framework to build a pipeline for detecting eye states (open/closed) in images and video frames captured via webcams. Part two (this blog) focuses on utilizing the MediaPipe Face Landmarks Detection model to identify landmarks of left and right eyes in the cropped image, and compute Eye Aspect Ratio (EAR) to detect eye state.

© 2025 Sandip Dahal. All rights reserved.