How sohaib50k/thirdeye---iris-recognition-using-triplets works
Project type and purpose
• From the file tree (Attention.py, EER.py, helperFunc.py, bh_iris.ipynb) and the README, this is a research‐oriented machine learning pipeline for iris recognition.
• It is not a web or full-stack app but an experimental framework that:
• Ingests pre-segmented iris images (from Mask R-CNN)
• Trains a Keras/TensorFlow model using triplet‐loss variants (with optional attention)
• Evaluates performance (EER, distance histograms, FAR/FRR)
• Produces visualizations in scripts/notebooks
File structure
• Top-level scripts:
• Attention.py – defines/attaches attention modules to the embedding network
• EER.py – computes Equal Error Rate and generates FAR/FRR plots
• helperFunc.py – utility routines (data reading, preprocessing, distance computation)
• bh_iris.ipynb – interactive notebook demonstrating training/testing workflows and plotting
• No “frontend/backend” split; everything is in Python/Notebook form.
• There is an implicit dependency on an external segmentation pipeline (Mask-R CNN) to generate square black-background iris crops.
README for architecture hints
• The data folder structure:
/train/<class>/<image>.png
/test/*.png
• A custom Keras generator yields triplets (anchor, positive, negative).
• Outputs include distance histograms and correlation matrices.
• References to core libraries: Keras, TensorFlow, NumPy, OpenCV, Matplotlib.