Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

C:\fakepath\good.png

C:\fakepath\bad.png

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

C:\fakepath\good.png

C:\fakepath\bad.png

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

I was thinking of first identifying and location the component ( shown in Green below) and then selecting 2 X ROI relative to that green area. shown in red. THen compare the color in these read boxes against the colors of of the backgrounds ( with no wires) ... is this possible how could i do it ? I know hoe to identify the 2 X ROI but not sure how i can compare the colors . Also, one red box has a backround that is very similiar to the cable.

C:\fakepath\test.png

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

C:\fakepath\good.png

C:\fakepath\bad.pngC:\fakepath\good.png

C:\fakepath\bad.png

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

I was thinking of first identifying and location the component ( shown in Green below) and then selecting 2 X ROI relative to that green area. shown in red. THen compare the color in these read boxes against the colors of of the backgrounds ( with no wires) ... is this possible how could i do it ? I know hoe to identify the 2 X ROI but not sure how i can compare the colors . Also, one red box has a backround that is very similiar to the cable.

C:\fakepath\test.pngC:\fakepath\test.png

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

C:\fakepath\good.png

C:\fakepath\bad.png

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

Below are images:

Wires in correct location : image description

Wires in Wrong location: image description

Image without any wires : image description

I was thinking of first identifying and location the component ( shown in Green below) and then selecting 2 X ROI relative to that green area. shown in red. THen compare the color in these read boxes against the colors of of the backgrounds ( with no wires) ... is this possible how could i do it ? I know hoe how to identify the 2 X ROI but not sure how i can compare the colors . Also, one red box has a backround that is very similiar to the cable.

C:\fakepath\test.png

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

Below are images:

Wires in correct location : image description

Wires in Wrong location: image description

Image without any wires : image description

I was thinking of first identifying and location the component ( shown in Green below) and then selecting 2 X ROI relative to that green area. shown in red. THen compare the color in these read red boxes against the colors of of the backgrounds ( with no wires) ... is this possible how could i do it ? I know how to identify the 2 X ROI but not sure how i can compare the colors . Also, one red box has a backround that is very similiar to the cable.

C:\fakepath\test.png

compare two pictures of color

Hi,

Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .

What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.

Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.

I'm looking at template match , but from what i see it does not quite compare colors.

Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?

all help greatly appreciated thanks

The Picture above has black wires turning at an almost 90 degree angle, this is bad. The first picture has wires turning gradually , this is good.

I'd like to inspect each and ensure the wires turn gradually, and indicate a filure if they do not.

Below are images:

Wires in correct location : image description

Wires in Wrong location: image description

Image without any wires : image description

I was thinking of first identifying and location the component ( shown in Green below) and then selecting 2 X ROI relative to that green area. shown in red. THen Then compare the color in these red boxes against the colors of of the backgrounds ( with no wires) ... is this possible how could i do it ? I know how to identify the 2 X ROI but not sure how i can compare the colors . Also, one red box has a backround that is very similiar to the cable.

C:\fakepath\test.png