Because matlab2014a installs the free version, the problem occurs when using Videoinput as follows:
Imaqhwinfo Warning: No Image acquisition adaptors found. Image acquisition Adaptors is available as downloadable support packages. Open supportpackage Installer to install additional vendors. Ans = installedadaptors: {} matlabversion: ' 8.3 (r2014a) ' toolboxname: ' Image acquisition Toolbox ' Toolboxversion: ' 4.7 (r2014a) '
Then install webcam to solve the problem of reading camera:
Click: Get Hardware Support Packages
Appear above the interface, click on USB Webcams installation.
After installation:
Help Webcamwebcam content: webcam-creates Webcam object to acquire frames from your webcam. Webcam support. Webcam functions. Webcam-creates Webcam object to acquire frames from your webcam. Webcamlist-returns a list of all webcams connected to the System.webcam is both a directory and a function. Webcam creates webcam object to acquire frames from your webcam. Camobj = Webcam Returns a Webcam object, camobj, that acquires images from the specified webcam. By default, this is selects the first available Webcam returned by Webcamlist. camobj = Webcam (devicename) Returns a Webcam object, camobj, for webcam with the specified name, devicename. The Webcam name can be found using the function webcamlist. camobj = Webcam (deviceindex) Returns a Webcam object, camobj, for webcam with the specified device index, Deviceindex. The WEBCAM device index is the index to the cell array returned by Webcamlist. camobj = Webcam (..., P1, V1, P2, V2,...) Constructs the webcam object, Camobj, with the specified property values. If a Invalid property name or property value was specified, the webcam object is not created. Creating Webcam object obtains exclusive access to the webcam. SNAPSHOT Method syntax:img = SNAPSHOT (camobj) acquires a single frame from the Webcam. [img, TIMESTAMP] = Snapshot (camobj) returns the frame, IMG, and the acquisition TIMESTAMP, TIMESTAMP. Webcam Methods:snapshot-acquire A single frame from the webcam. Preview-activate a live Image preview window. Closepreview-close Live Image Preview window. Webcam properties:name-name of the webcam. Resolution-resolution of the acquired frame. Availableresolutions-cell array of List of available resolutions. The webcam interface also exposes the dynamic properties of the webcam that we can access programmatically. Some of these dynamic PROperties is brightness, contrast, Hue, Exposure etc. The presence of these properties in the webcam object depends on the webcam so connect to. Example:% Construct a Webcam object camobj = webcam; % Preview A stream of image frames. Preview (camobj); % acquire and display a single image frame. img = Snapshot (camobj); Image (IMG); See also Webcamlist
In terms of Help:
This call succeeds.
》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
Webcam operation of MATLAB programming->matlab2014a