Using Bullseye 32-bit on a Pi with a V2.1 camera module attached, I changed that python code to use a filename without slashes in it, then it worked OK.I have NOT enabled legacy camera in raspi-config. It is auto-detected.
My /boot/config.txt hasThe captured files were in /home/pi/Pictures/ etc.
Code:
fileName = "img_" + datetime.now().strftime("%d-%m-%Y-%H:%M:%S")
My /boot/config.txt has
Code:
camera_auto_detect=1
Code:
img_03-03-2024-16:42:22.jpg
Statistics: Posted by neilgl — Sun Mar 03, 2024 4:43 pm