资源简介
基于matlab-GUI的实时人脸检测系统,具有较高的检测性能,误检率较低!
代码片段和文件信息
function varargout = CameraRead(varargin)
% CAMERAREAD MATLAB code for CameraRead.fig
% CAMERAREAD by itself creates a new CAMERAREAD or raises the existing
% singleton*.
%
% H = CAMERAREAD returns the handle to a new CAMERAREAD or the handle to
% the existing singleton*.
%
% CAMERAREAD(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in CAMERAREAD.M with the given input arguments.
%
% CAMERAREAD(‘Property‘‘Value‘...) creates a new CAMERAREAD or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before CameraRead_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to CameraRead_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE‘s Tools menu. Choose “GUI allows only one
% instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES
% Edit the above text to modify the response to help CameraRead
% Last Modified by GUIDE v2.5 28-Jan-2017 19:42:12
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @CameraRead_OpeningFcn ...
‘gui_OutputFcn‘ @CameraRead_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before CameraRead is made visible.
function CameraRead_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to CameraRead (see VARARGIN)
% Choose default command line output for CameraRead
handles.output = hobject;
imaqhwinfo(‘winvideo‘);
vid1=videoinput(‘winvideo‘1); %将摄像头输入变量信息定义公用变量,即句柄的变量;
handles.vid1 = vid1;
faceDetector = vision.CascadeobjectDetector();%加载人脸检测分类器;
faceDetector.MinSize = [50 30];
faceDetector.MaxSize = [200 200];
faceDetector.MergeThreshold = 10;
handles.faceDetector = faceDetector;%将该变量定义为公用变量,即句柄的变量;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes CameraRead wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = CameraRead_OutputFcn(hobject eventdata handles)
% varargout cell array for returning output args (see VARARGOUT);
% hobject handle to figure
% eventdata reserved - to be defined in a future vers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-01-29 19:09 faceDetect\
文件 7229 2017-01-29 19:50 faceDetect\CameraRead.fig
文件 4993 2017-01-29 19:50 faceDetect\CameraRead.m
- 上一篇:matlab中的db小波
- 下一篇:基于matlab-GUI简易计算器的设计
相关资源
- 基于matlab-GUI简易计算器的设计
- matlab中的db小波
- dwt代码,不用matlab自带的dwt
- 曲线测设程序用MATLAB语言编写
- MATLAB图像倾斜校正
- MATLAB实现马赫带
- 基于matlab的图像增强—空域变换增强
- 基于matlab的线性锐化滤波图像增强并
- MVDR 算法及相关文献
- 数字滤波器的Matlab仿真设计
- 使用matlab画ORBSLAM2运行保存的轨迹文件
- RRT路径规划
- 循环码性能的MATLAB
- GS算法的MATLAB代码
- SINS捷联惯导解算程序
- MATLAB观测器
- 直线阵和圆阵数字波束形成MatlAB程序
- 模拟电压波动与闪变的Matlab文件
- 粒子滤波算法 matlab
- OFDM调制程序 MATLAB
- 简单的声音滤波 matlab
- 基于栅格地图的Dijkstra算法路径规划
- Matlab一维FDTD卷积边界条件CPML
- SMOTE结合SVM算法matlab实现
- MATLAB文字识别程序解析
- 基于MATLAB的血管三维重建
- Allan方差计算程序Matlab版
- Goldstein_Filter
- matlab 图像加噪去噪
- 随机相位正弦波仿真实验MATLAB程序
评论
共有 条评论