error while using hp camera in the code syntax
显示 更早的评论
the code:
1.out = imaqhwinfo('HP TrueVision HD Camera');
2.device1 = out.DeviceInfo(1);
3.device1.SupportedFormats
4.vid=videoinput('HP TrueVision HD Camera',1,'YUY2_320x240');
error:
Error using imaqhwinfo
Too many input arguments.
Error in imageslider (line 1)
out = imaqhwinfo('HP TrueVision HD Camera');
回答(1 个)
LEA YEROMONAHOS-DJARIAN
2022-10-30
0 个投票
you need to install the add-on "winvideo" and then write :
out = imaqhwinfo("winvideo")
then you search for the compatibles formats :
out.DeviceInfo.SupportedFormats
and finally you can write :
vid = videoinput('winvideo','HP truevision hd camera','YUY2_320x240');
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support Package for USB Webcams 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!