elucideye / drishti

Real time eye tracking for embedded and mobile devices.
BSD 3-Clause "New" or "Revised" License
390 stars 82 forks source link

Commandline examples for eye detection from camera #730

Open MyraBaba opened 5 years ago

MyraBaba commented 5 years ago

Hi,

We just found your library and want to have a test drive to our current projects.

succesfully compile..

its asking lot of args from command line.

Can you provide us an example command line which is using camera cap(0) and detecting eyes ?

best

headupinclouds commented 5 years ago

There are a set of internal tools in src/app. The drishti-hci app in src/app/hci is close to what you want and is documented in the readme here:

https://github.com/elucideye/drishti/tree/master/src/app/hci

But... that has been replaced with a more recent cross platform facefilter application shown here:

https://github.com/elucideye/drishti/blob/master/src/examples/facefilter/app/facefilter/desktop/face.cpp

The command line arguments are very similar. The facefilter app builds on the installed public drishti package SDK, and includes iOS and Android versions.

This stuff is mostly geared towards real time performance on mobile platforms, leveraging a fast implementation of the ACF detector from Piotr's Toolbox. It runs optimized face detection at low resolution, then coarse landmarks (for eye localization), followed by eye model refinement.

Can you provide us an example command line which is using camera cap(0) and detecting eyes

If you literally just want to detect eyes on a desktop (assuming high res images) you could use this acf eye model with the ACF lib directly. If you are running on a desktop and have a GPU, then this eye model w/ lib's mmod detector might work well.

MyraBaba commented 5 years ago

We will going to use and test it our raspberry Pi 3B+ boards. We have EMR ambulances and unfortunatelly sometimes they are working over hours.

So I wonder that I can make them an warning when their eyelids closed / sleeping

Before to dive in the codes I just want to test with and command line argument for Cam(0) in raspi