LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect two different color pattern at a same time ??

Solved!
Go to solution

Hello,

 

I want to detect two different color pattern at a same time, I tried with attached vi but I can only detect one colour pattern in that vi.

Could any one please guide me how can I do same for two different colors.

 

Thank you very much in Advance.

 

With greetings,

Akki.

0 Kudos
Message 1 of 10
(4,853 Views)

Hi Akki,

 

Unfortunately you where a little brief in your Problem description. I attached a VI. Is that what you want?

 

Regards

René

Message 2 of 10
(4,806 Views)

...and again for LV 9

Message 3 of 10
(4,788 Views)

hiii,

 

Thank you very much for your reply Reschri.

I want to detect two coulor simultaniosly.

could you please explain your vi, what you have done.

 

I am able to do for one but not for two, and if possible then could you please guide me that how can i measure distance as well.

for example i want to measure distance of any object for example my mobile via usb camera then how can i do so.

 

Please guide me regarding to this,

 

thank you very much for your help.

 

 

0 Kudos
Message 4 of 10
(4,727 Views)

I tried with the vi but I am getting error as I have attached here.

The image is not large enough for operation

 

Thank you very much for your help.

 

and also need guidance for how to detect the distance for any object.

 

please guide me.

 

thank you very much in advance.

0 Kudos
Message 5 of 10
(4,718 Views)

Hi,

 

it is a little bit difficult to help you her, as I cannot know what exactly you are trying to match.

 

You seem to have a template called "green.png" and you try to match in your aquired picture. Is the Region of interest perhaps smaller than the template?

 

I can´t guide you through measuring distance in a general way. Its not a function to just "switch on". To make it work you have to consider many issues an first have to decide, which physical principal you want to use.

 

For an introduction to the theme:

(http://www.ni.com/white-paper/14103/en/)

 

From your questions I get the impression that you have not much experience with NI Vision and perhaps doing a tutorial first would help, as in the formum we can discuss specific issues but not providing basic training

 

http://digital.ni.com/manuals.nsf/websearch/90F38BCB007B8194862578A900591706

 

Regards,

René

 

 

0 Kudos
Message 6 of 10
(4,704 Views)

Thank you very much for your reply.

 

Yes I am first time dealing with Ni-vision.

I want to match two different color pattern for example green And other red.

I can detect one color easily but when I am trying to detect more then one color then I am getting problem.

So please guide me how to detect more then one color.

I have read the basic tutorials regarding to Ni-Vision.

 

Thank you very much for your help.

And for distance may be I have to make myself more clear Thank you very much for documentations regarding to that.

 

 

0 Kudos
Message 7 of 10
(4,699 Views)
Hi AnkitRamani,
Please goto
Help>>Find Examples>>Search>>Color>>Color Classification example.
It has multiple color classification.
Thanks
uday
Message 8 of 10
(4,672 Views)

Thank you very much for your help and time.

 

Now I want to make one logic in that when particular color patter is detect then vi should be stop. 

Could you please give me suggestion how to do so.

I tried with logic that Number of matching is not 0 then vi should stop other wise it runs but its not working properly so I am looking for other way to solve this problem.

 

Thank you very much again for your help.

 

0 Kudos
Message 9 of 10
(4,651 Views)
Solution
Accepted by AnkitRamani
Sure. Just keep case structure and then based on the condition make stop button value to TRUE if you want to end the code else keep FALSE.
Thanks
uday
Message 10 of 10
(4,645 Views)