Detecting objects in a video stream
13 views (last 30 days)
Show older comments
I want to detect an object from a video stream that can be from a video device or a file saved in the disk. How do I proceed with it?
0 Comments
Answers (1)
Walter Roberson
on 3 Mar 2011
If you have an older version of Matlab, use mmreader() to read video from a file. If you have a new version, use the VideoReader class.
To read from a live video device, there is the Video Acquisition Toolkit. In some cases, depending on what the device interface is, it may be possible to use other methods that do not require that toolkit, but that toolkit is optimized for high performance.
There are also approaches using the Simulink Video Blockset. A very recent relevant question that gives some hints is #2382
You need to tell us more about the kind of object you need to detect and the other kinds of objects that might appear. There are different approaches for differing complexities.
2 Comments
Walter Roberson
on 3 Mar 2011
I believe there are some fruit detection demos in the Matlab File Exchange.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!