Code Monkey home page Code Monkey logo

eye-iris-automatic-detection's Introduction

Eye-Iris-Automatic-Detection

C++ Eye Iris Automatic Detection based on entropy & Iris color score using openCV

An Automatic Eye Iris Detection Method Main phases:

1- Image Preprocessing 2- Selecting Window sizes 3- Entropy Score 4 - Iris Darkness Score 5- Hypothesis Calculation 6- Testing results on a dataset

1- Image Preprocessing
Converting images into grayscale and passing them into Viola & Jones face detector which uses haar-like features so we can focus on our area of interest (faces).

2- Selecting Window sizes:
We set up windows to scan the image, where the iris radius r is approx third the face width. w = 2r + deltaX , h = 2r + deltaY. where deltaX ,deltaY are arbitrary constants added to our random windows. we select the best k windows in terms of entropy score.

3- Entropy Score Entropy is a good measure for uncertainty it's continuous, a strictly convex function, which reaches a maximum value when all probabilities are equal, and maximized in a uniform probability distribution context. Shannon introduced an important concept which is the entropy, in the form H(S)= -∑_(i=1)^n▒〖p(xi)〗 log_2⁡〖p(xi)〗 H score = (Entropy(wi))/(∑_(i=1)^n▒〖Entropy(wi)〗) , where wi is the ith window

4 - Iris Darkness Score
we sum up the pixel values within the range of radius r from the eye center to calculate our iris darkness score C score = 1- (Darkness(wi))/(∑_(i=1)^n▒〖Darkness(wi)〗)

5- Hypothesis Calculation
Our Hypothesis is based on the summation of the two scores T score = H score + C score and we will select the center of the highest scored window as our our iris center.

6- Testing results on a dataset
Our Automatic Iris detector accuracy will be tested using a labeled dataset

eye-iris-automatic-detection's People

Contributors

osama-afifi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.