def _get_annotate_foreground(self):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
    if ((self._camera.annotate_rev == 3) and mp.custom_text_color):
        return Color.from_yuv_bytes(mp.custom_text_Y, mp.custom_text_U, mp.custom_text_V)
    else:
        return Color('white')
def _get_annotate_foreground(self):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
    if ((self._camera.annotate_rev == 3) and mp.custom_text_color):
        return Color.from_yuv_bytes(mp.custom_text_Y, mp.custom_text_U, mp.custom_text_V)
    else:
        return Color('white')