def _get_brightness(self):
    self._check_camera_open()
    return int((self._camera.control.params[mmal.MMAL_PARAMETER_BRIGHTNESS] * 100))
def _get_brightness(self):
    self._check_camera_open()
    return int((self._camera.control.params[mmal.MMAL_PARAMETER_BRIGHTNESS] * 100))