How to save all the frames/ images in an array obtained from face tracking algorithm ?

2 views (last 30 days)
I have used CAM-Shift algorithm for face tracking and detection from the following link https://in.mathworks.com/help/vision/examples/face-detection-and-tracking-using-camshift.html.Now I want to store the successive frames obtained by tracking in an array so that later I can access the array of stored images.But before storing the images, I want to eliminate the background from the frames by cropping it. After cropping the images, I should get only faces. Then these faces should be stored in an array for later use. What code should be added in the above given algorithm.

Answers (1)

Image Analyst
Image Analyst on 9 Oct 2016
Determine the bounding box, then call imcrop(), then construct a filename, then call imwrite().

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!