how can i do or where i can find full matlab code to convert real time image using webcam into greyscale?

Answers (1)

Hi Shefali,
You should read the following documentation:
After that, you'll see that it is as easy as:
vid = videoinput('winvideo');
vid.ReturnedColorSpace = 'grayscale';
preview(vid);
Regards,

Asked:

on 28 Sep 2016

Edited:

on 28 Sep 2016

Community Treasure Hunt

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

Start Hunting!