07-27-2017 09:25 AM
Hello all,
I'm new to both to Machine Vision and the LabVIEW Machine Vision Toolkit (although I’ve tinkering with it daily for the past 3 weeks). The first challenge I've set myself to involves color: I want to identify the color of the object that’s under the camera in a robust way using LabVIEW. I know, it is an enourmous problem.
Before working with “the real deal”, I’m trying the color-related VIs that LabVIEW has to offer with "pure-color" '.png' files. I know that it is a vast and complex field, where things that seem very simple are greatly complex.
So far, I’ve kind of discarded some ‘possible solutions’ for my problem, such as:
My last hope was to train a color classification file with a great number of color images (pure RGB-generated by according to a RAL spreadsheet), but no matter the Engine Options, the results are abysmal (both on the Color Classification Training Interface and by training on the block diagram [and that dammed feature vector…]).
What would be the most effective approach to robustly identify colors using LabVIEW?
At first, I hope to robustly identify basic colors. Then, I hope to be able to identify correctly colors like RAL 2000, 2005 and 3001.
I know that my problem is more related to Machine Vision concepts than to LabVIEW, but this community is great and I not only want to be a part of it but want to start contributing to it: maybe some answers here could answer questions of other shy users.
I'm planning to attend to the LabVIEW Machine Vision Course that we'll have here in Brazil at the end of September and I'm finishing the LabVIEW Core 1 Self-Pacing course (and hoping to start Core 2 by the end of the week).
Thank you in advance.
Vinicius.
08-01-2017 11:14 AM - edited 08-01-2017 11:29 AM
Also, you can see a LabVIEW example called "Color Classification", which is shipped with Vision Development Module and found inside Example Finder (LabVIEW > Help menu > Find Examples...).
Therefore, if you have LabVIEW and Vision Development Module installed, you can see/use the example code. There are others useful examples.
You can see more information on this page: What's New in the NI Vision Development Module
The topic "New Color Classification Functionality" shows the "Color Classification Training Interface", what is very similar with the "Color Classification.vi" example.
Maybe, these stuff can help you to start developing your application.
08-04-2017 05:45 AM
Thanks for the answer, DanWilfer!
I had read the page you linked on your reply before (albeit not as carefully on the first time). The suggestion of not using samples of a pure color may be a game-changer (I sure hope so).
I am currently basing my tests on the "Color Classification" example you suggested.
For training my classifier, I've generated some images of RAL-based RGB colors with “some sprinkles” of other RALS of the "same color". For example, I’m generating, pixel by pixel, a RAL 1012 199-180-070 yellow but with pixels of RAL 1013-1018, as the image attached on this reply.
The trained classifier is still messing up badly some classifications, but I’ll continue trying to make it work.
I'll update my post as soon as I get some positive results