We are running a loop that starts of at 1920x1080 takes a picture then switches to 4624x3472 and takes another picture. We are finding that the camera will lock up intermittently. Here is a snippet of our code.
#Start by declaring a preview_config and a still_config:
while True:
for i in range(150):
picam2.capture_file(“/mnt/ramdisk/PiP.jpg”)
picam2.stop()
picam2.configure(configMainCam)
picam2.start()
picam2.capture_file(“/home/pi/Archive/{}.jpg”.format(datetime.now().strftime(“%Y-%m-%d %H:%M:%S”)))
picam2.stop()
picam2.configure(configPiP)
picam2.start()