from picamera import PiCamera
from time import sleep
camera = PiCamera()

# We can adjust the Brightness and contrast of the image

camera.start_preview()
for i in range(100):
    camera.annotate_text = "Brightness: %s" % i
    camera.brightness = i
    sleep(0.1)
camera.stop_preview()


camera.brightness = 50
camera.start_preview()
for i in range(100):
    camera.annotate_text = "Contrast: %s" % i
    camera.contrast = i
    sleep(0.1)
camera.stop_preview()
from picamera import PiCamera
from time import sleep
camera = PiCamera()

# We can adjust the Brightness and contrast of the image

camera.start_preview()
for i in range(100):
    camera.annotate_text = "Brightness: %s" % i
    camera.brightness = i
    sleep(0.1)
camera.stop_preview()


camera.brightness = 50
camera.start_preview()
for i in range(100):
    camera.annotate_text = "Contrast: %s" % i
    camera.contrast = i
    sleep(0.1)
camera.stop_preview()
# We can adjust the Brightness and contrast of the image