from sense_hat import SenseHat
import picamera
import time
from PIL import Image
camera=picamera.PiCamera()
camera.resolution=(64,64)
camera.start_preview()
#time.sleep(1)
camera.capture('p.jpg')
camera.stop_preview()
img=Image.open('p.jpg')
newImg=img.resize((8,8))
newImg.save('pp.jpg')
sense=SenseHat()
sense.load_image('pp.jpg')