09-18-2019 03:00 PM
How can I detect different surfaces which also are of different colors, using Vision Builder AI?The goal is to detect the different models of pieces and also prevent some of them from being assembled in an incorrect model. Any suggestion? Please see the attached ZIP file which contains some samples of the different pieces I'm trying to differentiate.
Thanks in advance for you support.
Joemen
Solved! Go to Solution.
09-19-2019 09:32 AM
On this question, you'll have to determine two things.
1. A feature on each surface that differentiates it from the others, and
2. A feature that is consistent between every sample of that surface.
The thing that jumps out at me is the "holes" in one of the sample images you shared. You can very easily threshold that image to a binary image, then count the number of particles with the "Detect objects" step.
You will need to find a pattern that is consistent over every sample of the same material. To me, those patterns in the material look semi-random, so you're not going to be able to get any good pattern matching on them. The one thing I would suggest is using the Match Colors step, which will compare the RGB color content of a region of interest to a reference color spectrum that you can define, that's the best way to potentially tell colors apart. This will also be easier if you have brighter pictures, as it looks like these example pictures are a bit dark.
09-19-2019 11:46 AM
Hi Connor,
Thanks for your response.
If I use Match Colors step how can I define a reference color spectrum in VBAI? if you have some sample that would be great!, I'm still a novice using this software!. And also will try to improve the brightness of the pictures.
Thanks in advance.
Joemen
09-19-2019 02:27 PM
It's super simple to create a reference color spectrum, all you need is a "template" image, and you can match against the colors in the template. It will show you a spectrum of the colors pulled out of the template image that it's trying to match against under the Template tab in the Match Colors step.
09-19-2019 04:43 PM
Hi Connor,
Let me try will let you know the results.
Thanks
Joemen