Implementing KLT face tracking on live webcam
1 view (last 30 days)
Show older comments
Hi all,
I am adapting, or trying to, the Computer Vision Example http://www.mathworks.co.uk/help/vision/examples/face-detection-and-tracking-using-the-klt-algorithm.html
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
0 Comments
Answers (1)
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
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
See Also
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!