Converting livestream RGB video to gray scale
조회 수: 6 (최근 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!