Iris Recognition on Zybo

by e-radu in Circuits > Computers

15797 Views, 48 Favorites, 0 Comments

Iris Recognition on Zybo

55326a51ec8d8308bb000021.jpeg

This Iris recognition tutorial for Zybo will provide instructions on how to modify a consumer camera (webcam) for infrared acquisition and prepare Zybo board for running the Iris recognition app.

Required materials:

Zybo board;

Consumer camera(webcam);

USB hub;

VGA or HDMI monitor;

Keyboard;

Latest Xillinux release from Xillybus;

Preparing the Webcam

ic_hd3000v2_large.jpg

Remove the webcams front cover to access the lenses.

Remove IR Filter

DSC_0117.JPG

Unscrew the lens from the sensor and remove the IR filter (red tinted glass) found on the inner part of the lenses.

Adding IR LEDs

DSC_0120.JPG

To enhance image quality two 850 nm Infrared LEDs must be added.

Make 2 holes in the front cover of the webcam and insert the LEDs.

Use an old USB cable for power. Solder the LEDs to the +5v volts and Ground wire of the USB cable. Batteries can be used instead of the USB cable.

Block Visible Light

DSC_0115.JPG

Next, we must block all visible light between the eye and the camera. A plastic pipe can't be used for this step. The length of the cover is given by the focal point of the camera after removing the IR filter.

Place the cover on the camera.

Test Camera

DSC_0112.JPG

Connect the camera to a PC/MAC and run a video app. Test if the image is in focus and well illuminated. Adjust the length of the cover accordingly.

Preparing Zybo Board

DSC_0127.JPG

Head to Xillybus and download the boot partition kit and the SD image.

A well documented tutorial is presented here which will guide you through the installation of Linux on the Zybo board.

Once done, insert the SD Card in the board and set JP5 to boot from SD.

Connect All Peripherals

DSC_0130.JPG

Connect the camera and the keyboard/mouse to the UBS hub.

Connect the USB hub to the ZYBO OTG USB port.

Connect the VGA/HDMI monitor.

Connect the Ethernet cable.

Connect the Power Supply.

Booting Up Linux

DSC_0132.JPG

Next power on the Zybo board and wait for linux to boot up.

Type startx to access the graphical interface.

Installing SDL Library

libsdl.png
libsdl.png

Run apt-get install libsdl2-dev

If you don't have a package manager installed go to SDL2 website and download the latest source.

Unzip the archive.

tar zxfv SDL2-2.0.3.tar.gz

Run ./configure && make all

Wait for make to finnish and run:

make install

Getting the Iris Recognition App

iris.png

The latest source code can be found on GITHUB.

git clone https://github.com/e-radu/irisRec

make

Running the App

run.png

For checking a person against the database use:

./irisRec_v1 -d /dev/videoX , where X is the id of the connected camera(usually 0)

For adding a person to the database use:

./irisRev_v1 -d /dev/videoX -a "user_name"


Demo

Iris Recognition Demo