SlideShare a Scribd company logo
CUDA based Iris
Detection based on
Hough Transform
 G P - G P U   C o u r s e   P r o j e c t

     J u s t i n a s   M i š e i k i s
Goal
Eye detection in a color or grayscale image

Detect boundaries of iris and pupil for the
segmentation

Make the detection real-time
CUDA parts
Hough transform for circles

Peak detection

Image adjustment

Gamma correction

         CPU parts
Canny edge detection - OpenCV

Histogram calculation for image adjustment
Optimisation
Limit possible radius, thus limit search space
Couple of voting locations served by one block
Automatic adjustment of thread and block
numbers to keep load higher - more efficient
When pupil is found, iris search space only around
the same centre
Avoiding host-device and device-host memory
copying
Using shared memory
Results - Images
Results - Timing
Time measurements of the whole process including
            image pre-processing

 Image size   C++ CPU      CUDA        Speed up
  1024x768    32.490 sec   3.947 sec    8.23x
  800x600     17.161 sec   2.054 sec    8.35x
  640x480     8.701 sec    1.120 sec    7.76x
  500x375     4.202 sec    0.589 sec    7.13x
  350x263     1.461 sec    0.293 sec    4.99x
  250x188     0.625 sec    0.175 sec    3.57x

 MATLAB with 640x480: over 32 sec
Results - Timing
                                      Iris detection CPU vs CUDA
            40.000




            30.000
Time, sec




            20.000




            10.000




                0
                250x188     350x263        500x375                640x480    800x600   1024x768
                                                     Image size

                                             CPU                      CUDA
Hardware Used

HP All-in-One 200-5300ch


Processor: Intel Core i3-550 (3.2GHz), 4MB

RAM: 2x 2048MB DDR3, 1333MHz

GPU: nVidia GeForce G210 with 512 MB (low-end)
Comments and
Future Improvements
 Algorithm should work faster on a better GPU

 Main bottleneck - AtomicAdd function

 Get rid of any CPU based pre-processing

 Make the whole process purely on GPU, no
 memory copying involved except for the result

 Automatic parameter adjustment to ensure good
 results on variety of pictures
Dependencies


CUDA

Atomic functions

OpenCV
Thank You!
Any questions?

More Related Content

PPTX
PDF
STAR CCM GLOBAL CONFERENCE UBERCLOUD
PPTX
Gpudigital lab for english partners
PPTX
c04189dc-78b5-401a-adf6-cae4e8250948-150611144746-lva1-app6891
PPT
Virtual Server Implementation
PDF
Processing images with Deep Learning
PPTX
Q6 evaluation
PDF
Example Application of GPU
STAR CCM GLOBAL CONFERENCE UBERCLOUD
Gpudigital lab for english partners
c04189dc-78b5-401a-adf6-cae4e8250948-150611144746-lva1-app6891
Virtual Server Implementation
Processing images with Deep Learning
Q6 evaluation
Example Application of GPU

Similar to CUDA based Iris Detection based on Hough Transform (20)

PDF
LIAO TSEN YUNG Cover Letter
PDF
Comparison of Parallel Algorithms For An Image Processing Problem on Cuda
PDF
CUDA and Caffe for deep learning
PPTX
A New Approach for Parallel Region Growing Algorithm in Image Segmentation u...
PDF
Cuda Without a Phd - A practical guick start
PPTX
Applying of the NVIDIA CUDA to the video processing in the task of the roundw...
PDF
GPU Compute in Medical and Print Imaging
 
PDF
Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1
PPTX
20131121
PDF
Compressing of Magnetic Resonance Images with Cuda
PPTX
Adv comp sys_cuda_kannan
PPTX
GPU Algorithms and trends 2018
PDF
Accelerating microbiome research with OpenACC
PDF
Nvidia® cuda™ 5 sample evaluationresult_2
PDF
IMQA Poster
PDF
Hand Finger Counting using Deep Convolutional Neural Network (CNN) on GPU
PDF
CUDA Deep Dive
PPT
Parallel computing with Gpu
PDF
Slide tesi
PDF
Cuda toolkit reference manual
LIAO TSEN YUNG Cover Letter
Comparison of Parallel Algorithms For An Image Processing Problem on Cuda
CUDA and Caffe for deep learning
A New Approach for Parallel Region Growing Algorithm in Image Segmentation u...
Cuda Without a Phd - A practical guick start
Applying of the NVIDIA CUDA to the video processing in the task of the roundw...
GPU Compute in Medical and Print Imaging
 
Nvidia® cuda™ 5.0 Sample Evaluation Result Part 1
20131121
Compressing of Magnetic Resonance Images with Cuda
Adv comp sys_cuda_kannan
GPU Algorithms and trends 2018
Accelerating microbiome research with OpenACC
Nvidia® cuda™ 5 sample evaluationresult_2
IMQA Poster
Hand Finger Counting using Deep Convolutional Neural Network (CNN) on GPU
CUDA Deep Dive
Parallel computing with Gpu
Slide tesi
Cuda toolkit reference manual
Ad

More from Justas Miseikis (8)

PDF
Robot Localisation and 3D Position Estimation Using a Free-Moving Camera and ...
PDF
Multi-Objective Convolutional Neural Networks for Robot Localisation and 3D P...
PDF
Automatic Calibration of a Robot Manipulator and Multi 3D Camera System
PPTX
3D Vision Guided Robotic Charging Station for Electric and Plug-In Hybrid Veh...
PDF
Mažasis Universitetas, IT karjera: Robotika
KEY
Joint Human Detection from On-Board and Off-Board Cameras
PDF
TESP 2012 Drums Haptic Interface
KEY
Finger Rehabilitation Robot - Justinas Miseikis
Robot Localisation and 3D Position Estimation Using a Free-Moving Camera and ...
Multi-Objective Convolutional Neural Networks for Robot Localisation and 3D P...
Automatic Calibration of a Robot Manipulator and Multi 3D Camera System
3D Vision Guided Robotic Charging Station for Electric and Plug-In Hybrid Veh...
Mažasis Universitetas, IT karjera: Robotika
Joint Human Detection from On-Board and Off-Board Cameras
TESP 2012 Drums Haptic Interface
Finger Rehabilitation Robot - Justinas Miseikis
Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
The AUB Centre for AI in Media Proposal.docx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

CUDA based Iris Detection based on Hough Transform

  • 1. CUDA based Iris Detection based on Hough Transform G P - G P U C o u r s e P r o j e c t J u s t i n a s M i š e i k i s
  • 2. Goal Eye detection in a color or grayscale image Detect boundaries of iris and pupil for the segmentation Make the detection real-time
  • 3. CUDA parts Hough transform for circles Peak detection Image adjustment Gamma correction CPU parts Canny edge detection - OpenCV Histogram calculation for image adjustment
  • 4. Optimisation Limit possible radius, thus limit search space Couple of voting locations served by one block Automatic adjustment of thread and block numbers to keep load higher - more efficient When pupil is found, iris search space only around the same centre Avoiding host-device and device-host memory copying Using shared memory
  • 6. Results - Timing Time measurements of the whole process including image pre-processing Image size C++ CPU CUDA Speed up 1024x768 32.490 sec 3.947 sec 8.23x 800x600 17.161 sec 2.054 sec 8.35x 640x480 8.701 sec 1.120 sec 7.76x 500x375 4.202 sec 0.589 sec 7.13x 350x263 1.461 sec 0.293 sec 4.99x 250x188 0.625 sec 0.175 sec 3.57x MATLAB with 640x480: over 32 sec
  • 7. Results - Timing Iris detection CPU vs CUDA 40.000 30.000 Time, sec 20.000 10.000 0 250x188 350x263 500x375 640x480 800x600 1024x768 Image size CPU CUDA
  • 8. Hardware Used HP All-in-One 200-5300ch Processor: Intel Core i3-550 (3.2GHz), 4MB RAM: 2x 2048MB DDR3, 1333MHz GPU: nVidia GeForce G210 with 512 MB (low-end)
  • 9. Comments and Future Improvements Algorithm should work faster on a better GPU Main bottleneck - AtomicAdd function Get rid of any CPU based pre-processing Make the whole process purely on GPU, no memory copying involved except for the result Automatic parameter adjustment to ensure good results on variety of pictures

Editor's Notes