Problem while interfacing handycam,the following error occurred Error using ==> videoinput.videoinput at 328

20 Ansichten (letzte 30 Tage)
i interfaced my handycam using a video capture device.it got detected in image acquisition toolbox.Was able to view in the preview also,but when i run the program,i get the following error,......
*??? Error using ==> videoinput.videoinput at 328
The FORMAT specified is not supported by this device. See IMAQHWINFO(ADAPTORNAME).
Error in ==> testvid at 9
vid = videoinput('winvideo',2,'YUY2_720X480');*
when i used the IMAQHWINFO(ADAPTORNAME),got the following output
*obj = videoinput('winvideo', 2);
obj_info = imaqhwinfo(obj)
obj_info =
AdaptorName: 'winvideo'
DeviceName: 'SMI Grabber Device'
MaxHeight: 480
MaxWidth: 720
NativeDataType: 'uint8'
TotalSources: 2
VendorDriverDescription: 'Windows WDM Compatible Driver'
VendorDriverVersion: 'DirectX 9.0'*

Antworten (1)

Walter Roberson
Walter Roberson am 15 Apr. 2013
Please try
devinfo = imaqhwinfo('winvideo', 2);
devinfo.SupportedFormats
Notice for example that you are asking for a format with 720 x 480, but the camera is saying it is 480 x 720.
  1 Kommentar
Darshan
Darshan am 15 Apr. 2013
Thank u for your suggestion,i tried it out.. *devinfo = imaqhwinfo('winvideo', 2); devinfo.SupportedFormats
ans =
'UYVY_720x480' 'UYVY_720x576'*
i changed the format to 720 X 480....
still the same problem persists....
Is there any other area where i am going wrong

Melden Sie sich an, um zu kommentieren.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by