Example: 01-Camera/00-Snapshot/emboss_snapshot.py
import sensor
import time
import machine
sensor.reset()  
sensor.set_pixformat(sensor.RGB565)  
sensor.set_framesize(sensor.QVGA)  
sensor.skip_frames(time=2000)  
led = machine.LED("LED_BLUE")
start = time.ticks_ms()
while time.ticks_diff(time.ticks_ms(), start) < 3000:
    sensor.snapshot()
    led.toggle()
led.off()
img = sensor.snapshot()
img.morph(1, [+2, +1, +0, +1, +1, -1, +0, -1, -2])  
img.save("example.jpg")  
raise (Exception("Please reset the camera to see the new file."))