Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Rui
Posts:
1
Registered:
11/29/12
|
|
Counting people and saving times
Posted:
Nov 29, 2012 8:09 AM
|
|
Hi,
I have a Simulink model similar to the "Tracking Cars Using Background Estimation" (from the 'Video and Image Processing Blockset' demos in Matlab2010, or from the 'Computer Vision System Toolbox' demos in Matlab2011). But in my model I want to get the image from a webcam, instead from a video, and track and count people. When in its real application, I would like to leave my Simulink model running for, let's say, a week, and then be able to know when people had crossed a virtual line in the image. I have everything implemented for checking when, and in which direction, people cross that virtual line. But I still have 2 problems:
1) In Simulink, if I use the Clock block, it gives the simulation time. And actually, I would like to register the real time when people cross the virtual line. Matlab has a function 'clock' but it is not available for Embedded Matlab Function in Simulink.
2) At the end of my Simulink model, I have a 'To File' block, which saves the inputs to a .mat file. This would work ok, but the .mat file is only saved to the harddrive at the end of the simulation. And, as I want to leave it running for so long, if the computer crashes or the power goes off, I'll lose all the data.
Do you have any suggestions of how to overcome these two problems? Thanks
|
|
|
|