Fotobox2/picamera.py
2025-06-27 19:24:45 +02:00

33 lines
642 B
Python

# import time
#
# from PIL import Image
#
# from config import DEBUG
#
#
# # noinspection PyMethodMayBeStatic,PyShadowingBuiltins
# class PiCamera:
# def __init__(self):
# pass
#
# def start_preview(self):
# pass
#
# def capture(self, output, format):
# with Image.open("./data/demo.jpg") as img:
# img.save(output, "JPEG")
# if not DEBUG:
# time.sleep(0.5)
#
# def stop_preview(self):
# pass
#
# def close(self):
# pass
#
# def __enter__(self):
# return self
#
# def __exit__(self, exc_type, exc_val, exc_tb):
# self.close()