Ask Your Question
0

how to detect colors precisely ?

asked 2015-08-03 10:20:14 -0600

Akki gravatar image

Hello,

I want to detect the color from the tube, I am using In range function and HSV plan , its work fine for one by one tube,but as shown in figure, all tube has not exactly same color. image description

is there any way to detect this color with minimum error. Please give me any suggestion how can I do color detection precisely.

Thank you very much in advance.

edit retag flag offensive close merge delete

Comments

You looking for the color of the tube itself or for the color of the contents? Because those regions will certainly influence your decision technique!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-03 10:30:16 -0600 )edit

thank you for comments, actually I am looking for the contents of the tubes.

Akki gravatar imageAkki ( 2015-08-04 02:12:36 -0600 )edit

Ow then why not go the other way around? Start by segmenting the tube, background and sticker color, which will be constant in this case. Then look for other colors and cluster them? You know in advance how many tubes will be there?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-04 07:12:14 -0600 )edit
1

Thank you for comments. there is only one tube at a time, this is just sample picture with multiple tubes with different filling. I will try according to your suggestion.

Akki gravatar imageAkki ( 2015-08-05 02:31:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-24 05:30:29 -0600

Akki gravatar image

sample tume images

camera capture one tube at a time,

tube should be like this or any other view like some time barcode is visible in frame or some time its not visible

and some time frame is without tube,

image description

I am looking for logic to have an idea that whether tube is present or not in the frame. as in my case there are different back ground, other wise image subtraction was working good to check the equality of images.

Is there any suggestion for detecting the presence of tube.

Thank you very much in advance.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-03 10:20:14 -0600

Seen: 306 times

Last updated: Aug 24 '15