Makeroni / Eye-of-Horus

Open Source Eye Tracking System
70 stars 23 forks source link

Eye-of-Horus

Eye of Horus is an open source platform to control any device just looking at them. The project (hardware & software) was built from scratch during the Space Apps Zaragoza to solve the Space Wearables challenge. This device could help engineers from NASA and astronauts on their tasks. The system combines eye tracking with a frontal camera to know where you are looking. The target devices are identified using light beacons (similar to LiFi technology) and controlled with wireless protocols.

Logo Interacting with objects just looking at them has always been a dream for humans.

NASA engineers doing lab and field work often need to operate with computers and other tools but in some situations this interaction is not easy and may cause them to interrupt their activities. The absence of gravity hinders the mobility of the astronauts inside the station and may affect their work and safety. We accepted the Space Apps challenge for creating a wearable accessory that could help people interacting with computers, electronic devices and also everyday things just looking at them.

  1. Challenge: The challenge is to design and build a wearable accessory that could be useful for the NASA ground engineers and also astronauts in their lab or field activities. The device would facilitate their work through a natural interface so they can do different things without using their hands. Thanks to it, they will be able, for instance, to interact with a distant control panel just looking at it.

  2. Wearables: Wearable refers to the set of electronic devices which are incorporated in any part of our body that continuously interact with the user and other devices in order to perform a specific function. Smart watches, sports shoes built-in with GPS and bracelets that monitor our health are examples of this technology which is increasingly present in our lives. One of the best known wearables is Google Glass. Our device could be designed as an accessory to use with Google Glass to simplify the hardware and reduce its costs.

  3. 3D printing: The device must be durable and made from a non-brittle material. Due to this, we have decided to make it using 3D printers. This technology is cheap and easy to build so the device could be replicated worldwide or even in the space. NASA engineers could improve the device in their labs in a minute and astronauts could produce or fix it using the 3D printers at the station.

  4. Open Source: We believe open knowledge is contributing to a better world and Eye of Horus is designed as an open source platform, both hardware and software. The schematics and the implemented software can be found in the project Github repository, allowing people to modify, improve and redistribute their contributions.

  5. Internet of Things: The Internet of Things (IoT) is a growing trend that extends internet connectivity beyond traditional devices like computers, smartphones and tablets to a diverse range of devices and everyday objects. This revolution increases the possibilities of the Eye of Horus allowing you to control the light level of your kitchen or turning on the coffee machine just using your vision. Therefore, the device must have built-in wireless capabilities, which is the base of IoT.

  6. Low Cost Solution: We have developed a simple and low cost solution to detect and identify the objects in our surrounding. Infrared leds are used as light beacons (similar to LiFi technology) emitting different frequency pulses for each device (PC, camera, TV, microwave...). The frontal camera of our dispositive detects this light, differentiating and communicating the objects when you look at them.

APPLICATIONS

Eye of Horus lets you interact with devices and objects just looking at them. The main application in the current challenge is to improve the work and safety of the NASA ground engineers and astronauts but this device could also make common people's lives easier:

HARDWARE

The hardware development efforts were split in two different branches:

Rubén Martín, member of Eye of Horus:

The hardware is HARD!

3D Printing

The casing was designed to integrate the electronic components of the system. It consists of several 3D printed pieces to hold and position the camera, the infrared lights and allocate the electronics and batteries. The complete 3D model can be viewed online in the following link.

We started with a simple design that has been improved to the current version:

Designed frame and casing

Electronic design

This part corresponds to the wireless system that captures and analyzes the eye pupil images under infrared illumination.

During the development process, several iterations have been made improving the prototype features and finally designing a printed circuit board (PCB) that could be manufactured with a low cost.

Prototype 1: A first prototype was built over the table with no case to test hardware and software.

Prototype image

The parts used in the different prototypes are common:

Removing camera filter

Prototype 2: Once the basic software and hardware was validated, a second version was developed to complete and integrate the system using the 3D printing models of the first version of the casing.

Prototype image

The system was modified to overcome the following hardware problems:

All electronics components of the prototype were replicated in the second version to get a better finish of the product.

Prototype image

Prototype image

The assembly is the result of the first model of the product. It could be an addition to Google Glass using its front camera like a data gathering system of the physical world.

Prototype 3: On this part, a printed circuit board was designed based on the information obtained from the previous prototypes. It would allows a low cost and replicable electronic device.

Designed printed circuit boards

This is a open source project, so all schematics are available. Anyone can download, edit and manufacture the device.

A prototype was designed using infrared flashlight pulses with adjustable frequency. This light, only visible in the front camera thanks to a band-pass filter, allow to differentiate the targeted devices.

Light beacon device

The system also integrates a bluetooth low energy (BLE) module which can receive requests from other devices. In our case, a computer linked with other BLE module is in charge of sending the turn on/off request when the main device indicates that the user is in front of the object and the eye tracking reveals that is looking at the beacon (in the example it would be a light lamp).

Infrared images

The integrated components in this prototypes are:

SOFTWARE

Our final goal is to obtain an autonomous device but during the weekend the software development was divided in two blocks: server and client. Server software is running inside the Eye of Horus while the client is running on a laptop computer.

Server

Testing OpenWrt in the Vocore

This part of the software is executed in the VoCore module, a coin sized linux computer suitable for many applications. This module acts as a server running OpenWrt, a Linux distribution for embedded devices.

The server software is in charge of:

Client

HTML5 eye interface

This part is in charge of:

The video stream in the client was processed in real time using HTML5. A segmentation library was developed from scratch to threshold the images and analyze its morphology to detect the pupil and compute its center of mass.

Developed real time image segmentation library

At this point, the user has a mouse controlled by his eye and can interact with any 3rd party software installed in the computer.

A demo of the client sofware recognizing the center of the pupil can be seen in our website. You can play with the range selectors in order to see how it affects the recognition and reach optimal calibration when only the pupil is highlighted. The system will consider the center of gravity of the highlighted area as the coordinates where the eye is pointing. Calibration is very important and it may depend of the illumination. Thats the reason why the Eye of Horus has 4 leds illuminating the area of the eye. The pupil detection system has proven to be quite robust with the illumination provided by the device.

DEMOS

Here you can find some examples of use:

Eye of Horus - Open Source Eye Assistance

Eye of Horus Demo 1

Eye of Horus Demo 2

Eye of Horus Demo 3

Eye of Horus Demo 4

FUTURE

The most important part of this project is the viability and profitability. We believe this project is highly sustainable. We can create a crowdfunding campaign using all the documentation.

Borja Latorre, member of Eye of Horus:

Never think about the future because it comes soon.

The future

We have the support of the City of Zaragoza and other incubators project to move forward. We also collaborate with numerous technological associations in our city. We have succeeded in 48 hours a functional prototype to show our system. It is easy to build, cheap and technological.

Jose Luis Berrocal, member of Eye of Horus

People say that space is unlimited. We also believe that our project has no limits.

OUR SPACE APPS WEEKEND:

During this amazing weekend we met very nice people, participated in one of the most important experiences of our lives, learning at every moment and developing after 48 hours of hard work a final product.

Our space apps weekend

Luis Martín, member of Eye of Horus

A unique experience, an amazing team and an impressive project.

Here you can see our weekend and several milestones that have marked the achievement of the project:

ABOUT US

The four members of the team have different technological backgrounds as electronic engineering, physics and computer science but we all share passion for making all kind of inventions mixing any available technology.

We are all members of MAKERONI LABS, a non profit that was born in Zaragoza in 2012 following the MAKER movement that is currently shaking the world.

Its main purposes are:

To fulfill these purposes are working on:

Makeroni Team

We did this Open Source project for the Space Apps Challenge 2015. We hope you will like it, use it for your inventions and in any way contribute to the project!

MORE INFO

The Eye Of Horus project in our site: Eye of Horus Project