How can I use imfindcircles function to tell me when there isn't any circle in the image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am working on a eye blink detection project. I use the vision.CascadeObjectDetector function to find my eyes, and then I use imfindcircles function to find my pupils. Already I can determinate when my eyes are open (there is a viscircles). How can I use the imfindcircles function to determinate when mi eyes are closed, I mean, when there is a circle, or when there isn't.?
0 Kommentare
Antworten (1)
Jayanti
am 21 Mär. 2025
Hi Eduardo,
To determine if eyes are closed you can check whether “imfindcircles” function detects any circles. If no circles are detected, it might indicate that the eyes are closed.
If it detects circles, centers will be a non-empty array else it will be an empty array.
[centers, radii] = imfindcircles(eyeRegion, [rMin rMax]);
if isempty(centers)
disp('Eyes are likely closed');
else
disp('Eyes are open');
viscircles(centers, radii, 'EdgeColor', 'b');
end
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!