1st, Thanks to Kwabena for pointing me to the Threshold Editor under Tools → Machine Vision. My goal is to fine-tune the threshold values for the Example script under Examples (10-Color-Tracking → single_color_code_tracking.py). I am using a color swatch consisting of red and green adjacent to each other. In the example code, two sets of thresholds for LAB values are used with the “merge=True” parameter. The example script has generic red and green thresholds.
My question is about the proper use of the Threshold Editor to derive new values for the specific colors I am using. Should I expose the frame buffer to each of my colors (RED then GREEN) and copy down the threshold values for each color separately in the example OR do I expose the color swatch of both colors together and use that as single set of threshold values for the example and not invoke “merge=True” in the code?
Here are my values from my trials of both techniques. The combined set of values looks suspiciously like a “merged set” of values from my cursory examination of the values. What do the authors of the Threshold Editor say?
RED alone yielded these min/max LAB values for L, and A, then B - (44, 82, -4, 79, -4, 53)
GREEN alone yielded these values (58, 81, -38, 5, -1, 38)
When I supplied a frame buffer of both colors together, the Editor came up with these values (53, 91, -56, 75, -5, 44)
Note that the 3rd set looks a lot like a crude merge of the A and B values for each color alone. At least, I think so.