How to use Matlab to call the camera in Ubuntu environment

  
Under Ubuntu14.04, Matlab2014a calls the camera method and code as shown below: http://wenku.baidu.com/view/616fa3d9240c844769eaee10.html?re=view may encounter in the first step <;info=imaqhwinfo” The following warning: >>imaqhwinfo warning: No Image Acquisition adaptorsfound. Image acquisition adaptors may be available as downloadablesupport packages. Open Support Package Installerto install additional vendors. The solution is as follows: (Before performing the following operations, you must ensure that Matlab is in Opened under the root privilege, the method is to enter the directory where the Matlab executable file is located under Terminal Terminal, and then run Matlab with the command ./matlab.) (1) Step 1: Directly click the underlined SupportPackage Installer in the warning. Select one of the packages on the left side of the panel that appears. Here I need to call the camera of the notebook, so choose the OSGeneric Video Interface package. Or click HOME> Resources section> Add-Ons > GetHardware Support Packages, select Online Installation, then find the OS Generic Video Interface on the left side of the panel that appears. Note: There is an installation directory option under the panel. The installation directory is & rdquo; MATLAB root directory /toolbox“, usually /usr/local/MATLAB/R2014a/toolbox. This directory requires root privileges, so I said earlier that you want to make Matlab run under root privileges. (2) Step 2: Set Path> Add Folder, open the Add Folder to Path panel, find the genericvedio (which is the OS Generic Video Interface) just downloaded under /usr/local/MATLAB/R2014a/toolbox, click Open and return to Set the Path panel, click Save at the bottom left of the Set Path panel, then click Close to exit. (3) Step 3: HOME>ENVIRONMENT>Preferences>MATLAB>General, check the Enabletoolbox path cache in the Toolbox path caching on the right, then click on the UpdateToolbox Path Cache below, click Apply in the lower right corner of the panel, and then click OK to close the panel. (4) Step 4: At this time, you can try the imaqhwinfo command in the Matlab command window. If the following result appears, the installation is successful: ans =InstalledAdaptors: {'linuxvideo'}MATLABVersion:'8.3 (R2014a)' ToolboxName: 'Image Acquisition Toolbox'ToolboxVersion: '4.7(R2014a)' But if the following problem occurs, ans =InstalledAdaptors: {' '}MATLABVersion:'8.3 (R2014a)'ToolboxName:'Image Acquisition Toolbox'ToolboxVersion: '4.7( R2014a)' indicates that Set Path is not updated because the Update Toolbox Path Cache operation failed. Enter the following command in Matlab's command window to solve this problem: rehash toolboxcache spends a lot of time exploring the data to complete this simple installation package operation, Khan ~ the latest version of Matlab download: http://www.xp85.com/Html/Matlab7.html
Copyright © Windows knowledge All Rights Reserved