GUI
From SoftwarePractice.org
GUI stands for Graphical User Interface. This enables the user to interact with the computer with graphical images and text.(Webopedia 2001)[1]
In this project GUI is used to load a barcode specified which is then decoded using the matlab code. The barcode image's filename is specified in the GUI space provided and 'Load Image' button created is pressed. This loads the image in GUI and displays the corresponding barcode by decoding it. The obtained GUI looks as shown below:
Figure:GUI when the barcode is read by Matlab
The DecoderGui M-file creates a new Decoder which calls the local function called CALLBACK in DecoderGui.M with the specified input arguments. The input arguments are the following: hObject which is a handler for the figure, handles is a structure with handles and user data and varargin sends command line arguments to DecoderGui.
In the space provided name of the barcode image is specified. When ‘Load Image’ button is pressed GUI access the matlab code to run and decode the barcode. This barcode is then displayed at the bottom of the window. If the barcode decoder is unable to read a barcode then an error message is displayed ‘Your Code Is: ZZZ’. This happens if the characters stored in the name function are not the same as that decoded by the program.
Figure: Error message displayed when Matlab cannot read the barcode
Reference
[1].Webopedia, 2001, ‘Graphical User Interface’, URL: http://www.webopedia.com/TERM/G/Graphical_User_Interface_GUI.html, last visited, 1st October 2006.
Return to Barcode Recognition main page


