Allow the YUV thresholds to be set as a parameter.