由于MATLAB2014a安装的是免费版,在用videoinput时便出现问题如下:

imaqhwinfo

警告: No Image Acquisition adaptors found. Image acquisition adaptors may be available as downloadable support packages. Open Support

Package Installer to install additional vendors.

ans =

InstalledAdaptors: {}

MATLABVersion: '8.3 (R2014a)'

ToolboxName: 'Image Acquisition Toolbox'

ToolboxVersion: '4.7 (R2014a)'

于是安装webcam来解决读取摄像头问题:

点击:Get Hardware Support Packages

出现以上的界面,点击USB Webcams 安装。

安装后:

help webcam

webcam 的内容:

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 既是目录也是函数。

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 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 into the cell array returned by WEBCAMLIST.

CAMOBJ = webcam(..., P1, V1, P2, V2,...) constructs the webcam object,

CAMOBJ, with the specified property values. If an invalid property

name or property value is 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

are Brightness, Contrast, Hue, Exposure etc. The presence of these

properties in the webcam object depends on the Webcam that you 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

根据help来看:

至此调用成功。

》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》

matlab中webcam,MATLAB编程-MATLAB2014a的webcam操作相关推荐

  1. matlab怎么调用主函数,Matlab中一个函数调用另外一个函数的操作步骤

    原创Matlab中一个函数调用另外一个函数的操作步骤 编辑:小安 来源:PC下载网时间:2019-11-18 13:27:35 最近很多伙伴才刚刚安装入手Matlab这款软件,而本节就重点介绍了关于M ...

  2. matlab中str_,str编程中是啥意思 str在程序中什么意思

    在编程中char是什么意思? 在编程中char是申明一个字符型变量的语句.比如 char str 这样申明后,str就表示是一个长度为一个字节的字符变量.在C语言中一般表示是一个字符,但在C51中,也 ...

  3. matlab是否可以面向对象,MATLAB中的面向对象编程

    本帖最后由 TS-boys 于 2020-10-30 13:29 编辑 1. 引子 面向对象编程是一种非常流行的编程思想,将"数据/属性"和"方法/函数"打包为 ...

  4. matlab中instr,MATLAB 串口通信

    matlab 串口编程 由于项目需要,用matlab 做了一个串口通信工具,也碰到不少坑.这里总结一下. 读取串口数据 matlab 支持串口通信,因此直接调用串口的结构体serial就可以,在调用之 ...

  5. tyvector在matlab中代表,MATLAB曲线绘制

    信号源产生的方法 来源:http://www.2cto.com/kf/201401/270494.html  matlab的checkerboard说明,GOOD! 来源:http://www.chi ...

  6. 在matlab中fscanf,matlab中fscanf的用法

    示例:Matlab 读 txt 文件 fid=fopen('fx.txt','r'); %得到文件号 [f,count]=fscanf(fid,'%f %f',[12,90]); %把文件号 1 的数 ...

  7. matlab中trapz,MATLAB中trapz和cumtrapz函数

    这两个函数都是MATLAB中的内置函数,是基于梯形法则的数值积分公式 例如我们有函数y=x^3-2x-3,为了计算在[0,1]上的积分,可以这么做: 其中x和y分别是自变量和对应的值,trapz其实就 ...

  8. matlab中normfit,MATLAB中如何得到一组统计数据的分布特征

    MATLAB中如何得到一组统计数据的分布特征 我想通过MATLAB知道一组统计数据的分布特征,如属于哪种分布,均值方差等,请问如何实现?谢谢! function f=p_judge(A,alpha) ...

  9. matlab中fdyn,Matlab的用法总结

    1. 对序列进行洗牌 randperm() randperm()产生随机的序列 %if filepaths 是一个5*1的结构体,then cshuffle = randperm(length(fil ...

最新文章

  1. 数据分析与数据科学圈潜在“标杆级”著作,亚马逊智囊团副团长新书
  2. CListCtrl的使用完全指南
  3. 嵌入式Linux系统中的.lds链接脚本基础
  4. [译]基于GPU的体渲染高级技术之raycasting算法
  5. api wke_GitHub - kertL/wke: 基于Webkit精简的纯C接口的浏览器内核,可用于桌面UI、浏览器。...
  6. 中美线径对照表_导线截面与线径对照表
  7. InDesign(拼合预设转曲)
  8. C语言驾校管理系统,驾校网站查询系统
  9. css3 设置图片变灰(在微信端不能正常) 和透明
  10. 对于开发软件的NABCD分析
  11. Springboot+Springmvc实现登录拦截(附源码)
  12. 爱创课堂vue视频资料
  13. 30岁哥大计算机博士生遇刺身亡!论文刚被顶会接收,曾留学中国
  14. html5行走的机器人,html5 css3实例教程 一款html5和css3实现的小机器人走路动画
  15. 你可以跑不赢刘翔,但一定要跑赢CPI
  16. MATLAB常用快捷键:自动补全、自动排版、注释、去掉注释
  17. 英特尔采用 LLVM 作为最新 C/C++ 编译器
  18. 论文阅读_基于GCN的知识图对齐
  19. 腾讯系持续集成(CI)方案
  20. 全国计算机等级题库winrar,全国计算机等级考试试题和答案

热门文章

  1. 【量化投资实训】基于MATLAB实验一.简单移动平均线MA
  2. java哨片红盒 绿盒的区别_海淘维骨力怎么区分红盒,绿盒,蓝盒版本之间的区别...
  3. iphone13配什么蓝牙耳机最好?最适合苹果手机的蓝牙耳机推荐
  4. 状态空间离散化matlab,现代控制理论:3.4g 线性连续系统状态空间模型的离散化...
  5. 交流直流电压检测电路
  6. 生活,又怎能鱼和熊掌兼得?
  7. 词向量之词袋模型(BOW)详解
  8. 亚马逊测评现在还能做吗?需要注意哪些?
  9. html标签设置正方形,css 如何设置带有正方形项目的列表
  10. 6.2 用迹求特征多项式