Giter Site home page Giter Site logo

iris-recognition-on-ubiris-v2's Introduction

Iris-Recognition-on-Ubiris-v2

Definition

  • This project represents a new iris recognition technique that detects and classify the iris images efficiently with high accuracy. The iris recognition model is beginning by eye detection process then the iris detection process takes place which detects the iris inside the eyes then iris segmentation process gets iris images that will be saved and used in the last process which is responsible for iris classification using convolutional neural network.

  • The dataset used in this project is Ubiris version 2 which contains 1214 images from different 214 classes(v2).

  • The model uses a pre-trained convolutional neural network(CNN) model DenseNet-201 in the last process of iris classification.

Description

  • eye_detection.py: this file represents the first process in this project where it's responsible for eye detection. This stage will ensure that the images contain eyes.
  • eyes_iris_detection.py: this file represents the second process where it's responsible for iris detection. The model takes the images detected in the last phase and it ensures that there is an iris inside the eyes the image will pass to the next step if it passed this step.
  • iris_segmentation.py: this file represents the third process where the iris features are extracted.
  • iris_extraction.py: this file combines all the above files in on file. it begins by eye detection then iris segmentation and saves the output that will be used in the iris classification process.
  • iris_classification. ipynb: this file represents the last process which is iris classification. this file uses pre-trained DenseNet-201 to classify between 214 different classes in ubiris.v2 dataset.
  • image_aug.py: this file used for image augmentation but it's not necessary to use it as you can run the project without using this file.

How to run this project ?

Dependencies

install this libraries:

  • numpy
  • keras
  • sklearn
  • opencv
  • glob
  • tensorflow

To run this project you will need to:

  1. Download the ubiris.v2 dataset from this link Ubiris.v2

  2. Change your directory names that contain the dataset to the name in the python and notebook files in these lines:

    • In iris_extreaction.py:

      #here create directory name that contain the dataset "UBIRIS_200_150/Sessao_1/"
      
      for filepath in glob.iglob('UBIRIS_200_150/Sessao_1/*'):
      
      #here create directory name that contain the the extracted iris feautres "final_iris2/"
      cv2.imwrite('final_ iris2/'+str(L)+'.'+str(number)+".jpg",new_roi)
    • In iris_classification. ipynb:

      # here directory name is "final_iris2" which contain extracted iris features
      
      for filefilepath in glob.iglob('final_iris2/*'):
  3. Run iris_extraction.py.

  4. Open iris_classification. Ipynb and run it's cells.

I wrote a research paper in this project found here

iris-recognition-on-ubiris-v2's People

Contributors

omarmedhat22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iris-recognition-on-ubiris-v2's Issues

# Using 10 Datasets

Sir, I have chosen 10 datasets from the "Iris_Recognition-CASIA-Iris-Thousand" one error in the classification cell as show below how to tackel it

classicerrpr

##Changes

pic1
pic2
pic3

***** CHANGES IN CODE*******

1**for filepath in glob.iglob('CASIA-Iris-Thousand/*'):
num_in_folder=0

2** cv2.imwrite('paper_2/eyes/'+str(L)+'.'+str(j)+'.jpg',i)

3** cv2.imwrite('paper_2/threshold/'+str(L)+'.'+str(j)+'.jpg',working_img)
cv2.imwrite('paper_2/opening/'+str(L)+'.'+str(j)+'.jpg',opening)
cv2.imwrite('paper_2/closing/'+str(L)+'.'+str(j)+'.jpg',closing)

4** cv2.imwrite('final_casia/'+str(L)+'.'+str(j)+'.jpg',new_roi)

5** OUT PUT**
total images number 0
total_eyes_found = 0
total_eyes_found 2 = 0
total_iris_found = 0
total images number 0
the lenght of final output = 0
the of lables = 0

UBIRIS Images from .tiff

Hello sir,
I was wondering how you converted or used images from UBIRIS dataset since the dataset I have received in .tiff format. Python openCV2 cannot read it in this format. I tried converting them to .jpg but it still doesn't work. Can I please know what you've done? This can really help with my project.

Thanks!

###Running the code

Hello sir, i have taken the similar datasets as mentioned in "README.md"
the code is giving only the "print" statements as the output
"total_eyes_found = 0
total_eyes_found 2 = 0
total images number 0"
........
even though i have changed the directory name as per my directory

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.