Hello, i am currently working on an attendance system using MATLAB by the comparison of 2...

60.1K

Verified Solution

Question

Electrical Engineering

Hello, i am currently working on an attendance systemusing MATLAB by the comparison of 2 images of the same class, doesanyone have any ideas or methods to use

Answer & Explanation Solved by verified expert
4.5 Ratings (753 Votes)
Just try out this source code i will surely help you to design attendance system function varargout mainvarargin MAIN MATLAB code for mainfig MAIN by itself creates a new MAIN or raises the existing singleton H MAIN returns the handle to a new MAIN or the handle to the existing singleton MAINCALLBACKhObjecteventDatahandles calls the local function named CALLBACK in MAINM with the given input arguments MAINPropertyValue creates a new MAIN or raises the existing singleton Starting from the left property value pairs are applied to the GUI before mainOpeningFcn gets called An unrecognized property name or invalid value makes property application stop All inputs are passed to mainOpeningFcn via varargin See GUI Options on GUIDEs 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 main Last Modified by GUIDE v25 11May2015 194752 Begin initialization code DO NOT EDIT guiSingleton 1 guiState structguiName mfilename guiSingleton guiSingleton guiOpeningFcn mainOpeningFcn guiOutputFcn mainOutputFcn guiLayoutFcn guiCallback if nargin ischarvarargin1 guiStateguiCallback str2funcvarargin1 end if nargout varargout1nargout guimainfcnguiState varargin else guimainfcnguiState varargin end End initialization code DO NOT EDIT Executes just before main is made visible function mainOpeningFcnhObject 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 main see VARARGIN Choose default command line output for main handlesoutput hObject Update handles structure guidatahObject handles UIWAIT makes main wait for user response see UIRESUME uiwaithandlesfigure1 Outputs from this function are returned to the command line function varargout mainOutputFcnhObject 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 standard size of image is 300 300 global co clc warning off st version if str2doublest1 8 beep hx msgboxPLEASE RUN IT ON MATLAB 2013 or HigherINFOwarnmodal pause3 deletehx closegcf return end co gethObjectcolor addpathpwddatabasecodes if sizelsdatabase2 2 deletefeaturesmat deleteinfomat end Get default command line output from handles structure varargout1 handlesoutput function edit1CallbackhObject eventdata handles hObject handle to edit1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA Hints gethObjectString returns contents of edit1 as text str2doublegethObjectString returns contents of edit1 as a double Executes during object creation after setting all properties function edit1CreateFcnhObject eventdata handles hObject handle to edit1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles empty handles not created until after all CreateFcns called Hint edit controls usually have a white background on Windows See ISPC and COMPUTER if ispc isequalgethObjectBackgroundColor get0defaultUicontrolBackgroundColor sethObjectBackgroundColorwhite end Executes on button press in pushbutton1 function pushbutton1CallbackhObject eventdata handles hObject handle to pushbutton1 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA p gethandlesedit1UserData if strcmpp123 1 deletehObject deletehandlespushbutton2 deletehandlesedit1 deletehandlestext2 deletehandlestext3 deletehandlestext1 deletehandlestext4 msgboxWHY DONT U READ HELP BEFORE STARTINGHELPhelpmodal sethandlesADNWIMAGEenableon sethandlesDELETEenableon sethandlesTRAININGenableon sethandlesSTARTenableon sethandlesRESETALLenableon sethandlesEXITenableon sethandlesHELPenableon sethandlesDATABASEenableon sethandlestext5visibleon else msgboxINVALID PASSWORD FRIEND XXWARNINGwarnmodal end Executes on button press in pushbutton2 function pushbutton2CallbackhObject eventdata handles hObject handle to pushbutton2 see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA close gcf function ADNWIMAGECallbackhObject eventdata handles hObject handle to ADNWIMAGE see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA function DELETECallbackhObject eventdata handles hObject handle to DELETE see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA function TRAININGCallbackhObject eventdata handles hObject handle to TRAINING see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA function STARTCallbackhObject eventdata handles hObject handle to START see GCBO eventdata reserved to be defined in a future version of MATLAB handles structure with handles and user    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students