File Exchange

image thumbnail

Machine Vision System - Color Recognition

version 1.0 (3.22 MB) by

This gui is a demonstration on the concept of machine vision system for color recognition

2 Downloads

Updated

View License

This gui is a simple demonstration of machine vision system deployed for color matching.
The opening gui program is eyekon.m and the rest of the m files are either supporting or function files.

USAGE: eyekon

Except the main color matching function which are the p-files, I have all other functions as m files to

protect the I.P.
This is an actual implementation of the system at one of the 2 wheeler vehicle manufacturing company
I have modified a little as the main implementation required camera interface and hardware triggering

The main objective of this project were are:
1. To identify the three basic colors, i.e red, black and blue on hardware trigger,<I have modified this part

as hardware triggering would have had been difficult to simulate for everyone, so it is either timer based

"Auto Inspect" or "Manual Inspect" >
2. Give out an Audio -Visual Indication on Color Change
3. Display a "model" wearing that specific colored dress on color change
4. Display NOCOLOR when color is not identified
5. Functions like Auto Hide, Animation on/off, Audio indication on/off etc
6. Control Panel to add more colors
7. This program also stores last selected parameters on gui close, like position, auto hide, sound alert

and on_top parameters.

I would like to thank all those who contributed to making this code a success. The link of the thread

found here < http://www.mathworks.com/matlabcentral/newsreader/view_thread/164139 >

User comments welcome

Comments and Ratings (4)

Mr Smart

Yawar Rehman

Vihang Patil

Vihang Patil (view profile)

Samuel. This program is developed in R2006b, a version which is much more newer than the one you are using Matlab6p5. You will need to update your software to atleast R2006b or higher

Samuel Sam

I execute eyekon but encountered the following errors:

??? Error using ==> load
Unable to read MAT file C:\MATLAB6p5\work\maingui.fig

See FILEFORMATS for a list of known file types and the functions used to read them.

Error in ==> C:\MATLAB6p5\toolbox\matlab\iofun\hgload.m
On line 45 ==> fileVars = load(filename,'-mat');

Error in ==> C:\MATLAB6p5\toolbox\matlab\graphics\openfig.m
On line 89 ==> [figs, oldvis] = hgload(filename, struct('Visible','off'));

Error in ==> C:\MATLAB6p5\toolbox\matlab\uitools\gui_mainfcn.m (local_openfig)
On line 184 ==> gui_hFigure = openfig(name, singleton, 'auto');

Error in ==> C:\MATLAB6p5\toolbox\matlab\uitools\gui_mainfcn.m
On line 82 ==> gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);

Error in ==> C:\MATLAB6p5\work\maingui.m
On line 40 ==> [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

Error in ==> C:\MATLAB6p5\work\eyekon.m
On line 2 ==> h = maingui;

Can you tell me what's wrong with my configuration. Thanks!

MATLAB Release
MATLAB 7.3 (R2006b)
Acknowledgements

Inspired by: splash.m(revised)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video