Converting livestream RGB video to gray scale
10 次查看(过去 30 天)
显示 更早的评论
Hello I am wondering if it is possible to convert a livestream RGB into grayscale while still remaining in live video
this is what i have so far to obtain live video however I am stuck on how to make gray scale
or how to put the live video on a plot
cam = webcam
preview(cam)
0 个评论
采纳的回答
Image Analyst
2022-7-4
编辑:Image Analyst
2022-7-4
vidobj = videoinput(theVideoAdaptor, cameraDeviceID, selectedCameraFormats{selectedFormatIndex});
vidobj.ReturnedColorSpace = 'grayscale';
6 个评论
Image Analyst
2022-7-5
Maybe - with my Logitech demo you might have to debug it and figure out what the adapter name of your camera is and replace Logitech with your computer camera's name.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!