Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with color pattern matching

I have implemented a color pattern matching on bar graphs with white

background. I am attching the snapshot of the result I got. I have made

small color bar on the left in the snap image as a template and I am able to

do color pattern matching and detect patterns using color and shape. The template

is matching only a part of real time image and when u look at the result snapshot

I have attched there is something wrong.

 

Is there anyway I can scale my template to fit perfectly on any found color

pattern and make it match, is there anyway to find the size of objects in

real time image.  I am also attaching my vi ti this mail.

Download All
0 Kudos
Message 1 of 4
(3,516 Views)

Can you attach a original image? Since you dont want to differentiate the colors you can also convert it to a grayscale and use the normal pattern matching. Even simpler if the case is just to identify the objects and you are sure that there will be colors if object is there is to apply threshold and do particle analysis.

 

If the idea is to determine whether the color is there in the object then also you can go for greyscale processing. Only when you want to ensure certain colors are present or to determine color structure which are very close you can use color processing.

0 Kudos
Message 2 of 4
(3,499 Views)

Hey

I got what you are trying to say. The basic idea is to detect

if there are any bad colors. Let us say if the colors are off by

25%, I should be able to detect it or fail. Color identification is important

to my application. I am posting my original image as an attchment.

 

Sorry if I was not clear in my last post. My biggest problem is the template size

and its detection. Let us say if size of the object is same in a real time image, then it

detects it. If the size of object is smaller then it doesnot detect it. I think this problem

is even in grey scale pattern matching. If the size of object is bigger it detects the

object but only part of it as in my last post. I am very new to machiune vision.

I hope you got my point.

 

 

MY GOAL IS TO DETECT SAME OBJECT OF DIFFERENT SIZES USING A SINGLE TEMPLATE.

IS THAT POSIIBLE IN COLOR PATTERN MATCHING.

 

 

 

0 Kudos
Message 3 of 4
(3,491 Views)
0 Kudos
Message 4 of 4
(3,449 Views)