Can System Objects be used with webcam video acquisition for live video

Technical Source
2 min readMar 10, 2021

Can System Objects be used with webcam video acquisition for live video in Video and Image Processing Blockset 3.0 (R2010a)?

I would like to have a live video that is captured by a webcam as an input to my system object:

reader = video.MultimediaFileReader

This means that whatever is captured by webcam will be instantly be read by system objects for further stream processing.

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

You can use live video capture with System Objects in the following manner:

1. One immediate solution in MATLAB 7.10 (R2010a) is to use Windows Media Encoder to turn the video into an MMS stream, and then use the video.MultimediaFileReader System object to read the video stream.

Note that this solution is not optimal because:

  • There is a large amount of buffering when using this mechanism.
  • The video stream is compressed.

If you do go down this route, install Windows Media Player version 11 before doing so. There is a related solution on that topic listed at the bottom of the page.

2. The better solution is to use a System objects from Image Acquisition Toolbox. To connect to a web cam, the Image Acquisition Toolbox can be used with System objects quite easily. For this, look at the attached MATLAB script which shows how these frames can be acquired. Here, there is no need to turn video into an MMS stream as previously mentioned in Step 1.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.