Skip to content

Color Detection


Example 1

The "Get Largest Continuous Area" will make the results only based on the largest continuous area (the white or detected range). As you can see when it is selected the normalized centroid will only be at the largest circle. The other parameter used is the "Detect Area Ratio Above". This parameter will see if the Area ratio which is the white area over the black area is greater then its value or not. if it is, then it will start giving values or save the detection details to the .csv file (if the "Save Results" is selected). Note that if the Get Largest Continuous Area is selected then the area ratio will be less since the other three circle will not be included.

Example 2

The example shows you how to deal with an extreme case where if you want to select an object (get its centroid) and it consist of multiple colors and there are other small objects around it with the same color (there is noise) and it is not the only object with the same color. Note that in the example we made the object of two colors but of course if it is composed of three or even more colors, we could simply add a third or a fourth color and go with the same procedure.