Some small updates to the INSPEC design – it now has a built-in battery and a flex cable as the proximity of the LEDs was interfering with the image quality.
Category: Halovision
Added facial detection so that it only looks for movements within a region where a face was detected.
The file haarcascade.xml can be replaced with one of these or a custom cascade classifier for better performance.
The latest version of the Halovision device; code-named INSPEC. A standalone infrared camera with a processor powerful enough to run the latest machine vision algorithms that flash LEDs when eye-movement patterns are detected after a long enough still phase. The camera case is 3D printed and installed on a flexible tripod to get a good angle. It records GIFs along with BMP stills that can be viewed the next morning via micro-USB cable.

I have been getting better results with a different night-vision camera with built-in infrared lights and zoom:


Finally have the standalone version ready for some test runs on my beautiful wife!

Weeded out some more false negatives – if there is a large movement, it waits 10 seconds before counting eye movements again.
Tweaked the algorithm to weed out some more false negatives.
Improved the algorithm… it was missing REM episodes where the eye movements stopped for more than 5 seconds before the stairway to heaven was reached.
Episodes like in the following minute, where there is a 10 second break in eye movements around the 30 second mark, will now keep counting and trigger the audio tracks:
Episodes like in the following minute, where there is a 10 second break in eye movements around the 30 second mark, will now keep counting and trigger the audio tracks:

Ensured that the video feed is always top-most.
Added an option for halovision devices where the headband used to be listed and the webcams / built-in cameras are listed.

