added functionality to read from calibration output, as well as finding average rgb colors to use when drawing boxes on ui