A list,

1. Introduction Of the topic: China has a large population base, and the number of people in public places is a very important information, and also a topic that people have been concerned about. Classroom as a very special public place, its number of people has a very important practical significance. For example, in unmanned or fewer classrooms, the number of air conditioners, fans and lights can be controlled remotely to save energy. Statistics of the proportion of truant students in colleges and universities. At present, teachers often take manual roll call, which is inefficient, or there are alternative roll call, resulting in unreliable data; In colleges and universities or society, classroom resources are tight, and many places are hard to find. If there is an effective classroom number statistics system, social resources can be allocated reasonably and resources can be fully utilized. During the lecture, the number of participants can fully reflect the popularity of the lecturer, objectively reflect the real situation and so on. This topic is based on MATLAB classroom number statistics, with rich GUI interface of human-computer interaction. The number of classroom counting statistics, and then statistics attendance, class listening ratio. The original preset total number of people, not in attendance or book cover face, prone to play with mobile phone will not be able to collect faces, so the corresponding number is missing, the attendance rate or attendance rate. The subject uses the principle of skin color for face location and face segmentation. In this project, in order to make the GUI beautiful, the separated faces were deliberately displayed separately in axes corresponding to the GUI. Is a good graduation project topic. 2, the basic process of reading in the picture (or call notebook camera), gray processing, YcbCr, binary expansion difference, salt and pepper filter, face area positioning, counting.

Ii. Source code

function varargout = Itelli_Classroom(varargin)
% ITELLI_CLASSROOM MATLAB code for Itelli_Classroom.fig
%      ITELLI_CLASSROOM, by itself, creates a new ITELLI_CLASSROOM or raises the existing
%      singleton*.
%
%      H = ITELLI_CLASSROOM returns the handle to a new ITELLI_CLASSROOM or the handle to
%      the existing singleton*.
%
%      ITELLI_CLASSROOM('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in ITELLI_CLASSROOM.M with the given input arguments.
%
%      ITELLI_CLASSROOM('Property'.'Value',...). creates anew ITELLI_CLASSROOM orraises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before Itelli_Classroom_OpeningFcn gets called. An % unrecognized property  nameor invalid value makes property application
%      stop.  All inputs are passed to Itelli_Classroom_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 Itelli_Classroom

% Last Modified by GUIDE v2. 5 18-Oct- 2013. 17:01:17

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
    'gui_Singleton',  gui_Singleton, ...
    'gui_OpeningFcn', @Itelli_Classroom_OpeningFcn, ...
    'gui_OutputFcn',  @Itelli_Classroom_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 Itelli_Classroom is made visible.
function Itelli_Classroom_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 Itelli_Classroom (see VARARGIN)

% Choose default command line output for Itelli_Classroom
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = Itelli_Classroom_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;
Copy the code

3. Operation results





Fourth, note

Version: 2014 a