so i made a camera app for the hq camera but i cannot take any sort of pictures on my raspberry pi 4!
from guizero import App, PushButton
from picamera import PiCamera
camera = PiCamera()
app = App()
def preview():
camera.start_preview(fullscreen=False, window = (50,150,2048,1152))
button = PushButton(app, command=preview, text="preview")
def stop_preview():
camera.stop_preview()
button = PushButton(app, command=stop_preview, text="stop preview")
def shutter():
camera.capture('/home/pi/Desktop/image.jpg')
button = PushButton(app, command=shutter, text="shutter")
app.display()
question from:https://stackoverflow.com/questions/65867654/unable-to-capture-images-using-python-image-gets-corrupted