Centroid Analysis on frames in a video
1 view (last 30 days)
Show older comments
Hi, Im working on a project right now, Ive got background subtraction working and some blob analysis. My problem is that once ive got my centroids I want to raise a warning if they are at a certain height in the image, and if they are there for a certain amount frames then raise a warning. Whats the best way of doing this?
0 Comments
Answers (1)
Image Analyst
on 22 Apr 2014
I did that (almost) just a few days ago for Yassine. Look here for the code: http://www.mathworks.com/matlabcentral/answers/126287#comment_208962. It finds the centroids on all the frames. You just need to add some code like
if row < certainHeight
warningMessage = sprintf('Warning: Object is at height %d, which is above %d, in frame #%d', row, certainHeight, frame);
uiwait(warndlg(warningMessage));
end
10 Comments
See Also
Categories
Find more on Computer Vision with Simulink 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!