资源简介

可以打开视频文件,对视频文件中的人头进行检测并统计数量。算法有HOG RCNN 及Aggrate Channel Features三种

资源截图

代码片段和文件信息

function varargout = TEST3(varargin)
% TEST3 MATLAB code for TEST3.fig
%      TEST3 by itself creates a new TEST3 or raises the existing
%      singleton*.
%
%      H = TEST3 returns the handle to a new TEST3 or the handle to
%      the existing singleton*.
%
%      TEST3(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in TEST3.M with the given input arguments.
%
%      TEST3(‘Property‘‘Value‘...) creates a new TEST3 or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before TEST3_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to TEST3_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 TEST3

% Last Modified by GUIDE v2.5 18-Dec-2017 22:28:48

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @TEST3_OpeningFcn ...
                   ‘gui_OutputFcn‘  @TEST3_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

% End initialization code - DO NOT EDIT


% --- Executes just before TEST3 is made visible.
function TEST3_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 TEST3 (see VARARGIN)

% Choose default command line output for TEST3
handles.output = hobject;

% Update handles structure
guidata(hobject handles);



end



% UIWAIT makes TEST3 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = TEST3_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 version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;
end




% --- Executes on button press in file_open.
function file_open_Callback(hobject eventdata handles)
axes(handles.axes2);%用axes命令设定当前操作的坐标轴是axes2 
%fpath=[pathname filename];%将文件名和目录名组合成一个完整的路径  
% vidframes = read(readerobj);
% numframes = g

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-01 14:24  人头检测matlab代码\
     文件      551816  2017-12-18 20:31  人头检测matlab代码\headdetector.mat
     文件       93813  2017-12-22 21:04  人头检测matlab代码\TEST3.fig
     文件       16111  2017-12-23 22:21  人头检测matlab代码\TEST3.m

评论

共有 条评论