assignment 3
assignment 3
Methodology
1. Preprocessing
Preprocessing is an important process since the quality of suitable features is important for a
good detection. The applying of the following steps was performed to improve the image and
ready it for circle and contour identification:
• Grayscale Conversion:
Takes the RGB picture and transform it to the single channel grayscale picture because
the complexity of the algorithms is less.
• Histogram Equalization:
Enhances contrast, by equalizing the pixel intensities, in order that noticeable edge of iris
and pupil may be observed.
• Gaussian Blurring:
Removes some noise and, therefore, smoothes the image to minimize probable artefacts
in subsequent phases.
• Edge Detection (Canny):
This determines high/low intensity changes, which coincide with circle margin
indications.
• Adaptive Thresholding:
Divides dynamic pupil and iris regions intelligently by converting the image to the binary
form in order to enhance the features under diversified illumination conditions.
2. Circle Detection
For circular feature detections in the image, the Hough Circle Transform was used. I call the first
circle a pupil, the last circle an iris, and the center of the last circle is in line with the center of the
first circle.
• Hough Circle Parameters:
o dp: Resolution of the accumulator array (set to 1.2 for a balance between
precision and computation time).
o minDist: Minimum distance between detected circle centers.
o param1: Canny edge detection high threshold.
o param2: Accumulator threshold for confirming a circle.
o minRadius & maxRadius: Range for expected circle sizes.
• Alignment Check:
To ensure the detected iris is accurate, its center must align with the detected pupil.
Visualization Steps
To provide insights into the detection process, intermediate results are visualized:
1. Original Image: Displays the input image for reference.
2. Equalized Grayscale: Highlights the enhanced contrast.
3. Adaptive Thresholding: Segments regions of interest (pupil and iris).
4. Gaussian Blurring: Reduces noise and smoothens edges.
5. Edge Detection: Highlights boundaries for circle detection.
6. Final Detection: Overlays detected circles (pupil and iris) on the original image.
Advantages of the Method
1. Robust Preprocessing:
Adaptive thresholding and Histogram Equalization guarantee safer segmentation
irrespective of prevailing conditions.
2. Multi-Step Detection:
HCT combined with contour-based fallback has been implemented, making this
interesting method more immune to abnormal inputs.
3. Efficient Parameters:
Optimizing circle detecting parameters allows to reduce number of false positives and
properly overlay features.
4. Fallback Mechanism:
Contour-based detection guarantees the reliability of the detection in cases when the
circle-shaped objects are not well outlined.
Limitations
• Lighting Sensitivity:
Even in cases where the lighting is taken at opposite extremes circle detection can still
present a concern.
• Contour Approximation:
Finding a best fit circle to contours may not accurately model as shapes of irises are not
well defined rectangular.
Future Improvements
1. Deep Learning Integration:
Employ CNNs to enhance its feature extractor as well as use it for better segmentation as
well.
2. Dynamic Parameter Tuning:
Self adaptively tunes detectors according to the images characteristics.
3. Multi-Modal Analysis:
In order to get much more accuracy visible and infrared imaging should be combine or
used simultaneously.
All contents copyright (C) kcg.edu.
All contents copyright (C) kcg.edu.
1. OpenCV.
2. Basic concepts in OpenCV.
3. Examples of car plate detection.
Company A Company B
• Checking whether you are using their code is not a simple matter.
• A commercial software is usually closed source software.
https://en.wikipedia.org/wiki/Color
_space#/media/File:CIE1931xy_ga
mut_comparison.svg
10 5 3 0 0 0
4 5 1 0 0.5 0 7
1 1 7 0 1 0.5
1 2 1
1/16 2 4 2
1 2 1
Iris
Iris
Iris
Iris