How to make a diagram block getsnapshot or get frame on simulink program?

2 views (last 30 days)
Now i'm currently doing my final task about red light camera use simulink program and i've been working motion detection with white line as the indicator. Working of the program is when there is an object past the white line then the program will detect any movement and will take a picture. the problem is i don't find a block diagram to getsnapshot. Can anyone help me??

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 31 Jan 2012
Not sure if this is an ideal solution, but you could try using a From Video Device block inside a Triggered Subsystem that is triggered when the movement is detected. You could also write a MATLAB function that calls into getsnapshot as required, and call that function from an Interpreted MATLAB Function block. You should then place that block inside a triggered subsystem and trigger it as needed.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!