Greeting to the community, I have a few questions for image processing while video streaming for a smart traffic light project in my diploma. The main idea is to take a picture every 10 frame or a second and calculate the number of cars.There is a problem that I'm facing which is i can't get the picture periodically. As I start the video, the image remains the same and could not change after 10 frames or a second.
The code that I'm currently trying out are
vid = videoinput('winvideo', 1)
FrameGrabInterval = 10
The image that is shown stucked at the first image, is there any ways to fix this or an easier way to grab image and futher process it? Thanks in advance.