I have been working on iris recognition for my project last year. Now I was able to detect the iris using the Hough circle transform, but this does not work with pupil detection, although I change my webcam to become an IR webcam. tried to use HSV color to detect black in the iris, but it still doesn't work, so what algorithms should I use?
IplImage *capturedImg = cvLoadImage("template.jpg",1); IplImage* imgHSV = cvCreateImage(cvGetSize(capturedImg), 8, 3); cvCvtColor(capturedImg, imgHSV, CV_BGR2HSV); IplImage* imgThreshed = cvCreateImage(cvGetSize(capturedImg), 8, 1); cvInRangeS(imgHSV, cvScalar(0, 0,0, 0), cvScalar(179, 200, 50,77), imgThreshed); cvShowImage("HSV",imgThreshed);

source share