iris-recognition

Gabor kernel parameters in OpenCV

丶灬走出姿态 提交于 2020-01-04 03:56:08
问题 I must use Gabor filter in my application, but I have no clue about this OpenCV methods parameters values. I want to encoding an iris. Start of Gabor filter and get features (I want to do this for 12 sets of Gabor parameters values). Then I want to count a Hamming dystans and do authentication. If someone could write here params ranges, or way how to calculate it in function: Imgproc.getGaborKernel(new Size(kSize[j], kSize[j]), sigma, theta, lambda, gamma); I'll be very grateful. Of course I

To find minute circles using hough circle function in opencv for iris

≡放荡痞女 提交于 2019-12-13 06:14:54
问题 I need to detect the iris of the eye picture I have using HoughCircle function thats available in opencv2. So , // Read the image src = imread("D:/001R_3.png"); if( !src.data ) { return -1; } /// Convert it to gray cvtColor( src, src_gray, CV_BGR2GRAY ); /// Reduce the noise so we avoid false circle detection GaussianBlur( src_gray, src_gray, Size(9, 9), 2, 2 ); ///////////// /// Generate grad_x and grad_y Mat grad_x, grad_y; Mat abs_grad_x, abs_grad_y; Sobel( src_gray, grad_x, ddepth, 1, 0,

How to mask circular area?

妖精的绣舞 提交于 2019-12-13 01:25:17
问题 I am trying to mask circular area in image.I put the code and the output image below.As you can see,I draw the circle around iris.After this point,I want to black out everything outside circular area.How do I need to continue?Are there another ways to do so? Thanks... import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('i1.jpg',0) img = cv2.medianBlur(img,5) cimg = cv2.cvtColor(img,cv2.COLOR_GRAY2BGR) circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,120,

Comparing irises images with opencv

血红的双手。 提交于 2019-12-11 04:37:05
问题 I need help with iris comparing. I've already segment and normalize my iris images. Now I want to extraxt features, add it to database, or just simply in list of feature vector, and then compare it with other features vector. I want my application to decide if such iris is already in database or not. Of course images are diffenent, they were done in different light, angle etc. I thought that Gabor filter would be helpful, so I it to 12 different parameters values: Mat kernel = Imgproc

How to get the real and imaginary parts of a gabor kernel matrix in OpenCV

走远了吗. 提交于 2019-12-08 11:12:58
问题 A OpenCV beginner and bad math. My job is to apply the Gabor filter to a normalized image. And I only know that OpenCV has a getGaborKernel function, and i want to know the return Matrix of this function is the real part or the imaginary part of the kernel. If I can't use this function, then how can I generate those kernel? Using Java API, but C++ code is fine. 回答1: You can see in gabor.cpp at line 87 that it's computing the real part (according to wikipedia). double v = scale*std::exp(ex*xr

about detecting iris and pupil circles using hough circle in java opencv

放肆的年华 提交于 2019-12-06 15:16:14
问题 I'm using opencv in Java to try to detect circles (iris, and pupil) in images with eyes, but I didn't get the expected results. Here is my code // convert source image to gray org.opencv.imgproc.Imgproc.cvtColor(mRgba, imgCny, Imgproc.COLOR_BGR2GRAY); //fliter org.opencv.imgproc.Imgproc.blur(imgCny, imgCny, new Size(3, 3)); //apply canny org.opencv.imgproc.Imgproc.Canny(imgCny, imgCny, 10, 30); //apply Hough circle Mat circles = new Mat(); Point pt; org.opencv.imgproc.Imgproc.HoughCircles

about detecting iris and pupil circles using hough circle in java opencv

偶尔善良 提交于 2019-12-04 20:31:41
I'm using opencv in Java to try to detect circles (iris, and pupil) in images with eyes, but I didn't get the expected results. Here is my code // convert source image to gray org.opencv.imgproc.Imgproc.cvtColor(mRgba, imgCny, Imgproc.COLOR_BGR2GRAY); //fliter org.opencv.imgproc.Imgproc.blur(imgCny, imgCny, new Size(3, 3)); //apply canny org.opencv.imgproc.Imgproc.Canny(imgCny, imgCny, 10, 30); //apply Hough circle Mat circles = new Mat(); Point pt; org.opencv.imgproc.Imgproc.HoughCircles(imgCny, circles, Imgproc.CV_HOUGH_GRADIENT, imgCny.rows() / 4, 2, 200, 100, 0, 0); //draw the found

Biometrics with iris and face recognition

╄→гoц情女王★ 提交于 2019-12-04 05:05:41
In blog Better Biometrics in Android P they said: "To keep users safe, most apps and devices have an authentication mechanism, or a way to prove that you're you. These mechanisms fall into three categories: knowledge factors, possession factors, and biometric factors. Knowledge factors ask for something you know (like a PIN or a password), possession factors ask for something you have (like a token generator or security key), and biometric factors ask for something you are (like your fingerprint, iris, or face)". But when I read in BiometricPrompt API, I can't see document for iris or face,

About finding pupil in a video

↘锁芯ラ 提交于 2019-12-03 13:39:01
问题 I am now working on an eye tracking project. In this project I am tracking eyes in a webcam video (resolution if 640X480). I can locate and track the eye in every frame, but I need to locate the pupil. I read a lot of papers and most of them refer to Alan Yuille's deformable template method to extract and track the eye features. Can anyone help me with the code of this method in any languages (matlab/OpenCV)? I have tried with different thresholds, but due to the low resolution in the eye

About finding pupil in a video

痞子三分冷 提交于 2019-12-03 03:41:55
I am now working on an eye tracking project. In this project I am tracking eyes in a webcam video (resolution if 640X480). I can locate and track the eye in every frame, but I need to locate the pupil. I read a lot of papers and most of them refer to Alan Yuille's deformable template method to extract and track the eye features. Can anyone help me with the code of this method in any languages (matlab/OpenCV)? I have tried with different thresholds, but due to the low resolution in the eye regions, it does not work very well. I will really appreciate any kind of help regarding finding pupil or