<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Camera Explorer
Step1:  Set the camera to take a bit smaller photos (lower resolution). This will make our image processing a bit faster.
Step2:  One can see all the available effects by listing the camera EFFECTS
Step3:  Let's just loop through some interesting ones
Step4:  Let's grab a few more photos to do some work on.  Try to move in the frame as these are taken.
Step5:  Now we'll clean up our camera object...
<ASSISTANT_TASK:>
Python Code:
from picamera import PiCamera, Color
from time import sleep
camera = PiCamera()
Explanation: Camera Explorer
End of explanation
camera.resolution = (480, 320)
camera.vflip = True
camera.hflip = True
camera.start_preview()
camera.annotate_foreground = Color('white')
camera.annotate_text = "Colorswap Effect"
camera.annotate_text_size = 10
camera.image_effect = 'colorswap'
sleep(2)
camera.capture('img/colorswap.jpg')
camera.stop_preview()
Explanation: Set the camera to take a bit smaller photos (lower resolution). This will make our image processing a bit faster.
End of explanation
camera.IMAGE_EFFECTS
Explanation: One can see all the available effects by listing the camera EFFECTS
End of explanation
camera.start_preview()
sleep(2)
cool_effects = ['none', 'watercolor', 'negative', 'emboss', 'washedout', 'solarize', 'oilpaint', 'sketch']
for effect in cool_effects:
    camera.image_effect = effect
    camera.annotate_text = "Effect: %s" % effect
    camera.capture('img/effect-%s.jpg' % effect)
    sleep(1)
camera.stop_preview()
Explanation: Let's just loop through some interesting ones:
End of explanation
camera.start_preview()
sleep(2)
camera.image_effect = 'none'
camera.annotate_text = ""
for i in range(3):
    camera.capture('img/frame-%s.jpg' % i)
    sleep(2)
camera.stop_preview()
Explanation: Let's grab a few more photos to do some work on.  Try to move in the frame as these are taken.
End of explanation
camera.close()
Explanation: Now we'll clean up our camera object...
End of explanation
<END_TASK>