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.
1 | initial version |
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.
2 | No.2 Revision |
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?
3 | No.3 Revision |
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.