def run(self): with PiCamera() as camera: camera.resolution = (2464,2464) camera._set_rotation(180) camera.capture("../_temp/snapshot.jpg")