def _set_annotate_frame_num(self, value):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
    mp.enable = bool((value or mp.text))
    mp.show_frame_num = bool(value)
    self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE] = mp
def _set_annotate_frame_num(self, value):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
    mp.enable = bool((value or mp.text))
    mp.show_frame_num = bool(value)
    self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE] = mp