Implementing KLT face tracking on live webcam

1 view (last 30 days)
Hi all,
to work with a live webcam stream, I have managed to initiate the webcam input as an object and can run the detection and tracking okish :) but will have to work through this which I should be able to (dont like to ask for help unless I really have to).
One bit which I do need help with is for me to perform further processing on each detected ROI I need to crop the frame to ROI and reorientate and possibly scale, the processing I need to do will be relative changes between frames mean intensities in each channel and then some jiggery pokery :) again all this I can work through and cope with.
The Demo code uses geometric transform to display a bounding box as a polygon around the detected section of image which is what I require.
I am just really banging my head against a wall with the reverse transform and crop.
Any help or pointers will be appreciated

Answers (1)

Image Analyst
Image Analyst on 15 Dec 2012
It's not clear what you need help with. You said you needed help with processing but then said you could work through it, presumably by yourself.
I know what cropping is, and to crop, use imcrop(), or simple indexing. But I don't know what a "reverse transform" means to you. What sort of reverse transforming do you want to do before the crop operation?
  7 Comments
Daniel
Daniel on 27 Jan 2013
so i am detecting eyes and drawing bounding box around the eyes and nose, this is the area I am interested in. I need to crop each frame (of input video/ live webcam) to this box for debugging the next level of my code.
Because I am using the geometric transformation between the points tracked from one frame to the next is it possible to use this data and do an inverse transform on the bounding box region of interest only. This is then sent to a video player object.
sorry for being such a newbie, what i have to do with the data after this is the main part of the work I am doing and I can understand that part it is just this tracking and cropping that is causing me the headache.
Thanks for you patients and any assistance is really appreciated Dan
Anandakumar Selvaraj
Anandakumar Selvaraj on 13 Dec 2013
hello Daniel i was trying your code it works fine what i stuck with insted of video player i want to display the 'videoFrame' in a montage
videoFrame =(imcrop(videoFrame, [topLine, leftColumn, width, height]));
as a in Montage function but all the example i came across just shows how to convert montage from a set of images and not as videoFrames help me if you can

Sign in to comment.

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!