houghCircles to detect pupil
Hello :D I'm trying to detect circles in detected eyes but houghCircles fail to detect any circles. This is my code http://pastebin.com/QnyJNaT3
What could be the problem? Please help me.
Edit: I think i found why it can't detect any circles.
After detecting i tried showing the image.
Detected eyes here: eye_cascade.detectMultiScale(faceROI, eyes, 1.1, 1, 0, Size(30, 30));
Stored the first detected eye image in eyeROI: Mat eyeROI = gray_img(eyes[0]);
Display eyeROI: imshow("eye", eyeROI);
What i saw was that it is showing parts of objects beside my detected eye. Sometimes a part of my room door which is next o my face and sometimes a part of my hair. Its not showing the detected eye and maybe thats why houghcircles failed to detect any circular objects. What could be the problem?
Edit 2: The second problem is fixed. Now just cant get it to detect houghcircles in eye image window.
@hi, SiPL, if you could add an example image ?
Hi berak, i'm so sorry for replying late. I'm taking a live video from a webcam as input. When i try to detect in the entire video frame it detects other circles such as a DVD but fails to detect pupil. Is that because i haven't given any image transformations?
http://answers.opencv.org/question/84732 is a related question
Ty :D I'll look at it and try if it works