Clear Filters
Clear Filters

Create virtual webcam out of an edited video - Image Acquistion Tool

6 views (last 30 days)
Hey Matlab-Community,
I want to implement my edited live-video as a virtual webcam that I am able to add it as video input for MS Teams, Skype, ...
I use a windows setup with an external webcam. The video is a greenscreen where I add a other background and an additional object. However, this live-showned video should be an available as webcam for video calls, ....
Thank you for any tipps,
Jonathan

Answers (1)

Vidip Jain
Vidip Jain on 20 Mar 2023
You can use MATLAB to create your edited live video by using the Image Processing Toolbox and the Computer Vision Toolbox. Here are the general steps to follow:
  1. Connect to your webcam: You can use the webcam function in MATLAB to connect to your webcam.
  2. Capture live video: You can use the snapshot function to capture a single frame from your webcam, or you can use the preview function to continuously capture live video.
  3. Apply image processing techniques: You can use MATLAB functions such as imread, etc to manipulate your video frames.
  4. Add the background and additional object: You can use MATLAB to add the background and additional object to your video frames. You can use functions like imreadto read in your background and object images, and then use functions like imfuseor imadd to combine them with your video frames.
  5. Save the video: You can use the VideoWriter object in MATLAB to save your edited video frames as a video file.
Once you have created your edited live video in MATLAB, you can then use third-party software, such as OBS Studio or ManyCam, to create a virtual webcam that you can use as a video input for MS Teams, Skype, and other video calling applications.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!