def _set_sharpness(self, value):
    self._check_camera_open()
    if (not ((- 100) <= value <= 100)):
        raise PiCameraValueError(('Invalid sharpness value: %d (valid range -100..100)' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_SHARPNESS] = Fraction(value, 100)
def _set_sharpness(self, value):
    self._check_camera_open()
    if (not ((- 100) <= value <= 100)):
        raise PiCameraValueError(('Invalid sharpness value: %d (valid range -100..100)' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_SHARPNESS] = Fraction(value, 100)