Search code examples
image-processingopencvcomputer-visionhough-transformeye-tracking

Hough transformation for iris detection in OpenCV


I wrote the code for hough transformation and it works well. Also I can crop the eye location of a face. Now I want to detect the iris of the crop image with applying the Hough transformation(cvHoughCircle). However when I try this procedure, the system is not able to find any circle on the image.

Maybe, the reason is, there are noises in the image but I don't think it's the reason. So, how can I detect the iris? I have the code of binary thresholding maybe I can use it, but I don't know how to do?

If anyone helps I really appreciate it. thx :)


Solution

  • You say that with binary thresold you get an iris that is pure white : that is not what you want to have. Use something like cvCanny in order to get only the edge of the iris.