Matlab Graphical User Interface
From SoftwarePractice.org
Currently:
To view - run GUI.m
The method employed by our group regarding the construction of the wiki was to manually create the code, as opposed to using the GUIDE toolbox. We found that it was much simpler to set and code the GUI the way we had planned.
The initial GUI is accessed through typing "GUI" in the Matlab command window. From here, the user is able to select the file they wish to decode from a drop down list of files. We have tried to include as many files as possible to show all aspects of our program.
The user is also able to select whether they wish to deblur the image selected and once they are happy with their selection, they are able to initate the processing of the barcode.
Once the barcode is processed, an output window is utilised to show the related numeric code of the barcode. Within this window, the program is also able to tell the user what the error was if it was not able to process the image. The errors are: read error, checksum error, rotation error.
Input
Controlled by the GUI.m script.
Axes
Selected file is displayed to axes.
Pop-up Menu
Lists a set of example images which accesses:
The Index_file.m script simple takes the users selection, from the pop-up menu, and returns the image file name. This provided a very neat solution to the issue of providing the user with a concise set of images for testing purposes.
The idea of using a pop-up menu to provide user access to file selection was justified as we wanted to control the users range of options so that there was less chance of the system crashing. For example if somebody selected an uncompatibile file and which could not be displayed to the axes, such as an executable.
'Perform Deblurring' Checkbox
Once the user has selected and displayed an example image, then the user has the option of performing a debluring algorithm before processing the image to extract the barcode.
Process Push Button
Once the user is satisfied that the current image is to be processed then the push button is activated.
Output
Controlled by the output_data.m script.
After MATLAB has finished processing the data, a new window pops up.
Axes
Displays the final extacted images barcodee.
Ouput Text Box
Displays to the user the results of the processing and hopefully the correct human-readable code represented by the barcode.
Read Error Occurred
Will be checked if a read error occurred and the system catches the error before causeing the system to crash.
Checksum Correct
Will be checked after the barcode has been successfully processed and provides the user with verification that the code is correct.
Image Reversed
Will be checked if the program realises that the image was reversed or upside down. A flag is set off if the read function detects an upside down barcode and outputs the flag to the checkbox.
Previously:
The output of the GUIDE function will be a .fig file and a .m file. The .m file will allow us to code the individual components of the associated .fig file so that the .fig file will act as a GUI. This is ideal as individual components of the application may be coded and tested independantly.
As a result of the effective package the GUI component of the application is practically complete and now only requires the implementation of the MATLAB code.
Back to Team F's Main Page Team F: Barcode Reading from Image



