Can i take output from viola jones algorithm
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I need image output from viola jones algorithm. I have used Viola jones on gray image and result has square box around face regions in image. I need these detected face images for further processing.
how i should take out those detected faces and save it as image?
Thank you in advance.
2 Kommentare
Antworten (1)
Walter Roberson
am 6 Mai 2020
When you step() the viola jones detector, you get an array of bounding boxes. You can loop through each row of the bounding box, passing the row to imcrop.
bbox = step(my_viola_detector_object, IMG);
nbox = size(bbox,1);
pieces = cell(nbox,1);
for K = 1 : nbox
pieces{K} = imcrop(IMG, bbox(K,:));
end
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!