Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:31:04,969 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:31:05,652 - INFO - taking picture MAIN: 2026-06-08 06:31:05,652 - INFO - we take 1 photos in this while loop MAIN: 2026-06-08 06:31:05,652 - INFO - /home/pi/Desktop/images/08062026/06/30/image_08062026_06_31_04_60500.jpg MAIN: 2026-06-08 06:31:05,653 - INFO - duration: 0.9793920289994276 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:32:05,113 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:32:05,767 - INFO - taking picture MAIN: 2026-06-08 06:32:05,767 - INFO - we take 2 photos in this while loop MAIN: 2026-06-08 06:32:05,767 - INFO - /home/pi/Desktop/images/08062026/06/31/image_08062026_06_32_05_60175.jpg MAIN: 2026-06-08 06:32:05,767 - INFO - duration: 0.9188270059994466 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:33:05,008 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:33:05,662 - INFO - taking picture MAIN: 2026-06-08 06:33:05,662 - INFO - we take 3 photos in this while loop MAIN: 2026-06-08 06:33:05,662 - INFO - /home/pi/Desktop/images/08062026/06/32/image_08062026_06_33_05_59899.jpg MAIN: 2026-06-08 06:33:05,662 - INFO - duration: 0.9140731200004666 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:34:05,251 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:34:05,905 - INFO - taking picture MAIN: 2026-06-08 06:34:05,905 - INFO - we take 4 photos in this while loop MAIN: 2026-06-08 06:34:05,905 - INFO - /home/pi/Desktop/images/08062026/06/33/image_08062026_06_34_05_60236.jpg MAIN: 2026-06-08 06:34:05,905 - INFO - duration: 0.9206928149997111 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:35:05,484 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:35:06,138 - INFO - taking picture MAIN: 2026-06-08 06:35:06,138 - INFO - we take 5 photos in this while loop MAIN: 2026-06-08 06:35:06,138 - INFO - /home/pi/Desktop/images/08062026/06/34/image_08062026_06_35_05_60218.jpg MAIN: 2026-06-08 06:35:06,139 - INFO - duration: 0.9359562649997315 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:36:04,673 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:36:05,325 - INFO - taking picture MAIN: 2026-06-08 06:36:05,325 - INFO - we take 6 photos in this while loop MAIN: 2026-06-08 06:36:05,325 - INFO - /home/pi/Desktop/images/08062026/06/35/image_08062026_06_36_04_59186.jpg MAIN: 2026-06-08 06:36:05,325 - INFO - duration: 0.9360133059999498 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:37:04,579 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:37:05,231 - INFO - taking picture MAIN: 2026-06-08 06:37:05,231 - INFO - we take 7 photos in this while loop MAIN: 2026-06-08 06:37:05,232 - INFO - /home/pi/Desktop/images/08062026/06/36/image_08062026_06_37_04_59945.jpg MAIN: 2026-06-08 06:37:05,232 - INFO - duration: 0.8965178480002578 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:38:04,781 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:38:05,482 - INFO - taking picture MAIN: 2026-06-08 06:38:05,482 - INFO - we take 8 photos in this while loop MAIN: 2026-06-08 06:38:05,482 - INFO - /home/pi/Desktop/images/08062026/06/37/image_08062026_06_38_04_60172.jpg MAIN: 2026-06-08 06:38:05,482 - INFO - duration: 0.9747888809997676 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:39:04,990 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:39:05,643 - INFO - taking picture MAIN: 2026-06-08 06:39:05,644 - INFO - we take 9 photos in this while loop MAIN: 2026-06-08 06:39:05,644 - INFO - /home/pi/Desktop/images/08062026/06/38/image_08062026_06_39_04_60217.jpg MAIN: 2026-06-08 06:39:05,644 - INFO - duration: 0.9186843799998314 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:40:05,176 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:40:05,869 - INFO - taking picture MAIN: 2026-06-08 06:40:05,870 - INFO - we take 10 photos in this while loop MAIN: 2026-06-08 06:40:05,870 - INFO - /home/pi/Desktop/images/08062026/06/39/image_08062026_06_40_05_60222.jpg MAIN: 2026-06-08 06:40:05,870 - INFO - duration: 0.9225662409999131 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:41:05,182 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:41:05,883 - INFO - taking picture MAIN: 2026-06-08 06:41:05,884 - INFO - we take 11 photos in this while loop MAIN: 2026-06-08 06:41:05,884 - INFO - /home/pi/Desktop/images/08062026/06/40/image_08062026_06_41_05_59975.jpg MAIN: 2026-06-08 06:41:05,884 - INFO - duration: 0.9614598360003583 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:42:05,275 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:42:05,929 - INFO - taking picture MAIN: 2026-06-08 06:42:05,930 - INFO - we take 12 photos in this while loop MAIN: 2026-06-08 06:42:05,930 - INFO - /home/pi/Desktop/images/08062026/06/41/image_08062026_06_42_05_60090.jpg MAIN: 2026-06-08 06:42:05,930 - INFO - duration: 0.9166849189996356 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:43:05,365 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:43:06,017 - INFO - taking picture MAIN: 2026-06-08 06:43:06,017 - INFO - we take 13 photos in this while loop MAIN: 2026-06-08 06:43:06,017 - INFO - /home/pi/Desktop/images/08062026/06/42/image_08062026_06_43_05_60086.jpg MAIN: 2026-06-08 06:43:06,017 - INFO - duration: 0.917978896999557 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:44:05,666 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:44:06,370 - INFO - taking picture MAIN: 2026-06-08 06:44:06,370 - INFO - we take 14 photos in this while loop MAIN: 2026-06-08 06:44:06,371 - INFO - /home/pi/Desktop/images/08062026/06/43/image_08062026_06_44_05_60284.jpg MAIN: 2026-06-08 06:44:06,371 - INFO - duration: 0.9862612970000555 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:45:04,632 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:45:05,290 - INFO - taking picture MAIN: 2026-06-08 06:45:05,291 - INFO - we take 15 photos in this while loop MAIN: 2026-06-08 06:45:05,291 - INFO - /home/pi/Desktop/images/08062026/06/44/image_08062026_06_45_04_59014.jpg MAIN: 2026-06-08 06:45:05,291 - INFO - duration: 0.8920408270005282 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:46:04,746 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:46:05,399 - INFO - taking picture MAIN: 2026-06-08 06:46:05,399 - INFO - we take 16 photos in this while loop MAIN: 2026-06-08 06:46:05,399 - INFO - /home/pi/Desktop/images/08062026/06/45/image_08062026_06_46_04_60070.jpg MAIN: 2026-06-08 06:46:05,399 - INFO - duration: 0.9296834119995765 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:47:04,732 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:47:05,386 - INFO - taking picture MAIN: 2026-06-08 06:47:05,386 - INFO - we take 17 photos in this while loop MAIN: 2026-06-08 06:47:05,386 - INFO - /home/pi/Desktop/images/08062026/06/46/image_08062026_06_47_04_60001.jpg MAIN: 2026-06-08 06:47:05,386 - INFO - duration: 0.9148485500008974 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:48:04,593 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:48:05,248 - INFO - taking picture MAIN: 2026-06-08 06:48:05,248 - INFO - we take 18 photos in this while loop MAIN: 2026-06-08 06:48:05,248 - INFO - /home/pi/Desktop/images/08062026/06/47/image_08062026_06_48_04_59861.jpg MAIN: 2026-06-08 06:48:05,248 - INFO - duration: 0.9153698480004095 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:49:05,567 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:49:06,220 - INFO - taking picture MAIN: 2026-06-08 06:49:06,220 - INFO - we take 19 photos in this while loop MAIN: 2026-06-08 06:49:06,220 - INFO - /home/pi/Desktop/images/08062026/06/48/image_08062026_06_49_05_60954.jpg MAIN: 2026-06-08 06:49:06,220 - INFO - duration: 0.9324797230001423 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:50:05,409 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:50:06,136 - INFO - taking picture MAIN: 2026-06-08 06:50:06,136 - INFO - we take 20 photos in this while loop MAIN: 2026-06-08 06:50:06,136 - INFO - /home/pi/Desktop/images/08062026/06/49/image_08062026_06_50_05_59909.jpg MAIN: 2026-06-08 06:50:06,136 - INFO - duration: 0.9392392209992977 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:51:05,256 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:51:05,908 - INFO - taking picture MAIN: 2026-06-08 06:51:05,908 - INFO - we take 21 photos in this while loop MAIN: 2026-06-08 06:51:05,909 - INFO - /home/pi/Desktop/images/08062026/06/50/image_08062026_06_51_05_59792.jpg MAIN: 2026-06-08 06:51:05,909 - INFO - duration: 0.9189609850000124 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:52:04,990 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:52:05,685 - INFO - taking picture MAIN: 2026-06-08 06:52:05,685 - INFO - we take 22 photos in this while loop MAIN: 2026-06-08 06:52:05,685 - INFO - /home/pi/Desktop/images/08062026/06/51/image_08062026_06_52_04_59731.jpg MAIN: 2026-06-08 06:52:05,685 - INFO - duration: 0.9635787319984956 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:53:04,946 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:53:05,597 - INFO - taking picture MAIN: 2026-06-08 06:53:05,598 - INFO - we take 23 photos in this while loop MAIN: 2026-06-08 06:53:05,598 - INFO - /home/pi/Desktop/images/08062026/06/52/image_08062026_06_53_04_59948.jpg MAIN: 2026-06-08 06:53:05,598 - INFO - duration: 0.9284232299996802 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:54:04,512 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:54:05,205 - INFO - taking picture MAIN: 2026-06-08 06:54:05,205 - INFO - we take 24 photos in this while loop MAIN: 2026-06-08 06:54:05,205 - INFO - /home/pi/Desktop/images/08062026/06/53/image_08062026_06_54_04_59630.jpg MAIN: 2026-06-08 06:54:05,205 - INFO - duration: 0.9046390879993851 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:55:04,897 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:55:05,596 - INFO - taking picture MAIN: 2026-06-08 06:55:05,596 - INFO - we take 25 photos in this while loop MAIN: 2026-06-08 06:55:05,597 - INFO - /home/pi/Desktop/images/08062026/06/54/image_08062026_06_55_04_60365.jpg MAIN: 2026-06-08 06:55:05,597 - INFO - duration: 0.9303708589995949 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:56:04,716 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:56:05,369 - INFO - taking picture MAIN: 2026-06-08 06:56:05,370 - INFO - we take 26 photos in this while loop MAIN: 2026-06-08 06:56:05,370 - INFO - /home/pi/Desktop/images/08062026/06/55/image_08062026_06_56_04_59775.jpg MAIN: 2026-06-08 06:56:05,370 - INFO - duration: 0.927883677999489 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:57:04,498 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:57:05,151 - INFO - taking picture MAIN: 2026-06-08 06:57:05,152 - INFO - we take 27 photos in this while loop MAIN: 2026-06-08 06:57:05,152 - INFO - /home/pi/Desktop/images/08062026/06/56/image_08062026_06_57_04_59814.jpg MAIN: 2026-06-08 06:57:05,152 - INFO - duration: 0.8952602360004676 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:58:05,568 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:58:06,221 - INFO - taking picture MAIN: 2026-06-08 06:58:06,221 - INFO - we take 28 photos in this while loop MAIN: 2026-06-08 06:58:06,221 - INFO - /home/pi/Desktop/images/08062026/06/57/image_08062026_06_58_05_61065.jpg MAIN: 2026-06-08 06:58:06,222 - INFO - duration: 0.9000027609999961 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-06-08 06:59:05,327 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 06:59:05,981 - INFO - taking picture MAIN: 2026-06-08 06:59:05,981 - INFO - we take 29 photos in this while loop MAIN: 2026-06-08 06:59:05,981 - INFO - /home/pi/Desktop/images/08062026/06/58/image_08062026_06_59_05_59722.jpg MAIN: 2026-06-08 06:59:05,982 - INFO - duration: 0.9378474789991742 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:00:05,251 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:00:05,918 - INFO - taking picture MAIN: 2026-06-08 07:00:05,918 - INFO - we take 30 photos in this while loop MAIN: 2026-06-08 07:00:05,918 - INFO - /home/pi/Desktop/images/08062026/06/59/image_08062026_07_00_05_59971.jpg MAIN: 2026-06-08 07:00:05,918 - INFO - duration: 0.902852952000103 MAIN: 2026-06-08 07:00:05,919 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/00' MAIN: 2026-06-08 07:00:06,080 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:01:04,593 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:01:04,964 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:01:05,617 - INFO - taking picture MAIN: 2026-06-08 07:01:05,617 - INFO - we take 31 photos in this while loop MAIN: 2026-06-08 07:01:05,617 - INFO - /home/pi/Desktop/images/08062026/07/00/image_08062026_07_01_04_59725.jpg MAIN: 2026-06-08 07:01:05,617 - INFO - duration: 0.8760021090001828 MAIN: 2026-06-08 07:01:05,617 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:02:04,581 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:02:04,923 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:02:05,265 - INFO - taking picture MAIN: 2026-06-08 07:02:05,266 - INFO - we take 32 photos in this while loop MAIN: 2026-06-08 07:02:05,266 - INFO - /home/pi/Desktop/images/08062026/07/01/image_08062026_07_02_04_59572.jpg MAIN: 2026-06-08 07:02:05,266 - INFO - duration: 0.9527588050004852 MAIN: 2026-06-08 07:02:05,266 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:03:04,563 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:03:04,790 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:03:05,229 - INFO - taking picture MAIN: 2026-06-08 07:03:05,229 - INFO - we take 33 photos in this while loop MAIN: 2026-06-08 07:03:05,229 - INFO - /home/pi/Desktop/images/08062026/07/02/image_08062026_07_03_04_59980.jpg MAIN: 2026-06-08 07:03:05,230 - INFO - duration: 0.9360829549987102 MAIN: 2026-06-08 07:03:05,230 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:04:04,485 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:04:05,140 - INFO - taking picture MAIN: 2026-06-08 07:04:05,140 - INFO - we take 34 photos in this while loop MAIN: 2026-06-08 07:04:05,140 - INFO - /home/pi/Desktop/images/08062026/07/03/image_08062026_07_04_04_59937.jpg MAIN: 2026-06-08 07:04:05,141 - INFO - duration: 0.9092468179987918 MAIN: 2026-06-08 07:04:05,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/04' MAIN: 2026-06-08 07:04:05,318 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:05:05,248 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:05:05,342 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:05:05,997 - INFO - taking picture MAIN: 2026-06-08 07:05:05,997 - INFO - we take 35 photos in this while loop MAIN: 2026-06-08 07:05:05,998 - INFO - /home/pi/Desktop/images/08062026/07/04/image_08062026_07_05_05_60881.jpg MAIN: 2026-06-08 07:05:05,998 - INFO - duration: 0.8852636940009688 MAIN: 2026-06-08 07:05:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:06:05,183 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:06:05,444 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:06:05,866 - INFO - taking picture MAIN: 2026-06-08 07:06:05,866 - INFO - we take 36 photos in this while loop MAIN: 2026-06-08 07:06:05,867 - INFO - /home/pi/Desktop/images/08062026/07/05/image_08062026_07_06_05_59816.jpg MAIN: 2026-06-08 07:06:05,867 - INFO - duration: 0.9379450160013221 MAIN: 2026-06-08 07:06:05,867 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:07:04,505 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:07:05,145 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:07:05,797 - INFO - taking picture MAIN: 2026-06-08 07:07:05,797 - INFO - we take 37 photos in this while loop MAIN: 2026-06-08 07:07:05,797 - INFO - /home/pi/Desktop/images/08062026/07/06/image_08062026_07_07_05_60005.jpg MAIN: 2026-06-08 07:07:05,797 - INFO - duration: 0.8632338949992118 MAIN: 2026-06-08 07:07:05,798 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:08:04,786 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:08:04,848 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:08:05,503 - INFO - taking picture MAIN: 2026-06-08 07:08:05,503 - INFO - we take 38 photos in this while loop MAIN: 2026-06-08 07:08:05,503 - INFO - /home/pi/Desktop/images/08062026/07/07/image_08062026_07_08_04_59620.jpg MAIN: 2026-06-08 07:08:05,504 - INFO - duration: 0.9490489780000644 MAIN: 2026-06-08 07:08:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:09:04,561 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:09:05,078 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:09:05,224 - INFO - taking picture MAIN: 2026-06-08 07:09:05,225 - INFO - we take 39 photos in this while loop MAIN: 2026-06-08 07:09:05,225 - INFO - /home/pi/Desktop/images/08062026/07/08/image_08062026_07_09_04_59729.jpg MAIN: 2026-06-08 07:09:05,225 - INFO - duration: 0.9406190290010272 MAIN: 2026-06-08 07:09:05,225 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:10:04,497 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:10:05,249 - INFO - taking picture MAIN: 2026-06-08 07:10:05,249 - INFO - we take 40 photos in this while loop MAIN: 2026-06-08 07:10:05,249 - INFO - /home/pi/Desktop/images/08062026/07/09/image_08062026_07_10_04_59965.jpg MAIN: 2026-06-08 07:10:05,250 - INFO - duration: 0.9994511749991943 MAIN: 2026-06-08 07:10:05,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/10' MAIN: 2026-06-08 07:10:05,398 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:11:04,583 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:11:05,138 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:11:05,281 - INFO - taking picture MAIN: 2026-06-08 07:11:05,281 - INFO - we take 41 photos in this while loop MAIN: 2026-06-08 07:11:05,282 - INFO - /home/pi/Desktop/images/08062026/07/10/image_08062026_07_11_04_60045.jpg MAIN: 2026-06-08 07:11:05,282 - INFO - duration: 0.9863203580007394 MAIN: 2026-06-08 07:11:05,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:12:04,627 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:12:05,313 - INFO - taking picture MAIN: 2026-06-08 07:12:05,313 - INFO - we take 42 photos in this while loop MAIN: 2026-06-08 07:12:05,313 - INFO - /home/pi/Desktop/images/08062026/07/11/image_08062026_07_12_04_60119.jpg MAIN: 2026-06-08 07:12:05,313 - INFO - duration: 0.8982844469992415 MAIN: 2026-06-08 07:12:05,314 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/12' MAIN: 2026-06-08 07:12:05,608 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:13:04,628 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:13:05,585 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:13:06,287 - INFO - taking picture MAIN: 2026-06-08 07:13:06,287 - INFO - we take 43 photos in this while loop MAIN: 2026-06-08 07:13:06,287 - INFO - /home/pi/Desktop/images/08062026/07/12/image_08062026_07_13_05_60888.jpg MAIN: 2026-06-08 07:13:06,288 - INFO - duration: 0.984409955000956 MAIN: 2026-06-08 07:13:06,288 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:14:04,493 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:14:05,144 - INFO - taking picture MAIN: 2026-06-08 07:14:05,144 - INFO - we take 44 photos in this while loop MAIN: 2026-06-08 07:14:05,145 - INFO - /home/pi/Desktop/images/08062026/07/13/image_08062026_07_14_04_58928.jpg MAIN: 2026-06-08 07:14:05,145 - INFO - duration: 0.9133919880005124 MAIN: 2026-06-08 07:14:05,145 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/14' MAIN: 2026-06-08 07:14:05,279 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:15:05,367 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:15:05,519 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:15:06,173 - INFO - taking picture MAIN: 2026-06-08 07:15:06,174 - INFO - we take 45 photos in this while loop MAIN: 2026-06-08 07:15:06,174 - INFO - /home/pi/Desktop/images/08062026/07/14/image_08062026_07_15_05_60989.jpg MAIN: 2026-06-08 07:15:06,174 - INFO - duration: 0.9525363639986608 MAIN: 2026-06-08 07:15:06,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:16:05,299 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:16:05,362 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:16:06,008 - INFO - taking picture MAIN: 2026-06-08 07:16:06,008 - INFO - we take 46 photos in this while loop MAIN: 2026-06-08 07:16:06,008 - INFO - /home/pi/Desktop/images/08062026/07/15/image_08062026_07_16_05_59815.jpg MAIN: 2026-06-08 07:16:06,008 - INFO - duration: 0.971608023999579 MAIN: 2026-06-08 07:16:06,009 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:17:05,156 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:17:05,446 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:17:05,820 - INFO - taking picture MAIN: 2026-06-08 07:17:05,820 - INFO - we take 47 photos in this while loop MAIN: 2026-06-08 07:17:05,821 - INFO - /home/pi/Desktop/images/08062026/07/16/image_08062026_07_17_05_59871.jpg MAIN: 2026-06-08 07:17:05,821 - INFO - duration: 0.9125627789999271 MAIN: 2026-06-08 07:17:05,821 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:18:04,727 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:18:04,975 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:18:05,668 - INFO - taking picture MAIN: 2026-06-08 07:18:05,668 - INFO - we take 48 photos in this while loop MAIN: 2026-06-08 07:18:05,668 - INFO - /home/pi/Desktop/images/08062026/07/17/image_08062026_07_18_04_59774.jpg MAIN: 2026-06-08 07:18:05,669 - INFO - duration: 0.9858631379993312 MAIN: 2026-06-08 07:18:05,669 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:19:04,861 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:19:05,038 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:19:05,738 - INFO - taking picture MAIN: 2026-06-08 07:19:05,739 - INFO - we take 49 photos in this while loop MAIN: 2026-06-08 07:19:05,739 - INFO - /home/pi/Desktop/images/08062026/07/18/image_08062026_07_19_05_60075.jpg MAIN: 2026-06-08 07:19:05,739 - INFO - duration: 0.9809260929996526 MAIN: 2026-06-08 07:19:05,739 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:20:05,193 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:20:05,371 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:20:05,894 - INFO - taking picture MAIN: 2026-06-08 07:20:05,895 - INFO - we take 50 photos in this while loop MAIN: 2026-06-08 07:20:05,895 - INFO - /home/pi/Desktop/images/08062026/07/19/image_08062026_07_20_05_60220.jpg MAIN: 2026-06-08 07:20:05,895 - INFO - duration: 0.9165203779994044 MAIN: 2026-06-08 07:20:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:21:04,934 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:21:05,198 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:21:05,898 - INFO - taking picture MAIN: 2026-06-08 07:21:05,898 - INFO - we take 51 photos in this while loop MAIN: 2026-06-08 07:21:05,898 - INFO - /home/pi/Desktop/images/08062026/07/20/image_08062026_07_21_05_59947.jpg MAIN: 2026-06-08 07:21:05,898 - INFO - duration: 0.9727065950010001 MAIN: 2026-06-08 07:21:05,898 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:22:05,052 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:22:05,397 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:22:05,717 - INFO - taking picture MAIN: 2026-06-08 07:22:05,717 - INFO - we take 52 photos in this while loop MAIN: 2026-06-08 07:22:05,717 - INFO - /home/pi/Desktop/images/08062026/07/21/image_08062026_07_22_05_59887.jpg MAIN: 2026-06-08 07:22:05,717 - INFO - duration: 0.9042229879996739 MAIN: 2026-06-08 07:22:05,717 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:23:04,871 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:23:05,224 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:23:05,540 - INFO - taking picture MAIN: 2026-06-08 07:23:05,541 - INFO - we take 53 photos in this while loop MAIN: 2026-06-08 07:23:05,541 - INFO - /home/pi/Desktop/images/08062026/07/22/image_08062026_07_23_04_59819.jpg MAIN: 2026-06-08 07:23:05,541 - INFO - duration: 0.9079450690005615 MAIN: 2026-06-08 07:23:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:24:04,987 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:24:05,686 - INFO - taking picture MAIN: 2026-06-08 07:24:05,687 - INFO - we take 54 photos in this while loop MAIN: 2026-06-08 07:24:05,687 - INFO - /home/pi/Desktop/images/08062026/07/23/image_08062026_07_24_04_60079.jpg MAIN: 2026-06-08 07:24:05,687 - INFO - duration: 0.9749335059987061 MAIN: 2026-06-08 07:24:05,687 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/24' MAIN: 2026-06-08 07:24:05,806 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:25:04,736 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:25:04,963 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:25:05,615 - INFO - taking picture MAIN: 2026-06-08 07:25:05,615 - INFO - we take 55 photos in this while loop MAIN: 2026-06-08 07:25:05,615 - INFO - /home/pi/Desktop/images/08062026/07/24/image_08062026_07_25_04_60036.jpg MAIN: 2026-06-08 07:25:05,615 - INFO - duration: 0.8670991740000318 MAIN: 2026-06-08 07:25:05,616 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:26:04,744 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:26:04,953 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:26:05,407 - INFO - taking picture MAIN: 2026-06-08 07:26:05,407 - INFO - we take 56 photos in this while loop MAIN: 2026-06-08 07:26:05,407 - INFO - /home/pi/Desktop/images/08062026/07/25/image_08062026_07_26_04_59725.jpg MAIN: 2026-06-08 07:26:05,407 - INFO - duration: 0.9337452279996796 MAIN: 2026-06-08 07:26:05,408 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:27:04,507 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:27:04,886 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:27:05,174 - INFO - taking picture MAIN: 2026-06-08 07:27:05,174 - INFO - we take 57 photos in this while loop MAIN: 2026-06-08 07:27:05,174 - INFO - /home/pi/Desktop/images/08062026/07/26/image_08062026_07_27_04_59789.jpg MAIN: 2026-06-08 07:27:05,174 - INFO - duration: 0.9106031699993764 MAIN: 2026-06-08 07:27:05,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:28:05,259 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:28:05,573 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:28:06,228 - INFO - taking picture MAIN: 2026-06-08 07:28:06,228 - INFO - we take 58 photos in this while loop MAIN: 2026-06-08 07:28:06,228 - INFO - /home/pi/Desktop/images/08062026/07/27/image_08062026_07_28_05_61060.jpg MAIN: 2026-06-08 07:28:06,228 - INFO - duration: 0.9039853560007032 MAIN: 2026-06-08 07:28:06,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:29:05,348 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:29:05,398 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:29:06,086 - INFO - taking picture MAIN: 2026-06-08 07:29:06,086 - INFO - we take 59 photos in this while loop MAIN: 2026-06-08 07:29:06,086 - INFO - /home/pi/Desktop/images/08062026/07/28/image_08062026_07_29_05_59805.jpg MAIN: 2026-06-08 07:29:06,086 - INFO - duration: 0.9563741519996256 MAIN: 2026-06-08 07:29:06,086 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:30:05,420 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:30:05,709 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:30:06,113 - INFO - taking picture MAIN: 2026-06-08 07:30:06,113 - INFO - we take 60 photos in this while loop MAIN: 2026-06-08 07:30:06,114 - INFO - /home/pi/Desktop/images/08062026/07/29/image_08062026_07_30_05_60051.jpg MAIN: 2026-06-08 07:30:06,114 - INFO - duration: 0.93192048399942 MAIN: 2026-06-08 07:30:06,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:31:04,768 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:31:05,168 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:31:05,865 - INFO - taking picture MAIN: 2026-06-08 07:31:05,866 - INFO - we take 61 photos in this while loop MAIN: 2026-06-08 07:31:05,866 - INFO - /home/pi/Desktop/images/08062026/07/30/image_08062026_07_31_05_59776.jpg MAIN: 2026-06-08 07:31:05,866 - INFO - duration: 0.9077698019991658 MAIN: 2026-06-08 07:31:05,866 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:32:04,983 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:32:05,065 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:32:05,762 - INFO - taking picture MAIN: 2026-06-08 07:32:05,763 - INFO - we take 62 photos in this while loop MAIN: 2026-06-08 07:32:05,763 - INFO - /home/pi/Desktop/images/08062026/07/31/image_08062026_07_32_05_59811.jpg MAIN: 2026-06-08 07:32:05,763 - INFO - duration: 0.9929250780005532 MAIN: 2026-06-08 07:32:05,763 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:33:04,613 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:33:04,953 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:33:05,278 - INFO - taking picture MAIN: 2026-06-08 07:33:05,279 - INFO - we take 63 photos in this while loop MAIN: 2026-06-08 07:33:05,279 - INFO - /home/pi/Desktop/images/08062026/07/32/image_08062026_07_33_04_59578.jpg MAIN: 2026-06-08 07:33:05,279 - INFO - duration: 0.9301964059995953 MAIN: 2026-06-08 07:33:05,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:34:04,817 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:34:05,500 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:34:05,517 - INFO - taking picture MAIN: 2026-06-08 07:34:05,517 - INFO - we take 64 photos in this while loop MAIN: 2026-06-08 07:34:05,517 - INFO - /home/pi/Desktop/images/08062026/07/33/image_08062026_07_34_04_60188.jpg MAIN: 2026-06-08 07:34:05,517 - INFO - duration: 0.9801263270001073 MAIN: 2026-06-08 07:34:05,518 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:35:05,038 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:35:05,388 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:35:05,755 - INFO - taking picture MAIN: 2026-06-08 07:35:05,755 - INFO - we take 65 photos in this while loop MAIN: 2026-06-08 07:35:05,756 - INFO - /home/pi/Desktop/images/08062026/07/34/image_08062026_07_35_05_60236.jpg MAIN: 2026-06-08 07:35:05,756 - INFO - duration: 0.9820977509989461 MAIN: 2026-06-08 07:35:05,756 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:36:04,601 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:36:04,878 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:36:05,531 - INFO - taking picture MAIN: 2026-06-08 07:36:05,531 - INFO - we take 66 photos in this while loop MAIN: 2026-06-08 07:36:05,531 - INFO - /home/pi/Desktop/images/08062026/07/35/image_08062026_07_36_04_59839.jpg MAIN: 2026-06-08 07:36:05,531 - INFO - duration: 0.9179754060005507 MAIN: 2026-06-08 07:36:05,531 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:37:04,574 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:37:04,682 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:37:05,235 - INFO - taking picture MAIN: 2026-06-08 07:37:05,236 - INFO - we take 67 photos in this while loop MAIN: 2026-06-08 07:37:05,236 - INFO - /home/pi/Desktop/images/08062026/07/36/image_08062026_07_37_04_59709.jpg MAIN: 2026-06-08 07:37:05,236 - INFO - duration: 0.912723202000052 MAIN: 2026-06-08 07:37:05,236 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:38:05,143 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:38:05,498 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:38:06,200 - INFO - taking picture MAIN: 2026-06-08 07:38:06,200 - INFO - we take 68 photos in this while loop MAIN: 2026-06-08 07:38:06,200 - INFO - /home/pi/Desktop/images/08062026/07/37/image_08062026_07_38_05_60961.jpg MAIN: 2026-06-08 07:38:06,201 - INFO - duration: 0.9156621740003175 MAIN: 2026-06-08 07:38:06,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:39:04,543 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:39:05,257 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:39:05,287 - INFO - taking picture MAIN: 2026-06-08 07:39:05,287 - INFO - we take 69 photos in this while loop MAIN: 2026-06-08 07:39:05,288 - INFO - /home/pi/Desktop/images/08062026/07/38/image_08062026_07_39_04_59028.jpg MAIN: 2026-06-08 07:39:05,288 - INFO - duration: 0.9754225410015351 MAIN: 2026-06-08 07:39:05,289 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/39' MAIN: 2026-06-08 07:40:04,444 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:40:05,167 - INFO - taking picture MAIN: 2026-06-08 07:40:05,167 - INFO - we take 70 photos in this while loop MAIN: 2026-06-08 07:40:05,168 - INFO - /home/pi/Desktop/images/08062026/07/39/image_08062026_07_40_04_59865.jpg MAIN: 2026-06-08 07:40:05,168 - INFO - duration: 0.9891355669988116 MAIN: 2026-06-08 07:40:05,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/40' MAIN: 2026-06-08 07:40:05,849 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:41:05,382 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:41:05,471 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:41:06,125 - INFO - taking picture MAIN: 2026-06-08 07:41:06,126 - INFO - we take 71 photos in this while loop MAIN: 2026-06-08 07:41:06,126 - INFO - /home/pi/Desktop/images/08062026/07/40/image_08062026_07_41_05_60995.jpg MAIN: 2026-06-08 07:41:06,126 - INFO - duration: 0.9515083300011611 MAIN: 2026-06-08 07:41:06,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:42:04,604 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:42:05,236 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:42:05,889 - INFO - taking picture MAIN: 2026-06-08 07:42:05,889 - INFO - we take 72 photos in this while loop MAIN: 2026-06-08 07:42:05,889 - INFO - /home/pi/Desktop/images/08062026/07/41/image_08062026_07_42_05_59840.jpg MAIN: 2026-06-08 07:42:05,889 - INFO - duration: 0.8739842830000271 MAIN: 2026-06-08 07:42:05,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:43:04,615 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:43:04,949 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:43:05,601 - INFO - taking picture MAIN: 2026-06-08 07:43:05,601 - INFO - we take 73 photos in this while loop MAIN: 2026-06-08 07:43:05,601 - INFO - /home/pi/Desktop/images/08062026/07/42/image_08062026_07_43_04_59711.jpg MAIN: 2026-06-08 07:43:05,601 - INFO - duration: 0.8746355289986241 MAIN: 2026-06-08 07:43:05,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:44:04,579 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:44:05,230 - INFO - taking picture MAIN: 2026-06-08 07:44:05,230 - INFO - we take 74 photos in this while loop MAIN: 2026-06-08 07:44:05,231 - INFO - /home/pi/Desktop/images/08062026/07/43/image_08062026_07_44_04_59597.jpg MAIN: 2026-06-08 07:44:05,231 - INFO - duration: 0.9062078909992124 MAIN: 2026-06-08 07:44:05,231 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/44' MAIN: 2026-06-08 07:44:05,371 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:45:05,280 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:45:05,382 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:45:05,940 - INFO - taking picture MAIN: 2026-06-08 07:45:05,940 - INFO - we take 75 photos in this while loop MAIN: 2026-06-08 07:45:05,940 - INFO - /home/pi/Desktop/images/08062026/07/44/image_08062026_07_45_05_60745.jpg MAIN: 2026-06-08 07:45:05,940 - INFO - duration: 0.8701249200003076 MAIN: 2026-06-08 07:45:05,941 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:46:05,097 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:46:05,550 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:46:05,760 - INFO - taking picture MAIN: 2026-06-08 07:46:05,760 - INFO - we take 76 photos in this while loop MAIN: 2026-06-08 07:46:05,761 - INFO - /home/pi/Desktop/images/08062026/07/45/image_08062026_07_46_05_59762.jpg MAIN: 2026-06-08 07:46:05,761 - INFO - duration: 0.9281106909984373 MAIN: 2026-06-08 07:46:05,761 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:47:04,413 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:47:04,728 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:47:05,425 - INFO - taking picture MAIN: 2026-06-08 07:47:05,425 - INFO - we take 77 photos in this while loop MAIN: 2026-06-08 07:47:05,425 - INFO - /home/pi/Desktop/images/08062026/07/46/image_08062026_07_47_04_59659.jpg MAIN: 2026-06-08 07:47:05,425 - INFO - duration: 0.9328810890001478 MAIN: 2026-06-08 07:47:05,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:48:04,566 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:48:04,800 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:48:05,278 - INFO - taking picture MAIN: 2026-06-08 07:48:05,278 - INFO - we take 78 photos in this while loop MAIN: 2026-06-08 07:48:05,278 - INFO - /home/pi/Desktop/images/08062026/07/47/image_08062026_07_48_04_59781.jpg MAIN: 2026-06-08 07:48:05,279 - INFO - duration: 1.0043327559997124 MAIN: 2026-06-08 07:48:05,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:49:04,980 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:49:05,414 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:49:06,067 - INFO - taking picture MAIN: 2026-06-08 07:49:06,067 - INFO - we take 79 photos in this while loop MAIN: 2026-06-08 07:49:06,067 - INFO - /home/pi/Desktop/images/08062026/07/48/image_08062026_07_49_05_60926.jpg MAIN: 2026-06-08 07:49:06,067 - INFO - duration: 0.866462458998285 MAIN: 2026-06-08 07:49:06,067 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:50:05,253 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:50:05,587 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:50:05,955 - INFO - taking picture MAIN: 2026-06-08 07:50:05,956 - INFO - we take 80 photos in this while loop MAIN: 2026-06-08 07:50:05,956 - INFO - /home/pi/Desktop/images/08062026/07/49/image_08062026_07_50_05_59815.jpg MAIN: 2026-06-08 07:50:05,956 - INFO - duration: 0.9397145120001369 MAIN: 2026-06-08 07:50:05,956 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:51:05,186 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:51:05,491 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:51:06,145 - INFO - taking picture MAIN: 2026-06-08 07:51:06,145 - INFO - we take 81 photos in this while loop MAIN: 2026-06-08 07:51:06,145 - INFO - /home/pi/Desktop/images/08062026/07/50/image_08062026_07_51_05_60253.jpg MAIN: 2026-06-08 07:51:06,146 - INFO - duration: 0.8758642860011605 MAIN: 2026-06-08 07:51:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:52:05,327 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:52:05,465 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:52:06,035 - INFO - taking picture MAIN: 2026-06-08 07:52:06,036 - INFO - we take 82 photos in this while loop MAIN: 2026-06-08 07:52:06,036 - INFO - /home/pi/Desktop/images/08062026/07/51/image_08062026_07_52_05_59780.jpg MAIN: 2026-06-08 07:52:06,036 - INFO - duration: 0.9854922629983776 MAIN: 2026-06-08 07:52:06,036 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:53:04,584 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:53:05,151 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:53:05,836 - INFO - taking picture MAIN: 2026-06-08 07:53:05,836 - INFO - we take 83 photos in this while loop MAIN: 2026-06-08 07:53:05,836 - INFO - /home/pi/Desktop/images/08062026/07/52/image_08062026_07_53_05_59889.jpg MAIN: 2026-06-08 07:53:05,836 - INFO - duration: 0.8965590339994378 MAIN: 2026-06-08 07:53:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:54:05,009 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:54:05,205 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:54:05,721 - INFO - taking picture MAIN: 2026-06-08 07:54:05,721 - INFO - we take 84 photos in this while loop MAIN: 2026-06-08 07:54:05,721 - INFO - /home/pi/Desktop/images/08062026/07/53/image_08062026_07_54_05_59788.jpg MAIN: 2026-06-08 07:54:05,721 - INFO - duration: 0.9929531289999431 MAIN: 2026-06-08 07:54:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:55:05,253 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:55:05,333 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:55:05,919 - INFO - taking picture MAIN: 2026-06-08 07:55:05,919 - INFO - we take 85 photos in this while loop MAIN: 2026-06-08 07:55:05,919 - INFO - /home/pi/Desktop/images/08062026/07/54/image_08062026_07_55_05_60305.jpg MAIN: 2026-06-08 07:55:05,920 - INFO - duration: 0.8859616839999944 MAIN: 2026-06-08 07:55:05,920 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:56:05,056 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:56:05,190 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:56:05,761 - INFO - taking picture MAIN: 2026-06-08 07:56:05,761 - INFO - we take 86 photos in this while loop MAIN: 2026-06-08 07:56:05,761 - INFO - /home/pi/Desktop/images/08062026/07/55/image_08062026_07_56_05_59729.jpg MAIN: 2026-06-08 07:56:05,761 - INFO - duration: 0.9986574450012995 MAIN: 2026-06-08 07:56:05,762 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:57:05,056 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:57:05,294 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:57:05,992 - INFO - taking picture MAIN: 2026-06-08 07:57:05,992 - INFO - we take 87 photos in this while loop MAIN: 2026-06-08 07:57:05,992 - INFO - /home/pi/Desktop/images/08062026/07/56/image_08062026_07_57_05_60232.jpg MAIN: 2026-06-08 07:57:05,992 - INFO - duration: 0.9970847570002661 MAIN: 2026-06-08 07:57:05,992 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:58:05,459 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:58:05,543 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:58:06,200 - INFO - taking picture MAIN: 2026-06-08 07:58:06,200 - INFO - we take 88 photos in this while loop MAIN: 2026-06-08 07:58:06,200 - INFO - /home/pi/Desktop/images/08062026/07/57/image_08062026_07_58_05_60281.jpg MAIN: 2026-06-08 07:58:06,200 - INFO - duration: 0.9241807439993863 MAIN: 2026-06-08 07:58:06,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 07:59:04,355 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 07:59:05,593 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 07:59:06,248 - INFO - taking picture MAIN: 2026-06-08 07:59:06,248 - INFO - we take 89 photos in this while loop MAIN: 2026-06-08 07:59:06,248 - INFO - /home/pi/Desktop/images/08062026/07/58/image_08062026_07_59_05_60050.jpg MAIN: 2026-06-08 07:59:06,248 - INFO - duration: 0.9215950979996705 MAIN: 2026-06-08 07:59:06,249 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/07/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:00:05,215 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:00:05,589 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:00:06,290 - INFO - taking picture MAIN: 2026-06-08 08:00:06,291 - INFO - we take 90 photos in this while loop MAIN: 2026-06-08 08:00:06,291 - INFO - /home/pi/Desktop/images/08062026/07/59/image_08062026_08_00_05_60026.jpg MAIN: 2026-06-08 08:00:06,291 - INFO - duration: 0.9380897840001126 MAIN: 2026-06-08 08:00:06,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:01:04,636 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:01:04,940 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:01:05,348 - INFO - taking picture MAIN: 2026-06-08 08:01:05,349 - INFO - we take 91 photos in this while loop MAIN: 2026-06-08 08:01:05,349 - INFO - /home/pi/Desktop/images/08062026/08/00/image_08062026_08_01_04_59029.jpg MAIN: 2026-06-08 08:01:05,349 - INFO - duration: 0.9666174840003805 MAIN: 2026-06-08 08:01:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:02:04,597 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:02:05,228 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:02:05,304 - INFO - taking picture MAIN: 2026-06-08 08:02:05,304 - INFO - we take 92 photos in this while loop MAIN: 2026-06-08 08:02:05,305 - INFO - /home/pi/Desktop/images/08062026/08/01/image_08062026_08_02_04_59964.jpg MAIN: 2026-06-08 08:02:05,305 - INFO - duration: 0.9580218029987009 MAIN: 2026-06-08 08:02:05,305 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:03:04,677 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:03:05,209 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:03:05,355 - INFO - taking picture MAIN: 2026-06-08 08:03:05,355 - INFO - we take 93 photos in this while loop MAIN: 2026-06-08 08:03:05,356 - INFO - /home/pi/Desktop/images/08062026/08/02/image_08062026_08_03_04_60057.jpg MAIN: 2026-06-08 08:03:05,356 - INFO - duration: 0.9517924020001374 MAIN: 2026-06-08 08:03:05,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:04:04,886 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:04:05,256 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:04:05,953 - INFO - taking picture MAIN: 2026-06-08 08:04:05,953 - INFO - we take 94 photos in this while loop MAIN: 2026-06-08 08:04:05,953 - INFO - /home/pi/Desktop/images/08062026/08/03/image_08062026_08_04_05_60623.jpg MAIN: 2026-06-08 08:04:05,953 - INFO - duration: 0.9262626189993171 MAIN: 2026-06-08 08:04:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:05:04,882 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:05:05,325 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:05:05,979 - INFO - taking picture MAIN: 2026-06-08 08:05:05,980 - INFO - we take 95 photos in this while loop MAIN: 2026-06-08 08:05:05,980 - INFO - /home/pi/Desktop/images/08062026/08/04/image_08062026_08_05_05_60080.jpg MAIN: 2026-06-08 08:05:05,980 - INFO - duration: 0.8727895590000116 MAIN: 2026-06-08 08:05:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:06:04,952 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:06:05,063 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:06:05,658 - INFO - taking picture MAIN: 2026-06-08 08:06:05,659 - INFO - we take 96 photos in this while loop MAIN: 2026-06-08 08:06:05,659 - INFO - /home/pi/Desktop/images/08062026/08/05/image_08062026_08_06_04_59598.jpg MAIN: 2026-06-08 08:06:05,659 - INFO - duration: 0.9530860579998262 MAIN: 2026-06-08 08:06:05,659 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:07:04,632 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:07:05,110 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:07:05,349 - INFO - taking picture MAIN: 2026-06-08 08:07:05,349 - INFO - we take 97 photos in this while loop MAIN: 2026-06-08 08:07:05,349 - INFO - /home/pi/Desktop/images/08062026/08/06/image_08062026_08_07_04_59627.jpg MAIN: 2026-06-08 08:07:05,349 - INFO - duration: 1.0156340880002972 MAIN: 2026-06-08 08:07:05,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:08:05,307 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:08:05,585 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:08:06,235 - INFO - taking picture MAIN: 2026-06-08 08:08:06,235 - INFO - we take 98 photos in this while loop MAIN: 2026-06-08 08:08:06,236 - INFO - /home/pi/Desktop/images/08062026/08/07/image_08062026_08_08_05_60995.jpg MAIN: 2026-06-08 08:08:06,236 - INFO - duration: 0.9067605529999128 MAIN: 2026-06-08 08:08:06,236 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:09:05,192 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:09:05,585 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:09:05,856 - INFO - taking picture MAIN: 2026-06-08 08:09:05,856 - INFO - we take 99 photos in this while loop MAIN: 2026-06-08 08:09:05,856 - INFO - /home/pi/Desktop/images/08062026/08/08/image_08062026_08_09_05_59591.jpg MAIN: 2026-06-08 08:09:05,856 - INFO - duration: 0.9358120199995028 MAIN: 2026-06-08 08:09:05,857 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:10:04,982 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:10:05,296 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:10:05,995 - INFO - taking picture MAIN: 2026-06-08 08:10:05,995 - INFO - we take 100 photos in this while loop MAIN: 2026-06-08 08:10:05,995 - INFO - /home/pi/Desktop/images/08062026/08/09/image_08062026_08_10_05_60135.jpg MAIN: 2026-06-08 08:10:05,995 - INFO - duration: 0.9394647339995572 MAIN: 2026-06-08 08:10:05,996 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:11:04,770 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:11:04,876 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:11:05,531 - INFO - taking picture MAIN: 2026-06-08 08:11:05,532 - INFO - we take 101 photos in this while loop MAIN: 2026-06-08 08:11:05,532 - INFO - /home/pi/Desktop/images/08062026/08/10/image_08062026_08_11_04_59534.jpg MAIN: 2026-06-08 08:11:05,532 - INFO - duration: 0.9415887989998737 MAIN: 2026-06-08 08:11:05,532 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:12:04,704 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:12:05,022 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:12:05,370 - INFO - taking picture MAIN: 2026-06-08 08:12:05,370 - INFO - we take 102 photos in this while loop MAIN: 2026-06-08 08:12:05,370 - INFO - /home/pi/Desktop/images/08062026/08/11/image_08062026_08_12_04_59855.jpg MAIN: 2026-06-08 08:12:05,370 - INFO - duration: 0.9244573140003922 MAIN: 2026-06-08 08:12:05,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:13:05,072 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:13:05,390 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:13:06,043 - INFO - taking picture MAIN: 2026-06-08 08:13:06,043 - INFO - we take 103 photos in this while loop MAIN: 2026-06-08 08:13:06,043 - INFO - /home/pi/Desktop/images/08062026/08/12/image_08062026_08_13_05_60731.jpg MAIN: 2026-06-08 08:13:06,044 - INFO - duration: 0.8665232420007669 MAIN: 2026-06-08 08:13:06,044 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:14:05,318 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:14:05,531 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:14:05,990 - INFO - taking picture MAIN: 2026-06-08 08:14:05,990 - INFO - we take 104 photos in this while loop MAIN: 2026-06-08 08:14:05,990 - INFO - /home/pi/Desktop/images/08062026/08/13/image_08062026_08_14_05_59871.jpg MAIN: 2026-06-08 08:14:05,990 - INFO - duration: 0.9411747489994013 MAIN: 2026-06-08 08:14:05,990 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:15:04,552 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:15:05,089 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:15:05,786 - INFO - taking picture MAIN: 2026-06-08 08:15:05,786 - INFO - we take 105 photos in this while loop MAIN: 2026-06-08 08:15:05,787 - INFO - /home/pi/Desktop/images/08062026/08/14/image_08062026_08_15_05_59826.jpg MAIN: 2026-06-08 08:15:05,787 - INFO - duration: 0.9110285630013095 MAIN: 2026-06-08 08:15:05,787 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:16:04,723 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:16:04,809 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:16:05,465 - INFO - taking picture MAIN: 2026-06-08 08:16:05,465 - INFO - we take 106 photos in this while loop MAIN: 2026-06-08 08:16:05,465 - INFO - /home/pi/Desktop/images/08062026/08/15/image_08062026_08_16_04_59671.jpg MAIN: 2026-06-08 08:16:05,465 - INFO - duration: 0.9180648579986155 MAIN: 2026-06-08 08:16:05,465 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:17:04,911 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:17:05,581 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:17:06,279 - INFO - taking picture MAIN: 2026-06-08 08:17:06,280 - INFO - we take 107 photos in this while loop MAIN: 2026-06-08 08:17:06,280 - INFO - /home/pi/Desktop/images/08062026/08/16/image_08062026_08_17_05_60821.jpg MAIN: 2026-06-08 08:17:06,280 - INFO - duration: 0.911480461998508 MAIN: 2026-06-08 08:17:06,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:18:04,420 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:18:05,158 - INFO - taking picture MAIN: 2026-06-08 08:18:05,158 - INFO - we take 108 photos in this while loop MAIN: 2026-06-08 08:18:05,158 - INFO - /home/pi/Desktop/images/08062026/08/17/image_08062026_08_18_04_58818.jpg MAIN: 2026-06-08 08:18:05,159 - INFO - duration: 0.9714633660005347 MAIN: 2026-06-08 08:18:05,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/18' MAIN: 2026-06-08 08:18:05,218 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:19:04,558 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:19:05,246 - INFO - taking picture MAIN: 2026-06-08 08:19:05,246 - INFO - we take 109 photos in this while loop MAIN: 2026-06-08 08:19:05,246 - INFO - /home/pi/Desktop/images/08062026/08/18/image_08062026_08_19_04_60158.jpg MAIN: 2026-06-08 08:19:05,246 - INFO - duration: 0.900406569999177 MAIN: 2026-06-08 08:19:05,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/19' MAIN: 2026-06-08 08:19:05,508 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:20:04,492 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:20:05,183 - INFO - taking picture MAIN: 2026-06-08 08:20:05,183 - INFO - we take 110 photos in this while loop MAIN: 2026-06-08 08:20:05,183 - INFO - /home/pi/Desktop/images/08062026/08/19/image_08062026_08_20_04_59910.jpg MAIN: 2026-06-08 08:20:05,184 - INFO - duration: 0.9271259799988911 MAIN: 2026-06-08 08:20:05,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/20' MAIN: 2026-06-08 08:20:05,886 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:21:04,630 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:21:05,530 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:21:06,181 - INFO - taking picture MAIN: 2026-06-08 08:21:06,181 - INFO - we take 111 photos in this while loop MAIN: 2026-06-08 08:21:06,181 - INFO - /home/pi/Desktop/images/08062026/08/20/image_08062026_08_21_05_61006.jpg MAIN: 2026-06-08 08:21:06,182 - INFO - duration: 0.9182283869995445 MAIN: 2026-06-08 08:21:06,182 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:22:05,133 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:22:05,376 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:22:06,029 - INFO - taking picture MAIN: 2026-06-08 08:22:06,029 - INFO - we take 112 photos in this while loop MAIN: 2026-06-08 08:22:06,029 - INFO - /home/pi/Desktop/images/08062026/08/21/image_08062026_08_22_05_59858.jpg MAIN: 2026-06-08 08:22:06,029 - INFO - duration: 0.907955958000457 MAIN: 2026-06-08 08:22:06,030 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:23:05,042 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:23:05,230 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:23:05,706 - INFO - taking picture MAIN: 2026-06-08 08:23:05,706 - INFO - we take 113 photos in this while loop MAIN: 2026-06-08 08:23:05,706 - INFO - /home/pi/Desktop/images/08062026/08/22/image_08062026_08_23_05_59652.jpg MAIN: 2026-06-08 08:23:05,706 - INFO - duration: 0.9320421189986519 MAIN: 2026-06-08 08:23:05,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:24:05,010 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:24:05,666 - INFO - taking picture MAIN: 2026-06-08 08:24:05,666 - INFO - we take 114 photos in this while loop MAIN: 2026-06-08 08:24:05,666 - INFO - /home/pi/Desktop/images/08062026/08/23/image_08062026_08_24_05_59980.jpg MAIN: 2026-06-08 08:24:05,666 - INFO - duration: 0.9111812600003759 MAIN: 2026-06-08 08:24:05,666 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/24' MAIN: 2026-06-08 08:24:05,727 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:25:04,515 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:25:05,211 - INFO - taking picture MAIN: 2026-06-08 08:25:05,211 - INFO - we take 115 photos in this while loop MAIN: 2026-06-08 08:25:05,211 - INFO - /home/pi/Desktop/images/08062026/08/24/image_08062026_08_25_04_59531.jpg MAIN: 2026-06-08 08:25:05,211 - INFO - duration: 0.9244773820009868 MAIN: 2026-06-08 08:25:05,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/25' MAIN: 2026-06-08 08:25:05,678 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:26:04,700 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:26:04,779 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:26:05,379 - INFO - taking picture MAIN: 2026-06-08 08:26:05,379 - INFO - we take 116 photos in this while loop MAIN: 2026-06-08 08:26:05,379 - INFO - /home/pi/Desktop/images/08062026/08/25/image_08062026_08_26_04_60123.jpg MAIN: 2026-06-08 08:26:05,379 - INFO - duration: 0.9692176490007114 MAIN: 2026-06-08 08:26:05,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:27:04,843 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:27:05,621 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:27:06,274 - INFO - taking picture MAIN: 2026-06-08 08:27:06,274 - INFO - we take 117 photos in this while loop MAIN: 2026-06-08 08:27:06,274 - INFO - /home/pi/Desktop/images/08062026/08/26/image_08062026_08_27_05_60934.jpg MAIN: 2026-06-08 08:27:06,274 - INFO - duration: 0.9302661700003227 MAIN: 2026-06-08 08:27:06,275 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:28:05,283 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:28:05,565 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:28:05,947 - INFO - taking picture MAIN: 2026-06-08 08:28:05,947 - INFO - we take 118 photos in this while loop MAIN: 2026-06-08 08:28:05,947 - INFO - /home/pi/Desktop/images/08062026/08/27/image_08062026_08_28_05_59713.jpg MAIN: 2026-06-08 08:28:05,947 - INFO - duration: 0.8890698279992648 MAIN: 2026-06-08 08:28:05,947 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:29:05,023 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:29:05,348 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:29:05,733 - INFO - taking picture MAIN: 2026-06-08 08:29:05,734 - INFO - we take 119 photos in this while loop MAIN: 2026-06-08 08:29:05,734 - INFO - /home/pi/Desktop/images/08062026/08/28/image_08062026_08_29_05_59674.jpg MAIN: 2026-06-08 08:29:05,734 - INFO - duration: 1.0012834230001317 MAIN: 2026-06-08 08:29:05,734 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:30:04,983 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:30:05,653 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:30:05,666 - INFO - taking picture MAIN: 2026-06-08 08:30:05,667 - INFO - we take 120 photos in this while loop MAIN: 2026-06-08 08:30:05,667 - INFO - /home/pi/Desktop/images/08062026/08/29/image_08062026_08_30_04_60024.jpg MAIN: 2026-06-08 08:30:05,667 - INFO - duration: 0.9101836930003628 MAIN: 2026-06-08 08:30:05,668 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:31:04,642 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:31:05,340 - INFO - taking picture MAIN: 2026-06-08 08:31:05,341 - INFO - we take 121 photos in this while loop MAIN: 2026-06-08 08:31:05,341 - INFO - /home/pi/Desktop/images/08062026/08/30/image_08062026_08_31_04_59651.jpg MAIN: 2026-06-08 08:31:05,341 - INFO - duration: 0.9323667259996 MAIN: 2026-06-08 08:31:05,341 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/31' MAIN: 2026-06-08 08:31:05,371 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:32:04,713 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:32:04,781 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:32:05,382 - INFO - taking picture MAIN: 2026-06-08 08:32:05,382 - INFO - we take 122 photos in this while loop MAIN: 2026-06-08 08:32:05,382 - INFO - /home/pi/Desktop/images/08062026/08/31/image_08062026_08_32_04_60032.jpg MAIN: 2026-06-08 08:32:05,382 - INFO - duration: 0.9411943279992556 MAIN: 2026-06-08 08:32:05,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:33:04,700 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:33:04,786 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:33:05,358 - INFO - taking picture MAIN: 2026-06-08 08:33:05,358 - INFO - we take 123 photos in this while loop MAIN: 2026-06-08 08:33:05,358 - INFO - /home/pi/Desktop/images/08062026/08/32/image_08062026_08_33_04_59994.jpg MAIN: 2026-06-08 08:33:05,358 - INFO - duration: 0.922656102999099 MAIN: 2026-06-08 08:33:05,359 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:34:04,559 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:34:04,983 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:34:05,261 - INFO - taking picture MAIN: 2026-06-08 08:34:05,262 - INFO - we take 124 photos in this while loop MAIN: 2026-06-08 08:34:05,262 - INFO - /home/pi/Desktop/images/08062026/08/33/image_08062026_08_34_04_59847.jpg MAIN: 2026-06-08 08:34:05,262 - INFO - duration: 0.9789779920010915 MAIN: 2026-06-08 08:34:05,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:35:05,034 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:35:05,143 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:35:05,699 - INFO - taking picture MAIN: 2026-06-08 08:35:05,700 - INFO - we take 125 photos in this while loop MAIN: 2026-06-08 08:35:05,700 - INFO - /home/pi/Desktop/images/08062026/08/34/image_08062026_08_35_05_60536.jpg MAIN: 2026-06-08 08:35:05,700 - INFO - duration: 0.8805421619999834 MAIN: 2026-06-08 08:35:05,700 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:36:04,878 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:36:05,481 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:36:05,542 - INFO - taking picture MAIN: 2026-06-08 08:36:05,542 - INFO - we take 126 photos in this while loop MAIN: 2026-06-08 08:36:05,542 - INFO - /home/pi/Desktop/images/08062026/08/35/image_08062026_08_36_04_59786.jpg MAIN: 2026-06-08 08:36:05,543 - INFO - duration: 0.936204853000163 MAIN: 2026-06-08 08:36:05,543 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:37:04,486 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:37:05,141 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:37:05,190 - INFO - taking picture MAIN: 2026-06-08 08:37:05,190 - INFO - we take 127 photos in this while loop MAIN: 2026-06-08 08:37:05,190 - INFO - /home/pi/Desktop/images/08062026/08/36/image_08062026_08_37_04_59651.jpg MAIN: 2026-06-08 08:37:05,191 - INFO - duration: 0.9324220660000719 MAIN: 2026-06-08 08:37:05,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:38:05,548 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:38:05,619 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:38:06,276 - INFO - taking picture MAIN: 2026-06-08 08:38:06,276 - INFO - we take 128 photos in this while loop MAIN: 2026-06-08 08:38:06,276 - INFO - /home/pi/Desktop/images/08062026/08/37/image_08062026_08_38_05_61083.jpg MAIN: 2026-06-08 08:38:06,276 - INFO - duration: 0.9348397779995139 MAIN: 2026-06-08 08:38:06,276 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:39:04,933 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:39:05,395 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:39:06,078 - INFO - taking picture MAIN: 2026-06-08 08:39:06,079 - INFO - we take 129 photos in this while loop MAIN: 2026-06-08 08:39:06,079 - INFO - /home/pi/Desktop/images/08062026/08/38/image_08062026_08_39_05_59842.jpg MAIN: 2026-06-08 08:39:06,079 - INFO - duration: 0.8946426080001402 MAIN: 2026-06-08 08:39:06,079 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:40:05,412 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:40:05,528 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:40:06,101 - INFO - taking picture MAIN: 2026-06-08 08:40:06,101 - INFO - we take 130 photos in this while loop MAIN: 2026-06-08 08:40:06,101 - INFO - /home/pi/Desktop/images/08062026/08/39/image_08062026_08_40_05_60007.jpg MAIN: 2026-06-08 08:40:06,101 - INFO - duration: 0.9099820739993447 MAIN: 2026-06-08 08:40:06,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:41:04,680 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:41:05,061 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:41:05,346 - INFO - taking picture MAIN: 2026-06-08 08:41:05,346 - INFO - we take 131 photos in this while loop MAIN: 2026-06-08 08:41:05,346 - INFO - /home/pi/Desktop/images/08062026/08/40/image_08062026_08_41_04_59223.jpg MAIN: 2026-06-08 08:41:05,347 - INFO - duration: 0.9319577030000801 MAIN: 2026-06-08 08:41:05,347 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:42:04,435 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:42:05,167 - INFO - taking picture MAIN: 2026-06-08 08:42:05,167 - INFO - we take 132 photos in this while loop MAIN: 2026-06-08 08:42:05,167 - INFO - /home/pi/Desktop/images/08062026/08/41/image_08062026_08_42_04_59788.jpg MAIN: 2026-06-08 08:42:05,167 - INFO - duration: 0.9639561759995559 MAIN: 2026-06-08 08:42:05,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/42' MAIN: 2026-06-08 08:42:05,216 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:43:04,934 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:43:05,344 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:43:05,630 - INFO - taking picture MAIN: 2026-06-08 08:43:05,630 - INFO - we take 133 photos in this while loop MAIN: 2026-06-08 08:43:05,630 - INFO - /home/pi/Desktop/images/08062026/08/42/image_08062026_08_43_04_60453.jpg MAIN: 2026-06-08 08:43:05,630 - INFO - duration: 0.9736587829993368 MAIN: 2026-06-08 08:43:05,630 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:44:04,739 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:44:04,956 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:44:05,455 - INFO - taking picture MAIN: 2026-06-08 08:44:05,455 - INFO - we take 134 photos in this while loop MAIN: 2026-06-08 08:44:05,455 - INFO - /home/pi/Desktop/images/08062026/08/43/image_08062026_08_44_04_59809.jpg MAIN: 2026-06-08 08:44:05,455 - INFO - duration: 0.9892297470014455 MAIN: 2026-06-08 08:44:05,456 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:45:04,722 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:45:04,993 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:45:05,399 - INFO - taking picture MAIN: 2026-06-08 08:45:05,400 - INFO - we take 135 photos in this while loop MAIN: 2026-06-08 08:45:05,400 - INFO - /home/pi/Desktop/images/08062026/08/44/image_08062026_08_45_04_60028.jpg MAIN: 2026-06-08 08:45:05,400 - INFO - duration: 0.9052302059990325 MAIN: 2026-06-08 08:45:05,400 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:46:04,705 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:46:05,117 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:46:05,417 - INFO - taking picture MAIN: 2026-06-08 08:46:05,418 - INFO - we take 136 photos in this while loop MAIN: 2026-06-08 08:46:05,418 - INFO - /home/pi/Desktop/images/08062026/08/45/image_08062026_08_46_04_59921.jpg MAIN: 2026-06-08 08:46:05,418 - INFO - duration: 1.002304333000211 MAIN: 2026-06-08 08:46:05,418 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:47:04,981 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:47:05,005 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:47:05,645 - INFO - taking picture MAIN: 2026-06-08 08:47:05,645 - INFO - we take 137 photos in this while loop MAIN: 2026-06-08 08:47:05,645 - INFO - /home/pi/Desktop/images/08062026/08/46/image_08062026_08_47_04_60290.jpg MAIN: 2026-06-08 08:47:05,646 - INFO - duration: 0.9394443199998932 MAIN: 2026-06-08 08:47:05,646 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:48:04,747 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:48:05,326 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:48:05,409 - INFO - taking picture MAIN: 2026-06-08 08:48:05,409 - INFO - we take 138 photos in this while loop MAIN: 2026-06-08 08:48:05,409 - INFO - /home/pi/Desktop/images/08062026/08/47/image_08062026_08_48_04_59778.jpg MAIN: 2026-06-08 08:48:05,410 - INFO - duration: 0.9247770679994574 MAIN: 2026-06-08 08:48:05,410 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:49:04,460 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:49:05,190 - INFO - taking picture MAIN: 2026-06-08 08:49:05,191 - INFO - we take 139 photos in this while loop MAIN: 2026-06-08 08:49:05,191 - INFO - /home/pi/Desktop/images/08062026/08/48/image_08062026_08_49_04_59725.jpg MAIN: 2026-06-08 08:49:05,191 - INFO - duration: 0.980392686000414 MAIN: 2026-06-08 08:49:05,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/49' MAIN: 2026-06-08 08:49:05,344 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:50:04,570 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:50:05,279 - INFO - taking picture MAIN: 2026-06-08 08:50:05,279 - INFO - we take 140 photos in this while loop MAIN: 2026-06-08 08:50:05,279 - INFO - /home/pi/Desktop/images/08062026/08/49/image_08062026_08_50_04_60127.jpg MAIN: 2026-06-08 08:50:05,279 - INFO - duration: 0.9410910050009988 MAIN: 2026-06-08 08:50:05,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/50' MAIN: 2026-06-08 08:50:06,161 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:51:05,060 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:51:05,479 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:51:06,134 - INFO - taking picture MAIN: 2026-06-08 08:51:06,134 - INFO - we take 141 photos in this while loop MAIN: 2026-06-08 08:51:06,134 - INFO - /home/pi/Desktop/images/08062026/08/50/image_08062026_08_51_05_60925.jpg MAIN: 2026-06-08 08:51:06,135 - INFO - duration: 0.8704941389987653 MAIN: 2026-06-08 08:51:06,135 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:52:05,017 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:52:05,194 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:52:05,848 - INFO - taking picture MAIN: 2026-06-08 08:52:05,849 - INFO - we take 142 photos in this while loop MAIN: 2026-06-08 08:52:05,849 - INFO - /home/pi/Desktop/images/08062026/08/51/image_08062026_08_52_05_59647.jpg MAIN: 2026-06-08 08:52:05,849 - INFO - duration: 0.9376191760002257 MAIN: 2026-06-08 08:52:05,849 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:53:04,783 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:53:05,127 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:53:05,452 - INFO - taking picture MAIN: 2026-06-08 08:53:05,452 - INFO - we take 143 photos in this while loop MAIN: 2026-06-08 08:53:05,452 - INFO - /home/pi/Desktop/images/08062026/08/52/image_08062026_08_53_04_59600.jpg MAIN: 2026-06-08 08:53:05,452 - INFO - duration: 0.941050006000296 MAIN: 2026-06-08 08:53:05,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/53' MAIN: 2026-06-08 08:54:04,838 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:54:05,492 - INFO - taking picture MAIN: 2026-06-08 08:54:05,492 - INFO - we take 144 photos in this while loop MAIN: 2026-06-08 08:54:05,492 - INFO - /home/pi/Desktop/images/08062026/08/53/image_08062026_08_54_04_60069.jpg MAIN: 2026-06-08 08:54:05,492 - INFO - duration: 0.9108312719999958 MAIN: 2026-06-08 08:54:05,492 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/54' MAIN: 2026-06-08 08:54:05,920 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:55:05,060 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:55:05,737 - INFO - taking picture MAIN: 2026-06-08 08:55:05,737 - INFO - we take 145 photos in this while loop MAIN: 2026-06-08 08:55:05,737 - INFO - /home/pi/Desktop/images/08062026/08/54/image_08062026_08_55_05_60252.jpg MAIN: 2026-06-08 08:55:05,737 - INFO - duration: 0.903583413000888 MAIN: 2026-06-08 08:55:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/55' MAIN: 2026-06-08 08:55:05,777 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:56:05,002 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:56:05,654 - INFO - taking picture MAIN: 2026-06-08 08:56:05,655 - INFO - we take 146 photos in this while loop MAIN: 2026-06-08 08:56:05,655 - INFO - /home/pi/Desktop/images/08062026/08/55/image_08062026_08_56_05_59908.jpg MAIN: 2026-06-08 08:56:05,655 - INFO - duration: 0.9126029550006933 MAIN: 2026-06-08 08:56:05,655 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/56' MAIN: 2026-06-08 08:56:05,927 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:57:04,652 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:57:04,739 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:57:05,358 - INFO - taking picture MAIN: 2026-06-08 08:57:05,358 - INFO - we take 147 photos in this while loop MAIN: 2026-06-08 08:57:05,358 - INFO - /home/pi/Desktop/images/08062026/08/56/image_08062026_08_57_04_59671.jpg MAIN: 2026-06-08 08:57:05,358 - INFO - duration: 0.9442807450013788 MAIN: 2026-06-08 08:57:05,358 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:58:04,676 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:58:05,060 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:58:05,350 - INFO - taking picture MAIN: 2026-06-08 08:58:05,350 - INFO - we take 148 photos in this while loop MAIN: 2026-06-08 08:58:05,350 - INFO - /home/pi/Desktop/images/08062026/08/57/image_08062026_08_58_04_59969.jpg MAIN: 2026-06-08 08:58:05,350 - INFO - duration: 0.9671519919993443 MAIN: 2026-06-08 08:58:05,351 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 08:59:04,430 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 08:59:05,019 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 08:59:05,102 - INFO - taking picture MAIN: 2026-06-08 08:59:05,102 - INFO - we take 149 photos in this while loop MAIN: 2026-06-08 08:59:05,102 - INFO - /home/pi/Desktop/images/08062026/08/58/image_08062026_08_59_04_59799.jpg MAIN: 2026-06-08 08:59:05,102 - INFO - duration: 0.9201552359991183 MAIN: 2026-06-08 08:59:05,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/08/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:00:05,325 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:00:05,813 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:00:06,013 - INFO - taking picture MAIN: 2026-06-08 09:00:06,013 - INFO - we take 150 photos in this while loop MAIN: 2026-06-08 09:00:06,013 - INFO - /home/pi/Desktop/images/08062026/08/59/image_08062026_09_00_05_60919.jpg MAIN: 2026-06-08 09:00:06,013 - INFO - duration: 0.9117747970012715 MAIN: 2026-06-08 09:00:06,014 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:01:04,931 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:01:05,498 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:01:05,595 - INFO - taking picture MAIN: 2026-06-08 09:01:05,595 - INFO - we take 151 photos in this while loop MAIN: 2026-06-08 09:01:05,595 - INFO - /home/pi/Desktop/images/08062026/09/00/image_08062026_09_01_04_59566.jpg MAIN: 2026-06-08 09:01:05,595 - INFO - duration: 0.9277429780013335 MAIN: 2026-06-08 09:01:05,596 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/01' MAIN: 2026-06-08 09:02:04,572 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:02:05,256 - INFO - taking picture MAIN: 2026-06-08 09:02:05,256 - INFO - we take 152 photos in this while loop MAIN: 2026-06-08 09:02:05,256 - INFO - /home/pi/Desktop/images/08062026/09/01/image_08062026_09_02_04_59691.jpg MAIN: 2026-06-08 09:02:05,257 - INFO - duration: 0.8975097450002067 MAIN: 2026-06-08 09:02:05,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/02' MAIN: 2026-06-08 09:02:05,915 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:03:04,775 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:03:05,548 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:03:06,201 - INFO - taking picture MAIN: 2026-06-08 09:03:06,202 - INFO - we take 153 photos in this while loop MAIN: 2026-06-08 09:03:06,202 - INFO - /home/pi/Desktop/images/08062026/09/02/image_08062026_09_03_05_60938.jpg MAIN: 2026-06-08 09:03:06,202 - INFO - duration: 0.9044599959997868 MAIN: 2026-06-08 09:03:06,202 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:04:05,119 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:04:05,192 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:04:05,779 - INFO - taking picture MAIN: 2026-06-08 09:04:05,779 - INFO - we take 154 photos in this while loop MAIN: 2026-06-08 09:04:05,779 - INFO - /home/pi/Desktop/images/08062026/09/03/image_08062026_09_04_05_59557.jpg MAIN: 2026-06-08 09:04:05,779 - INFO - duration: 0.9244910679990426 MAIN: 2026-06-08 09:04:05,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:05:05,206 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:05:05,532 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:05:05,903 - INFO - taking picture MAIN: 2026-06-08 09:05:05,903 - INFO - we take 155 photos in this while loop MAIN: 2026-06-08 09:05:05,904 - INFO - /home/pi/Desktop/images/08062026/09/04/image_08062026_09_05_05_60122.jpg MAIN: 2026-06-08 09:05:05,904 - INFO - duration: 0.9266596609995759 MAIN: 2026-06-08 09:05:05,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:06:05,017 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:06:05,333 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:06:05,680 - INFO - taking picture MAIN: 2026-06-08 09:06:05,680 - INFO - we take 156 photos in this while loop MAIN: 2026-06-08 09:06:05,680 - INFO - /home/pi/Desktop/images/08062026/09/05/image_08062026_09_06_05_59769.jpg MAIN: 2026-06-08 09:06:05,681 - INFO - duration: 0.9337495129984745 MAIN: 2026-06-08 09:06:05,681 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:07:04,816 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:07:05,385 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:07:05,479 - INFO - taking picture MAIN: 2026-06-08 09:07:05,479 - INFO - we take 157 photos in this while loop MAIN: 2026-06-08 09:07:05,479 - INFO - /home/pi/Desktop/images/08062026/09/06/image_08062026_09_07_04_59813.jpg MAIN: 2026-06-08 09:07:05,480 - INFO - duration: 0.9187242920015706 MAIN: 2026-06-08 09:07:05,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/07' MAIN: 2026-06-08 09:08:04,683 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:08:05,339 - INFO - taking picture MAIN: 2026-06-08 09:08:05,339 - INFO - we take 158 photos in this while loop MAIN: 2026-06-08 09:08:05,339 - INFO - /home/pi/Desktop/images/08062026/09/07/image_08062026_09_08_04_59880.jpg MAIN: 2026-06-08 09:08:05,340 - INFO - duration: 0.8984593880013563 MAIN: 2026-06-08 09:08:05,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/08' MAIN: 2026-06-08 09:08:05,876 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:09:04,518 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:09:04,769 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:09:05,204 - INFO - taking picture MAIN: 2026-06-08 09:09:05,204 - INFO - we take 159 photos in this while loop MAIN: 2026-06-08 09:09:05,204 - INFO - /home/pi/Desktop/images/08062026/09/08/image_08062026_09_09_04_59801.jpg MAIN: 2026-06-08 09:09:05,204 - INFO - duration: 0.9620320930007438 MAIN: 2026-06-08 09:09:05,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:10:04,478 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:10:05,210 - INFO - taking picture MAIN: 2026-06-08 09:10:05,210 - INFO - we take 160 photos in this while loop MAIN: 2026-06-08 09:10:05,210 - INFO - /home/pi/Desktop/images/08062026/09/09/image_08062026_09_10_04_59976.jpg MAIN: 2026-06-08 09:10:05,210 - INFO - duration: 0.9912764300024719 MAIN: 2026-06-08 09:10:05,210 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/10' MAIN: 2026-06-08 09:10:05,366 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:11:04,641 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:11:05,337 - INFO - taking picture MAIN: 2026-06-08 09:11:05,337 - INFO - we take 161 photos in this while loop MAIN: 2026-06-08 09:11:05,337 - INFO - /home/pi/Desktop/images/08062026/09/10/image_08062026_09_11_04_60177.jpg MAIN: 2026-06-08 09:11:05,337 - INFO - duration: 0.9413087949978944 MAIN: 2026-06-08 09:11:05,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/11' MAIN: 2026-06-08 09:11:05,470 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:12:04,462 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:12:05,148 - INFO - taking picture MAIN: 2026-06-08 09:12:05,149 - INFO - we take 162 photos in this while loop MAIN: 2026-06-08 09:12:05,149 - INFO - /home/pi/Desktop/images/08062026/09/11/image_08062026_09_12_04_59852.jpg MAIN: 2026-06-08 09:12:05,149 - INFO - duration: 0.9000988749976386 MAIN: 2026-06-08 09:12:05,149 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/12' MAIN: 2026-06-08 09:12:05,699 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:13:05,350 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:13:05,527 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:13:06,011 - INFO - taking picture MAIN: 2026-06-08 09:13:06,011 - INFO - we take 163 photos in this while loop MAIN: 2026-06-08 09:13:06,011 - INFO - /home/pi/Desktop/images/08062026/09/12/image_08062026_09_13_05_60821.jpg MAIN: 2026-06-08 09:13:06,011 - INFO - duration: 0.9415364430024056 MAIN: 2026-06-08 09:13:06,012 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:14:04,997 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:14:05,151 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:14:05,809 - INFO - taking picture MAIN: 2026-06-08 09:14:05,809 - INFO - we take 164 photos in this while loop MAIN: 2026-06-08 09:14:05,810 - INFO - /home/pi/Desktop/images/08062026/09/13/image_08062026_09_14_05_59797.jpg MAIN: 2026-06-08 09:14:05,810 - INFO - duration: 0.9418919800009462 MAIN: 2026-06-08 09:14:05,810 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:15:05,039 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:15:05,307 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:15:05,706 - INFO - taking picture MAIN: 2026-06-08 09:15:05,706 - INFO - we take 165 photos in this while loop MAIN: 2026-06-08 09:15:05,706 - INFO - /home/pi/Desktop/images/08062026/09/14/image_08062026_09_15_05_59958.jpg MAIN: 2026-06-08 09:15:05,706 - INFO - duration: 0.8797210379998432 MAIN: 2026-06-08 09:15:05,706 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:16:04,868 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:16:05,525 - INFO - taking picture MAIN: 2026-06-08 09:16:05,525 - INFO - we take 166 photos in this while loop MAIN: 2026-06-08 09:16:05,526 - INFO - /home/pi/Desktop/images/08062026/09/15/image_08062026_09_16_04_59780.jpg MAIN: 2026-06-08 09:16:05,526 - INFO - duration: 0.9192924359995231 MAIN: 2026-06-08 09:16:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/16' MAIN: 2026-06-08 09:16:05,615 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:17:04,481 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:17:05,183 - INFO - taking picture MAIN: 2026-06-08 09:17:05,183 - INFO - we take 167 photos in this while loop MAIN: 2026-06-08 09:17:05,183 - INFO - /home/pi/Desktop/images/08062026/09/16/image_08062026_09_17_04_59642.jpg MAIN: 2026-06-08 09:17:05,183 - INFO - duration: 0.9344927790007205 MAIN: 2026-06-08 09:17:05,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/17' MAIN: 2026-06-08 09:17:05,409 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:18:04,734 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:18:05,108 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:18:05,398 - INFO - taking picture MAIN: 2026-06-08 09:18:05,398 - INFO - we take 168 photos in this while loop MAIN: 2026-06-08 09:18:05,398 - INFO - /home/pi/Desktop/images/08062026/09/17/image_08062026_09_18_04_60220.jpg MAIN: 2026-06-08 09:18:05,399 - INFO - duration: 0.9294935830002942 MAIN: 2026-06-08 09:18:05,399 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:19:04,962 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:19:05,608 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:19:06,261 - INFO - taking picture MAIN: 2026-06-08 09:19:06,261 - INFO - we take 169 photos in this while loop MAIN: 2026-06-08 09:19:06,261 - INFO - /home/pi/Desktop/images/08062026/09/18/image_08062026_09_19_05_60926.jpg MAIN: 2026-06-08 09:19:06,261 - INFO - duration: 0.865842788000009 MAIN: 2026-06-08 09:19:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:20:05,426 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:20:05,450 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:20:06,086 - INFO - taking picture MAIN: 2026-06-08 09:20:06,087 - INFO - we take 170 photos in this while loop MAIN: 2026-06-08 09:20:06,087 - INFO - /home/pi/Desktop/images/08062026/09/19/image_08062026_09_20_05_59799.jpg MAIN: 2026-06-08 09:20:06,087 - INFO - duration: 0.8919011529978889 MAIN: 2026-06-08 09:20:06,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:21:05,134 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:21:05,212 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:21:05,795 - INFO - taking picture MAIN: 2026-06-08 09:21:05,795 - INFO - we take 171 photos in this while loop MAIN: 2026-06-08 09:21:05,795 - INFO - /home/pi/Desktop/images/08062026/09/20/image_08062026_09_21_05_59674.jpg MAIN: 2026-06-08 09:21:05,795 - INFO - duration: 0.9253415490020416 MAIN: 2026-06-08 09:21:05,795 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:22:05,009 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:22:05,662 - INFO - taking picture MAIN: 2026-06-08 09:22:05,662 - INFO - we take 172 photos in this while loop MAIN: 2026-06-08 09:22:05,663 - INFO - /home/pi/Desktop/images/08062026/09/21/image_08062026_09_22_05_59872.jpg MAIN: 2026-06-08 09:22:05,663 - INFO - duration: 0.920304880997719 MAIN: 2026-06-08 09:22:05,663 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/22' MAIN: 2026-06-08 09:22:05,830 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:23:04,583 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:23:05,269 - INFO - taking picture MAIN: 2026-06-08 09:23:05,269 - INFO - we take 173 photos in this while loop MAIN: 2026-06-08 09:23:05,270 - INFO - /home/pi/Desktop/images/08062026/09/22/image_08062026_09_23_04_59617.jpg MAIN: 2026-06-08 09:23:05,270 - INFO - duration: 0.9097160919991438 MAIN: 2026-06-08 09:23:05,270 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/23' MAIN: 2026-06-08 09:23:05,419 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:24:04,913 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:24:05,568 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:24:06,266 - INFO - taking picture MAIN: 2026-06-08 09:24:06,266 - INFO - we take 174 photos in this while loop MAIN: 2026-06-08 09:24:06,266 - INFO - /home/pi/Desktop/images/08062026/09/23/image_08062026_09_24_05_60992.jpg MAIN: 2026-06-08 09:24:06,266 - INFO - duration: 0.9138946860002761 MAIN: 2026-06-08 09:24:06,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:25:04,489 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:25:05,161 - INFO - taking picture MAIN: 2026-06-08 09:25:05,161 - INFO - we take 175 photos in this while loop MAIN: 2026-06-08 09:25:05,161 - INFO - /home/pi/Desktop/images/08062026/09/24/image_08062026_09_25_04_58903.jpg MAIN: 2026-06-08 09:25:05,162 - INFO - duration: 0.9057899300023564 MAIN: 2026-06-08 09:25:05,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/25' MAIN: 2026-06-08 09:25:05,352 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:26:04,458 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:26:05,161 - INFO - taking picture MAIN: 2026-06-08 09:26:05,161 - INFO - we take 176 photos in this while loop MAIN: 2026-06-08 09:26:05,161 - INFO - /home/pi/Desktop/images/08062026/09/25/image_08062026_09_26_04_59923.jpg MAIN: 2026-06-08 09:26:05,161 - INFO - duration: 0.9815670919997501 MAIN: 2026-06-08 09:26:05,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/26' MAIN: 2026-06-08 09:26:05,399 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:27:04,977 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:27:05,170 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:27:05,638 - INFO - taking picture MAIN: 2026-06-08 09:27:05,638 - INFO - we take 177 photos in this while loop MAIN: 2026-06-08 09:27:05,638 - INFO - /home/pi/Desktop/images/08062026/09/26/image_08062026_09_27_04_60531.jpg MAIN: 2026-06-08 09:27:05,638 - INFO - duration: 0.9266575340006966 MAIN: 2026-06-08 09:27:05,638 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:28:04,785 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:28:05,484 - INFO - taking picture MAIN: 2026-06-08 09:28:05,484 - INFO - we take 178 photos in this while loop MAIN: 2026-06-08 09:28:05,484 - INFO - /home/pi/Desktop/images/08062026/09/27/image_08062026_09_28_04_59816.jpg MAIN: 2026-06-08 09:28:05,485 - INFO - duration: 0.9562982749994262 MAIN: 2026-06-08 09:28:05,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/28' MAIN: 2026-06-08 09:28:05,770 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:29:04,754 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:29:05,433 - INFO - taking picture MAIN: 2026-06-08 09:29:05,434 - INFO - we take 179 photos in this while loop MAIN: 2026-06-08 09:29:05,434 - INFO - /home/pi/Desktop/images/08062026/09/28/image_08062026_09_29_04_60016.jpg MAIN: 2026-06-08 09:29:05,434 - INFO - duration: 0.8891006779995223 MAIN: 2026-06-08 09:29:05,434 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/29' MAIN: 2026-06-08 09:29:05,662 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:30:04,487 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:30:05,176 - INFO - taking picture MAIN: 2026-06-08 09:30:05,176 - INFO - we take 180 photos in this while loop MAIN: 2026-06-08 09:30:05,176 - INFO - /home/pi/Desktop/images/08062026/09/29/image_08062026_09_30_04_59701.jpg MAIN: 2026-06-08 09:30:05,176 - INFO - duration: 0.9302072160026 MAIN: 2026-06-08 09:30:05,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/30' MAIN: 2026-06-08 09:30:05,488 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:31:04,889 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:31:05,440 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:31:06,134 - INFO - taking picture MAIN: 2026-06-08 09:31:06,135 - INFO - we take 181 photos in this while loop MAIN: 2026-06-08 09:31:06,135 - INFO - /home/pi/Desktop/images/08062026/09/30/image_08062026_09_31_05_60981.jpg MAIN: 2026-06-08 09:31:06,135 - INFO - duration: 0.9076497730020492 MAIN: 2026-06-08 09:31:06,135 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:32:05,236 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:32:05,303 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:32:05,952 - INFO - taking picture MAIN: 2026-06-08 09:32:05,952 - INFO - we take 182 photos in this while loop MAIN: 2026-06-08 09:32:05,952 - INFO - /home/pi/Desktop/images/08062026/09/31/image_08062026_09_32_05_59727.jpg MAIN: 2026-06-08 09:32:05,953 - INFO - duration: 0.9972838870016858 MAIN: 2026-06-08 09:32:05,953 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:33:05,272 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:33:05,452 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:33:06,152 - INFO - taking picture MAIN: 2026-06-08 09:33:06,152 - INFO - we take 183 photos in this while loop MAIN: 2026-06-08 09:33:06,152 - INFO - /home/pi/Desktop/images/08062026/09/32/image_08062026_09_33_05_60206.jpg MAIN: 2026-06-08 09:33:06,152 - INFO - duration: 0.9910309599981701 MAIN: 2026-06-08 09:33:06,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/33' MAIN: 2026-06-08 09:34:04,401 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:34:05,061 - INFO - taking picture MAIN: 2026-06-08 09:34:05,061 - INFO - we take 184 photos in this while loop MAIN: 2026-06-08 09:34:05,061 - INFO - /home/pi/Desktop/images/08062026/09/33/image_08062026_09_34_04_59028.jpg MAIN: 2026-06-08 09:34:05,061 - INFO - duration: 0.8710780809997232 MAIN: 2026-06-08 09:34:05,061 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/34' MAIN: 2026-06-08 09:34:05,759 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:35:05,052 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:35:05,576 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:35:06,229 - INFO - taking picture MAIN: 2026-06-08 09:35:06,230 - INFO - we take 185 photos in this while loop MAIN: 2026-06-08 09:35:06,230 - INFO - /home/pi/Desktop/images/08062026/09/34/image_08062026_09_35_05_61136.jpg MAIN: 2026-06-08 09:35:06,230 - INFO - duration: 0.9037595160007186 MAIN: 2026-06-08 09:35:06,230 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:36:05,272 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:36:05,530 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:36:06,184 - INFO - taking picture MAIN: 2026-06-08 09:36:06,184 - INFO - we take 186 photos in this while loop MAIN: 2026-06-08 09:36:06,184 - INFO - /home/pi/Desktop/images/08062026/09/35/image_08062026_09_36_05_59971.jpg MAIN: 2026-06-08 09:36:06,184 - INFO - duration: 0.8859485800021503 MAIN: 2026-06-08 09:36:06,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:37:05,063 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:37:05,401 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:37:06,050 - INFO - taking picture MAIN: 2026-06-08 09:37:06,050 - INFO - we take 187 photos in this while loop MAIN: 2026-06-08 09:37:06,051 - INFO - /home/pi/Desktop/images/08062026/09/36/image_08062026_09_37_05_59867.jpg MAIN: 2026-06-08 09:37:06,051 - INFO - duration: 0.8849172660011391 MAIN: 2026-06-08 09:37:06,051 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:38:05,348 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:38:05,429 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:38:06,011 - INFO - taking picture MAIN: 2026-06-08 09:38:06,012 - INFO - we take 188 photos in this while loop MAIN: 2026-06-08 09:38:06,012 - INFO - /home/pi/Desktop/images/08062026/09/37/image_08062026_09_38_05_59916.jpg MAIN: 2026-06-08 09:38:06,012 - INFO - duration: 0.9292623660003301 MAIN: 2026-06-08 09:38:06,012 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:39:05,324 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:39:05,359 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:39:05,980 - INFO - taking picture MAIN: 2026-06-08 09:39:05,980 - INFO - we take 189 photos in this while loop MAIN: 2026-06-08 09:39:05,980 - INFO - /home/pi/Desktop/images/08062026/09/38/image_08062026_09_39_05_60002.jpg MAIN: 2026-06-08 09:39:05,981 - INFO - duration: 0.895068177000212 MAIN: 2026-06-08 09:39:05,981 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:40:05,644 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:40:06,012 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:40:06,359 - INFO - taking picture MAIN: 2026-06-08 09:40:06,359 - INFO - we take 190 photos in this while loop MAIN: 2026-06-08 09:40:06,360 - INFO - /home/pi/Desktop/images/08062026/09/39/image_08062026_09_40_05_60291.jpg MAIN: 2026-06-08 09:40:06,360 - INFO - duration: 0.9829724170012923 MAIN: 2026-06-08 09:40:06,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:41:04,562 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:41:04,570 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:41:05,278 - INFO - taking picture MAIN: 2026-06-08 09:41:05,278 - INFO - we take 191 photos in this while loop MAIN: 2026-06-08 09:41:05,279 - INFO - /home/pi/Desktop/images/08062026/09/40/image_08062026_09_41_04_58905.jpg MAIN: 2026-06-08 09:41:05,279 - INFO - duration: 0.9963115169994126 MAIN: 2026-06-08 09:41:05,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:42:04,650 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:42:04,898 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:42:05,314 - INFO - taking picture MAIN: 2026-06-08 09:42:05,315 - INFO - we take 192 photos in this while loop MAIN: 2026-06-08 09:42:05,315 - INFO - /home/pi/Desktop/images/08062026/09/41/image_08062026_09_42_04_60094.jpg MAIN: 2026-06-08 09:42:05,315 - INFO - duration: 0.9380966509997961 MAIN: 2026-06-08 09:42:05,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:43:04,658 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:43:04,691 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:43:05,326 - INFO - taking picture MAIN: 2026-06-08 09:43:05,326 - INFO - we take 193 photos in this while loop MAIN: 2026-06-08 09:43:05,326 - INFO - /home/pi/Desktop/images/08062026/09/42/image_08062026_09_43_04_60024.jpg MAIN: 2026-06-08 09:43:05,326 - INFO - duration: 0.9246378969983198 MAIN: 2026-06-08 09:43:05,326 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:44:04,628 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:44:05,240 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:44:05,293 - INFO - taking picture MAIN: 2026-06-08 09:44:05,293 - INFO - we take 194 photos in this while loop MAIN: 2026-06-08 09:44:05,293 - INFO - /home/pi/Desktop/images/08062026/09/43/image_08062026_09_44_04_59988.jpg MAIN: 2026-06-08 09:44:05,293 - INFO - duration: 0.9030675059984787 MAIN: 2026-06-08 09:44:05,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:45:04,840 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:45:05,378 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:45:05,573 - INFO - taking picture MAIN: 2026-06-08 09:45:05,574 - INFO - we take 195 photos in this while loop MAIN: 2026-06-08 09:45:05,574 - INFO - /home/pi/Desktop/images/08062026/09/44/image_08062026_09_45_04_60196.jpg MAIN: 2026-06-08 09:45:05,574 - INFO - duration: 0.9871482030030165 MAIN: 2026-06-08 09:45:05,575 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:46:04,974 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:46:05,414 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:46:05,691 - INFO - taking picture MAIN: 2026-06-08 09:46:05,692 - INFO - we take 196 photos in this while loop MAIN: 2026-06-08 09:46:05,692 - INFO - /home/pi/Desktop/images/08062026/09/45/image_08062026_09_46_04_60129.jpg MAIN: 2026-06-08 09:46:05,692 - INFO - duration: 0.9748136849993898 MAIN: 2026-06-08 09:46:05,692 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:47:04,909 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:47:05,469 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:47:05,569 - INFO - taking picture MAIN: 2026-06-08 09:47:05,569 - INFO - we take 197 photos in this while loop MAIN: 2026-06-08 09:47:05,569 - INFO - /home/pi/Desktop/images/08062026/09/46/image_08062026_09_47_04_59929.jpg MAIN: 2026-06-08 09:47:05,570 - INFO - duration: 0.9226436730023124 MAIN: 2026-06-08 09:47:05,570 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:48:04,978 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:48:05,680 - INFO - taking picture MAIN: 2026-06-08 09:48:05,681 - INFO - we take 198 photos in this while loop MAIN: 2026-06-08 09:48:05,681 - INFO - /home/pi/Desktop/images/08062026/09/47/image_08062026_09_48_04_60070.jpg MAIN: 2026-06-08 09:48:05,681 - INFO - duration: 0.963120942000387 MAIN: 2026-06-08 09:48:05,681 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/48' MAIN: 2026-06-08 09:48:05,865 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:49:04,871 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:49:05,269 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:49:05,966 - INFO - taking picture MAIN: 2026-06-08 09:49:05,966 - INFO - we take 199 photos in this while loop MAIN: 2026-06-08 09:49:05,967 - INFO - /home/pi/Desktop/images/08062026/09/48/image_08062026_09_49_05_60318.jpg MAIN: 2026-06-08 09:49:05,967 - INFO - duration: 0.9304901979994611 MAIN: 2026-06-08 09:49:05,967 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/49' MAIN: 2026-06-08 09:50:04,562 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:50:05,304 - INFO - taking picture MAIN: 2026-06-08 09:50:05,304 - INFO - we take 200 photos in this while loop MAIN: 2026-06-08 09:50:05,304 - INFO - /home/pi/Desktop/images/08062026/09/49/image_08062026_09_50_04_59263.jpg MAIN: 2026-06-08 09:50:05,304 - INFO - duration: 1.0047962210010155 MAIN: 2026-06-08 09:50:05,304 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/50' MAIN: 2026-06-08 09:50:05,726 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:51:04,644 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:51:05,030 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:51:05,309 - INFO - taking picture MAIN: 2026-06-08 09:51:05,309 - INFO - we take 201 photos in this while loop MAIN: 2026-06-08 09:51:05,309 - INFO - /home/pi/Desktop/images/08062026/09/50/image_08062026_09_51_04_60072.jpg MAIN: 2026-06-08 09:51:05,309 - INFO - duration: 0.9370399840008758 MAIN: 2026-06-08 09:51:05,309 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:52:04,786 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:52:05,441 - INFO - taking picture MAIN: 2026-06-08 09:52:05,441 - INFO - we take 202 photos in this while loop MAIN: 2026-06-08 09:52:05,441 - INFO - /home/pi/Desktop/images/08062026/09/51/image_08062026_09_52_04_60151.jpg MAIN: 2026-06-08 09:52:05,441 - INFO - duration: 0.917948061000061 MAIN: 2026-06-08 09:52:05,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/52' MAIN: 2026-06-08 09:52:05,497 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:53:04,704 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:53:05,377 - INFO - taking picture MAIN: 2026-06-08 09:53:05,377 - INFO - we take 203 photos in this while loop MAIN: 2026-06-08 09:53:05,377 - INFO - /home/pi/Desktop/images/08062026/09/52/image_08062026_09_53_04_59945.jpg MAIN: 2026-06-08 09:53:05,377 - INFO - duration: 0.9084514099995431 MAIN: 2026-06-08 09:53:05,377 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/53' MAIN: 2026-06-08 09:53:05,432 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:54:04,552 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:54:05,242 - INFO - taking picture MAIN: 2026-06-08 09:54:05,242 - INFO - we take 204 photos in this while loop MAIN: 2026-06-08 09:54:05,242 - INFO - /home/pi/Desktop/images/08062026/09/53/image_08062026_09_54_04_59872.jpg MAIN: 2026-06-08 09:54:05,242 - INFO - duration: 0.9009599569981219 MAIN: 2026-06-08 09:54:05,242 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/54' MAIN: 2026-06-08 09:54:05,805 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:55:04,546 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:55:05,061 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:55:05,221 - INFO - taking picture MAIN: 2026-06-08 09:55:05,222 - INFO - we take 205 photos in this while loop MAIN: 2026-06-08 09:55:05,222 - INFO - /home/pi/Desktop/images/08062026/09/54/image_08062026_09_55_04_59972.jpg MAIN: 2026-06-08 09:55:05,222 - INFO - duration: 0.9081959909999568 MAIN: 2026-06-08 09:55:05,223 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:56:04,732 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:56:05,022 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:56:05,448 - INFO - taking picture MAIN: 2026-06-08 09:56:05,449 - INFO - we take 206 photos in this while loop MAIN: 2026-06-08 09:56:05,449 - INFO - /home/pi/Desktop/images/08062026/09/55/image_08062026_09_56_04_60132.jpg MAIN: 2026-06-08 09:56:05,449 - INFO - duration: 1.0027761189994635 MAIN: 2026-06-08 09:56:05,449 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:57:04,708 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:57:04,909 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:57:05,428 - INFO - taking picture MAIN: 2026-06-08 09:57:05,429 - INFO - we take 207 photos in this while loop MAIN: 2026-06-08 09:57:05,429 - INFO - /home/pi/Desktop/images/08062026/09/56/image_08062026_09_57_04_59984.jpg MAIN: 2026-06-08 09:57:05,429 - INFO - duration: 0.9980725790010183 MAIN: 2026-06-08 09:57:05,429 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:58:04,806 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:58:05,460 - INFO - taking picture MAIN: 2026-06-08 09:58:05,460 - INFO - we take 208 photos in this while loop MAIN: 2026-06-08 09:58:05,460 - INFO - /home/pi/Desktop/images/08062026/09/57/image_08062026_09_58_04_60124.jpg MAIN: 2026-06-08 09:58:05,461 - INFO - duration: 0.9046962590000476 MAIN: 2026-06-08 09:58:05,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/58' MAIN: 2026-06-08 09:58:05,496 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 09:59:04,791 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 09:59:05,225 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 09:59:05,455 - INFO - taking picture MAIN: 2026-06-08 09:59:05,456 - INFO - we take 209 photos in this while loop MAIN: 2026-06-08 09:59:05,456 - INFO - /home/pi/Desktop/images/08062026/09/58/image_08062026_09_59_04_59965.jpg MAIN: 2026-06-08 09:59:05,456 - INFO - duration: 0.9342464660003316 MAIN: 2026-06-08 09:59:05,456 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/09/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:00:04,969 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:00:05,223 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:00:05,672 - INFO - taking picture MAIN: 2026-06-08 10:00:05,672 - INFO - we take 210 photos in this while loop MAIN: 2026-06-08 10:00:05,672 - INFO - /home/pi/Desktop/images/08062026/09/59/image_08062026_10_00_04_60219.jpg MAIN: 2026-06-08 10:00:05,673 - INFO - duration: 0.9315590330006671 MAIN: 2026-06-08 10:00:05,673 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:01:04,874 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:01:05,111 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:01:05,538 - INFO - taking picture MAIN: 2026-06-08 10:01:05,538 - INFO - we take 211 photos in this while loop MAIN: 2026-06-08 10:01:05,538 - INFO - /home/pi/Desktop/images/08062026/10/00/image_08062026_10_01_04_59863.jpg MAIN: 2026-06-08 10:01:05,538 - INFO - duration: 0.9333201739973447 MAIN: 2026-06-08 10:01:05,539 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:02:04,929 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:02:05,516 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:02:05,646 - INFO - taking picture MAIN: 2026-06-08 10:02:05,646 - INFO - we take 212 photos in this while loop MAIN: 2026-06-08 10:02:05,647 - INFO - /home/pi/Desktop/images/08062026/10/01/image_08062026_10_02_04_60052.jpg MAIN: 2026-06-08 10:02:05,647 - INFO - duration: 0.9895968119999452 MAIN: 2026-06-08 10:02:05,647 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:03:05,210 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:03:05,582 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:03:05,876 - INFO - taking picture MAIN: 2026-06-08 10:03:05,876 - INFO - we take 213 photos in this while loop MAIN: 2026-06-08 10:03:05,876 - INFO - /home/pi/Desktop/images/08062026/10/02/image_08062026_10_03_05_60281.jpg MAIN: 2026-06-08 10:03:05,877 - INFO - duration: 0.9380049069986853 MAIN: 2026-06-08 10:03:05,877 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:04:05,274 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:04:05,915 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:04:05,927 - INFO - taking picture MAIN: 2026-06-08 10:04:05,927 - INFO - we take 214 photos in this while loop MAIN: 2026-06-08 10:04:05,927 - INFO - /home/pi/Desktop/images/08062026/10/03/image_08062026_10_04_05_60089.jpg MAIN: 2026-06-08 10:04:05,927 - INFO - duration: 0.8997984689995064 MAIN: 2026-06-08 10:04:05,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:05:05,206 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:05:05,234 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:05:05,927 - INFO - taking picture MAIN: 2026-06-08 10:05:05,927 - INFO - we take 215 photos in this while loop MAIN: 2026-06-08 10:05:05,927 - INFO - /home/pi/Desktop/images/08062026/10/04/image_08062026_10_05_05_59965.jpg MAIN: 2026-06-08 10:05:05,927 - INFO - duration: 0.9340636190026999 MAIN: 2026-06-08 10:05:05,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:06:05,147 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:06:05,571 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:06:06,278 - INFO - taking picture MAIN: 2026-06-08 10:06:06,278 - INFO - we take 216 photos in this while loop MAIN: 2026-06-08 10:06:06,278 - INFO - /home/pi/Desktop/images/08062026/10/05/image_08062026_10_06_05_60344.jpg MAIN: 2026-06-08 10:06:06,279 - INFO - duration: 0.9404373709985521 MAIN: 2026-06-08 10:06:06,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:07:04,703 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:07:05,108 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:07:05,385 - INFO - taking picture MAIN: 2026-06-08 10:07:05,385 - INFO - we take 217 photos in this while loop MAIN: 2026-06-08 10:07:05,385 - INFO - /home/pi/Desktop/images/08062026/10/06/image_08062026_10_07_04_59111.jpg MAIN: 2026-06-08 10:07:05,386 - INFO - duration: 0.9355305040007806 MAIN: 2026-06-08 10:07:05,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:08:05,035 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:08:05,532 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:08:05,695 - INFO - taking picture MAIN: 2026-06-08 10:08:05,695 - INFO - we take 218 photos in this while loop MAIN: 2026-06-08 10:08:05,696 - INFO - /home/pi/Desktop/images/08062026/10/07/image_08062026_10_08_05_60317.jpg MAIN: 2026-06-08 10:08:05,696 - INFO - duration: 0.9282045190011559 MAIN: 2026-06-08 10:08:05,696 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:09:05,024 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:09:05,368 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:09:05,687 - INFO - taking picture MAIN: 2026-06-08 10:09:05,688 - INFO - we take 219 photos in this while loop MAIN: 2026-06-08 10:09:05,688 - INFO - /home/pi/Desktop/images/08062026/10/08/image_08062026_10_09_05_59987.jpg MAIN: 2026-06-08 10:09:05,688 - INFO - duration: 0.9328554790008639 MAIN: 2026-06-08 10:09:05,688 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:10:05,254 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:10:05,940 - INFO - taking picture MAIN: 2026-06-08 10:10:05,940 - INFO - we take 220 photos in this while loop MAIN: 2026-06-08 10:10:05,940 - INFO - /home/pi/Desktop/images/08062026/10/09/image_08062026_10_10_05_60254.jpg MAIN: 2026-06-08 10:10:05,940 - INFO - duration: 0.9310922589975235 MAIN: 2026-06-08 10:10:05,941 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/10' MAIN: 2026-06-08 10:10:06,128 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:11:04,628 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:11:05,453 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:11:06,154 - INFO - taking picture MAIN: 2026-06-08 10:11:06,154 - INFO - we take 221 photos in this while loop MAIN: 2026-06-08 10:11:06,154 - INFO - /home/pi/Desktop/images/08062026/10/10/image_08062026_10_11_05_60159.jpg MAIN: 2026-06-08 10:11:06,155 - INFO - duration: 0.9855505669984268 MAIN: 2026-06-08 10:11:06,155 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:12:04,451 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:12:05,148 - INFO - taking picture MAIN: 2026-06-08 10:12:05,148 - INFO - we take 222 photos in this while loop MAIN: 2026-06-08 10:12:05,148 - INFO - /home/pi/Desktop/images/08062026/10/11/image_08062026_10_12_04_59005.jpg MAIN: 2026-06-08 10:12:05,149 - INFO - duration: 0.9740965199998755 MAIN: 2026-06-08 10:12:05,149 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/12' MAIN: 2026-06-08 10:12:05,290 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:13:05,072 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:13:05,582 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:13:06,264 - INFO - taking picture MAIN: 2026-06-08 10:13:06,264 - INFO - we take 223 photos in this while loop MAIN: 2026-06-08 10:13:06,264 - INFO - /home/pi/Desktop/images/08062026/10/12/image_08062026_10_13_05_61192.jpg MAIN: 2026-06-08 10:13:06,265 - INFO - duration: 0.8974363759989501 MAIN: 2026-06-08 10:13:06,265 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:14:04,462 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:14:05,208 - INFO - taking picture MAIN: 2026-06-08 10:14:05,208 - INFO - we take 224 photos in this while loop MAIN: 2026-06-08 10:14:05,208 - INFO - /home/pi/Desktop/images/08062026/10/13/image_08062026_10_14_04_58863.jpg MAIN: 2026-06-08 10:14:05,208 - INFO - duration: 0.9780933940019167 MAIN: 2026-06-08 10:14:05,209 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/14' MAIN: 2026-06-08 10:14:05,304 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:15:04,624 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:15:05,313 - INFO - taking picture MAIN: 2026-06-08 10:15:05,314 - INFO - we take 225 photos in this while loop MAIN: 2026-06-08 10:15:05,314 - INFO - /home/pi/Desktop/images/08062026/10/14/image_08062026_10_15_04_60163.jpg MAIN: 2026-06-08 10:15:05,314 - INFO - duration: 0.9207453320013883 MAIN: 2026-06-08 10:15:05,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/15' MAIN: 2026-06-08 10:15:05,655 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:16:04,591 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:16:05,276 - INFO - taking picture MAIN: 2026-06-08 10:16:05,276 - INFO - we take 226 photos in this while loop MAIN: 2026-06-08 10:16:05,276 - INFO - /home/pi/Desktop/images/08062026/10/15/image_08062026_10_16_04_59977.jpg MAIN: 2026-06-08 10:16:05,276 - INFO - duration: 0.9054486419991008 MAIN: 2026-06-08 10:16:05,276 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/16' MAIN: 2026-06-08 10:16:05,545 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:17:04,718 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:17:05,463 - INFO - taking picture MAIN: 2026-06-08 10:17:05,464 - INFO - we take 227 photos in this while loop MAIN: 2026-06-08 10:17:05,464 - INFO - /home/pi/Desktop/images/08062026/10/16/image_08062026_10_17_04_60116.jpg MAIN: 2026-06-08 10:17:05,464 - INFO - duration: 0.9764757400007511 MAIN: 2026-06-08 10:17:05,464 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/17' MAIN: 2026-06-08 10:17:05,524 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:18:04,936 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:18:05,026 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:18:05,615 - INFO - taking picture MAIN: 2026-06-08 10:18:05,616 - INFO - we take 228 photos in this while loop MAIN: 2026-06-08 10:18:05,616 - INFO - /home/pi/Desktop/images/08062026/10/17/image_08062026_10_18_04_60151.jpg MAIN: 2026-06-08 10:18:05,616 - INFO - duration: 0.9771565199989709 MAIN: 2026-06-08 10:18:05,616 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:19:04,829 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:19:04,900 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:19:05,533 - INFO - taking picture MAIN: 2026-06-08 10:19:05,533 - INFO - we take 229 photos in this while loop MAIN: 2026-06-08 10:19:05,533 - INFO - /home/pi/Desktop/images/08062026/10/18/image_08062026_10_19_04_59945.jpg MAIN: 2026-06-08 10:19:05,533 - INFO - duration: 0.9488712599995779 MAIN: 2026-06-08 10:19:05,534 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:20:05,023 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:20:05,466 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:20:05,743 - INFO - taking picture MAIN: 2026-06-08 10:20:05,743 - INFO - we take 230 photos in this while loop MAIN: 2026-06-08 10:20:05,743 - INFO - /home/pi/Desktop/images/08062026/10/19/image_08062026_10_20_05_60186.jpg MAIN: 2026-06-08 10:20:05,743 - INFO - duration: 0.9719785979978042 MAIN: 2026-06-08 10:20:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:21:04,939 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:21:05,193 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:21:05,599 - INFO - taking picture MAIN: 2026-06-08 10:21:05,600 - INFO - we take 231 photos in this while loop MAIN: 2026-06-08 10:21:05,600 - INFO - /home/pi/Desktop/images/08062026/10/20/image_08062026_10_21_04_59897.jpg MAIN: 2026-06-08 10:21:05,600 - INFO - duration: 0.9307514659994922 MAIN: 2026-06-08 10:21:05,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:22:04,875 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:22:05,530 - INFO - taking picture MAIN: 2026-06-08 10:22:05,530 - INFO - we take 232 photos in this while loop MAIN: 2026-06-08 10:22:05,530 - INFO - /home/pi/Desktop/images/08062026/10/21/image_08062026_10_22_04_59946.jpg MAIN: 2026-06-08 10:22:05,531 - INFO - duration: 0.9147349279992341 MAIN: 2026-06-08 10:22:05,531 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/22' MAIN: 2026-06-08 10:22:05,775 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:23:04,472 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:23:04,736 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:23:05,387 - INFO - taking picture MAIN: 2026-06-08 10:23:05,387 - INFO - we take 233 photos in this while loop MAIN: 2026-06-08 10:23:05,387 - INFO - /home/pi/Desktop/images/08062026/10/22/image_08062026_10_23_04_59844.jpg MAIN: 2026-06-08 10:23:05,387 - INFO - duration: 0.92700499700004 MAIN: 2026-06-08 10:23:05,388 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:24:04,644 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:24:05,148 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:24:05,337 - INFO - taking picture MAIN: 2026-06-08 10:24:05,338 - INFO - we take 234 photos in this while loop MAIN: 2026-06-08 10:24:05,338 - INFO - /home/pi/Desktop/images/08062026/10/23/image_08062026_10_24_04_59912.jpg MAIN: 2026-06-08 10:24:05,338 - INFO - duration: 0.9652475360016979 MAIN: 2026-06-08 10:24:05,338 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:25:04,516 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:25:05,214 - INFO - taking picture MAIN: 2026-06-08 10:25:05,214 - INFO - we take 235 photos in this while loop MAIN: 2026-06-08 10:25:05,214 - INFO - /home/pi/Desktop/images/08062026/10/24/image_08062026_10_25_04_59911.jpg MAIN: 2026-06-08 10:25:05,214 - INFO - duration: 0.9303742679985589 MAIN: 2026-06-08 10:25:05,214 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/25' MAIN: 2026-06-08 10:25:05,365 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:26:04,954 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:26:05,159 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:26:05,668 - INFO - taking picture MAIN: 2026-06-08 10:26:05,668 - INFO - we take 236 photos in this while loop MAIN: 2026-06-08 10:26:05,669 - INFO - /home/pi/Desktop/images/08062026/10/25/image_08062026_10_26_04_60379.jpg MAIN: 2026-06-08 10:26:05,669 - INFO - duration: 1.0057299549989693 MAIN: 2026-06-08 10:26:05,669 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:27:04,857 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:27:05,106 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:27:05,522 - INFO - taking picture MAIN: 2026-06-08 10:27:05,523 - INFO - we take 237 photos in this while loop MAIN: 2026-06-08 10:27:05,523 - INFO - /home/pi/Desktop/images/08062026/10/26/image_08062026_10_27_04_59927.jpg MAIN: 2026-06-08 10:27:05,523 - INFO - duration: 0.9322794540021277 MAIN: 2026-06-08 10:27:05,523 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:28:04,905 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:28:05,611 - INFO - taking picture MAIN: 2026-06-08 10:28:05,611 - INFO - we take 238 photos in this while loop MAIN: 2026-06-08 10:28:05,611 - INFO - /home/pi/Desktop/images/08062026/10/27/image_08062026_10_28_04_60039.jpg MAIN: 2026-06-08 10:28:05,611 - INFO - duration: 0.9815030129975639 MAIN: 2026-06-08 10:28:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/28' MAIN: 2026-06-08 10:28:05,690 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:29:05,091 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:29:05,503 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:29:05,761 - INFO - taking picture MAIN: 2026-06-08 10:29:05,762 - INFO - we take 239 photos in this while loop MAIN: 2026-06-08 10:29:05,762 - INFO - /home/pi/Desktop/images/08062026/10/28/image_08062026_10_29_05_60199.jpg MAIN: 2026-06-08 10:29:05,762 - INFO - duration: 0.9326837209991936 MAIN: 2026-06-08 10:29:05,762 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/29' MAIN: 2026-06-08 10:30:05,173 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:30:05,864 - INFO - taking picture MAIN: 2026-06-08 10:30:05,865 - INFO - we take 240 photos in this while loop MAIN: 2026-06-08 10:30:05,865 - INFO - /home/pi/Desktop/images/08062026/10/29/image_08062026_10_30_05_60108.jpg MAIN: 2026-06-08 10:30:05,865 - INFO - duration: 0.9268261149991304 MAIN: 2026-06-08 10:30:05,865 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/30' MAIN: 2026-06-08 10:30:06,454 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:31:04,851 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:31:04,991 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:31:05,671 - INFO - taking picture MAIN: 2026-06-08 10:31:05,672 - INFO - we take 241 photos in this while loop MAIN: 2026-06-08 10:31:05,672 - INFO - /home/pi/Desktop/images/08062026/10/30/image_08062026_10_31_04_59744.jpg MAIN: 2026-06-08 10:31:05,672 - INFO - duration: 0.9896717320007156 MAIN: 2026-06-08 10:31:05,672 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:32:05,079 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:32:05,406 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:32:05,754 - INFO - taking picture MAIN: 2026-06-08 10:32:05,754 - INFO - we take 242 photos in this while loop MAIN: 2026-06-08 10:32:05,755 - INFO - /home/pi/Desktop/images/08062026/10/31/image_08062026_10_32_05_60140.jpg MAIN: 2026-06-08 10:32:05,755 - INFO - duration: 0.9317730180009676 MAIN: 2026-06-08 10:32:05,755 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:33:04,855 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:33:05,158 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:33:05,542 - INFO - taking picture MAIN: 2026-06-08 10:33:05,542 - INFO - we take 243 photos in this while loop MAIN: 2026-06-08 10:33:05,542 - INFO - /home/pi/Desktop/images/08062026/10/32/image_08062026_10_33_04_59771.jpg MAIN: 2026-06-08 10:33:05,542 - INFO - duration: 0.9483370880006987 MAIN: 2026-06-08 10:33:05,543 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:34:04,708 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:34:05,363 - INFO - taking picture MAIN: 2026-06-08 10:34:05,363 - INFO - we take 244 photos in this while loop MAIN: 2026-06-08 10:34:05,363 - INFO - /home/pi/Desktop/images/08062026/10/33/image_08062026_10_34_04_59867.jpg MAIN: 2026-06-08 10:34:05,363 - INFO - duration: 0.901567000997602 MAIN: 2026-06-08 10:34:05,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/34' MAIN: 2026-06-08 10:34:05,544 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:35:04,579 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:35:05,301 - INFO - taking picture MAIN: 2026-06-08 10:35:05,302 - INFO - we take 245 photos in this while loop MAIN: 2026-06-08 10:35:05,302 - INFO - /home/pi/Desktop/images/08062026/10/34/image_08062026_10_35_04_59836.jpg MAIN: 2026-06-08 10:35:05,302 - INFO - duration: 1.0040066209985525 MAIN: 2026-06-08 10:35:05,302 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/35' MAIN: 2026-06-08 10:35:05,850 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:36:04,451 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:36:05,142 - INFO - taking picture MAIN: 2026-06-08 10:36:05,143 - INFO - we take 246 photos in this while loop MAIN: 2026-06-08 10:36:05,143 - INFO - /home/pi/Desktop/images/08062026/10/35/image_08062026_10_36_04_59917.jpg MAIN: 2026-06-08 10:36:05,143 - INFO - duration: 0.9273568800017529 MAIN: 2026-06-08 10:36:05,143 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/36' MAIN: 2026-06-08 10:36:05,984 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:37:04,878 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:37:05,438 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:37:06,124 - INFO - taking picture MAIN: 2026-06-08 10:37:06,124 - INFO - we take 247 photos in this while loop MAIN: 2026-06-08 10:37:06,125 - INFO - /home/pi/Desktop/images/08062026/10/36/image_08062026_10_37_05_61010.jpg MAIN: 2026-06-08 10:37:06,125 - INFO - duration: 0.8983868570030609 MAIN: 2026-06-08 10:37:06,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:38:05,191 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:38:05,354 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:38:06,036 - INFO - taking picture MAIN: 2026-06-08 10:38:06,036 - INFO - we take 248 photos in this while loop MAIN: 2026-06-08 10:38:06,036 - INFO - /home/pi/Desktop/images/08062026/10/37/image_08062026_10_38_05_59826.jpg MAIN: 2026-06-08 10:38:06,037 - INFO - duration: 0.9841396439987875 MAIN: 2026-06-08 10:38:06,037 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:39:04,978 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:39:05,165 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:39:05,844 - INFO - taking picture MAIN: 2026-06-08 10:39:05,844 - INFO - we take 249 photos in this while loop MAIN: 2026-06-08 10:39:05,844 - INFO - /home/pi/Desktop/images/08062026/10/38/image_08062026_10_39_05_59817.jpg MAIN: 2026-06-08 10:39:05,844 - INFO - duration: 0.974453128001187 MAIN: 2026-06-08 10:39:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:40:05,036 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:40:05,658 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:40:05,752 - INFO - taking picture MAIN: 2026-06-08 10:40:05,753 - INFO - we take 250 photos in this while loop MAIN: 2026-06-08 10:40:05,754 - INFO - /home/pi/Desktop/images/08062026/10/39/image_08062026_10_40_05_59932.jpg MAIN: 2026-06-08 10:40:05,754 - INFO - duration: 0.9518026229998213 MAIN: 2026-06-08 10:40:05,756 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:41:05,485 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:41:05,588 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:41:06,194 - INFO - taking picture MAIN: 2026-06-08 10:41:06,194 - INFO - we take 251 photos in this while loop MAIN: 2026-06-08 10:41:06,194 - INFO - /home/pi/Desktop/images/08062026/10/40/image_08062026_10_41_05_60415.jpg MAIN: 2026-06-08 10:41:06,194 - INFO - duration: 0.9765014670010714 MAIN: 2026-06-08 10:41:06,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:42:04,672 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:42:04,989 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:42:05,371 - INFO - taking picture MAIN: 2026-06-08 10:42:05,371 - INFO - we take 252 photos in this while loop MAIN: 2026-06-08 10:42:05,371 - INFO - /home/pi/Desktop/images/08062026/10/41/image_08062026_10_42_04_59174.jpg MAIN: 2026-06-08 10:42:05,371 - INFO - duration: 0.9791027480023331 MAIN: 2026-06-08 10:42:05,372 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:43:04,491 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:43:05,071 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:43:05,201 - INFO - taking picture MAIN: 2026-06-08 10:43:05,201 - INFO - we take 253 photos in this while loop MAIN: 2026-06-08 10:43:05,201 - INFO - /home/pi/Desktop/images/08062026/10/42/image_08062026_10_43_04_59797.jpg MAIN: 2026-06-08 10:43:05,201 - INFO - duration: 1.0113463710003998 MAIN: 2026-06-08 10:43:05,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:44:05,394 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:44:05,429 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:44:06,126 - INFO - taking picture MAIN: 2026-06-08 10:44:06,127 - INFO - we take 254 photos in this while loop MAIN: 2026-06-08 10:44:06,127 - INFO - /home/pi/Desktop/images/08062026/10/43/image_08062026_10_44_05_61013.jpg MAIN: 2026-06-08 10:44:06,127 - INFO - duration: 0.9238591749999614 MAIN: 2026-06-08 10:44:06,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:45:05,025 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:45:05,428 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:45:05,697 - INFO - taking picture MAIN: 2026-06-08 10:45:05,697 - INFO - we take 255 photos in this while loop MAIN: 2026-06-08 10:45:05,698 - INFO - /home/pi/Desktop/images/08062026/10/44/image_08062026_10_45_05_59593.jpg MAIN: 2026-06-08 10:45:05,698 - INFO - duration: 0.9011794120015111 MAIN: 2026-06-08 10:45:05,698 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:46:04,786 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:46:05,491 - INFO - taking picture MAIN: 2026-06-08 10:46:05,491 - INFO - we take 256 photos in this while loop MAIN: 2026-06-08 10:46:05,491 - INFO - /home/pi/Desktop/images/08062026/10/45/image_08062026_10_46_04_59738.jpg MAIN: 2026-06-08 10:46:05,491 - INFO - duration: 0.956352616998629 MAIN: 2026-06-08 10:46:05,492 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/46' MAIN: 2026-06-08 10:46:05,508 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:47:05,411 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:47:05,626 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:47:06,281 - INFO - taking picture MAIN: 2026-06-08 10:47:06,281 - INFO - we take 257 photos in this while loop MAIN: 2026-06-08 10:47:06,281 - INFO - /home/pi/Desktop/images/08062026/10/46/image_08062026_10_47_05_60814.jpg MAIN: 2026-06-08 10:47:06,282 - INFO - duration: 0.932191559997591 MAIN: 2026-06-08 10:47:06,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:48:04,850 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:48:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:48:06,112 - INFO - taking picture MAIN: 2026-06-08 10:48:06,112 - INFO - we take 258 photos in this while loop MAIN: 2026-06-08 10:48:06,113 - INFO - /home/pi/Desktop/images/08062026/10/47/image_08062026_10_48_05_59792.jpg MAIN: 2026-06-08 10:48:06,113 - INFO - duration: 0.9704768060000788 MAIN: 2026-06-08 10:48:06,113 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:49:04,776 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:49:05,262 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:49:05,947 - INFO - taking picture MAIN: 2026-06-08 10:49:05,947 - INFO - we take 259 photos in this while loop MAIN: 2026-06-08 10:49:05,947 - INFO - /home/pi/Desktop/images/08062026/10/48/image_08062026_10_49_05_59905.jpg MAIN: 2026-06-08 10:49:05,947 - INFO - duration: 0.8994600420010102 MAIN: 2026-06-08 10:49:05,947 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:50:04,816 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:50:05,286 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:50:05,479 - INFO - taking picture MAIN: 2026-06-08 10:50:05,480 - INFO - we take 260 photos in this while loop MAIN: 2026-06-08 10:50:05,480 - INFO - /home/pi/Desktop/images/08062026/10/49/image_08062026_10_50_04_59555.jpg MAIN: 2026-06-08 10:50:05,480 - INFO - duration: 0.8768453120028425 MAIN: 2026-06-08 10:50:05,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:51:04,667 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:51:05,218 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:51:05,385 - INFO - taking picture MAIN: 2026-06-08 10:51:05,385 - INFO - we take 261 photos in this while loop MAIN: 2026-06-08 10:51:05,385 - INFO - /home/pi/Desktop/images/08062026/10/50/image_08062026_10_51_04_59786.jpg MAIN: 2026-06-08 10:51:05,385 - INFO - duration: 0.9958893670009275 MAIN: 2026-06-08 10:51:05,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:52:05,021 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:52:05,675 - INFO - taking picture MAIN: 2026-06-08 10:52:05,675 - INFO - we take 262 photos in this while loop MAIN: 2026-06-08 10:52:05,675 - INFO - /home/pi/Desktop/images/08062026/10/51/image_08062026_10_52_05_60385.jpg MAIN: 2026-06-08 10:52:05,675 - INFO - duration: 0.9006709510031214 MAIN: 2026-06-08 10:52:05,676 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/52' MAIN: 2026-06-08 10:52:05,770 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:53:04,997 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:53:05,434 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:53:05,668 - INFO - taking picture MAIN: 2026-06-08 10:53:05,669 - INFO - we take 263 photos in this while loop MAIN: 2026-06-08 10:53:05,669 - INFO - /home/pi/Desktop/images/08062026/10/52/image_08062026_10_53_04_59973.jpg MAIN: 2026-06-08 10:53:05,669 - INFO - duration: 0.9207513949986605 MAIN: 2026-06-08 10:53:05,669 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:54:04,542 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:54:04,965 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:54:05,216 - INFO - taking picture MAIN: 2026-06-08 10:54:05,217 - INFO - we take 264 photos in this while loop MAIN: 2026-06-08 10:54:05,217 - INFO - /home/pi/Desktop/images/08062026/10/53/image_08062026_10_54_04_59518.jpg MAIN: 2026-06-08 10:54:05,217 - INFO - duration: 0.9499305649987946 MAIN: 2026-06-08 10:54:05,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:55:04,497 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:55:05,184 - INFO - taking picture MAIN: 2026-06-08 10:55:05,184 - INFO - we take 265 photos in this while loop MAIN: 2026-06-08 10:55:05,184 - INFO - /home/pi/Desktop/images/08062026/10/54/image_08062026_10_55_04_60004.jpg MAIN: 2026-06-08 10:55:05,184 - INFO - duration: 0.9133117890014546 MAIN: 2026-06-08 10:55:05,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/55' MAIN: 2026-06-08 10:55:05,237 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:56:05,452 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:56:05,618 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:56:06,114 - INFO - taking picture MAIN: 2026-06-08 10:56:06,114 - INFO - we take 266 photos in this while loop MAIN: 2026-06-08 10:56:06,114 - INFO - /home/pi/Desktop/images/08062026/10/55/image_08062026_10_56_05_60915.jpg MAIN: 2026-06-08 10:56:06,114 - INFO - duration: 0.9274364200027776 MAIN: 2026-06-08 10:56:06,115 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:57:05,357 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:57:05,524 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:57:06,175 - INFO - taking picture MAIN: 2026-06-08 10:57:06,175 - INFO - we take 267 photos in this while loop MAIN: 2026-06-08 10:57:06,176 - INFO - /home/pi/Desktop/images/08062026/10/56/image_08062026_10_57_05_60060.jpg MAIN: 2026-06-08 10:57:06,176 - INFO - duration: 0.928473682000913 MAIN: 2026-06-08 10:57:06,176 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:58:05,210 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:58:05,738 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:58:05,914 - INFO - taking picture MAIN: 2026-06-08 10:58:05,914 - INFO - we take 268 photos in this while loop MAIN: 2026-06-08 10:58:05,914 - INFO - /home/pi/Desktop/images/08062026/10/57/image_08062026_10_58_05_59698.jpg MAIN: 2026-06-08 10:58:05,914 - INFO - duration: 0.9683464839981752 MAIN: 2026-06-08 10:58:05,915 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 10:59:04,479 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 10:59:04,612 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 10:59:05,266 - INFO - taking picture MAIN: 2026-06-08 10:59:05,266 - INFO - we take 269 photos in this while loop MAIN: 2026-06-08 10:59:05,266 - INFO - /home/pi/Desktop/images/08062026/10/58/image_08062026_10_59_04_59382.jpg MAIN: 2026-06-08 10:59:05,266 - INFO - duration: 0.937159133998648 MAIN: 2026-06-08 10:59:05,266 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/10/59' MAIN: 2026-06-08 11:00:04,581 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:00:05,316 - INFO - taking picture MAIN: 2026-06-08 11:00:05,316 - INFO - we take 270 photos in this while loop MAIN: 2026-06-08 11:00:05,316 - INFO - /home/pi/Desktop/images/08062026/10/59/image_08062026_11_00_04_59976.jpg MAIN: 2026-06-08 11:00:05,316 - INFO - duration: 1.011152311002661 MAIN: 2026-06-08 11:00:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/00' MAIN: 2026-06-08 11:00:06,006 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:01:04,719 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:01:05,403 - INFO - taking picture MAIN: 2026-06-08 11:01:05,403 - INFO - we take 271 photos in this while loop MAIN: 2026-06-08 11:01:05,403 - INFO - /home/pi/Desktop/images/08062026/11/00/image_08062026_11_01_04_60203.jpg MAIN: 2026-06-08 11:01:05,404 - INFO - duration: 0.8953616770013468 MAIN: 2026-06-08 11:01:05,404 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/01' MAIN: 2026-06-08 11:01:05,493 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:02:04,925 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:02:05,678 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:02:06,339 - INFO - taking picture MAIN: 2026-06-08 11:02:06,339 - INFO - we take 272 photos in this while loop MAIN: 2026-06-08 11:02:06,339 - INFO - /home/pi/Desktop/images/08062026/11/01/image_08062026_11_02_05_60891.jpg MAIN: 2026-06-08 11:02:06,339 - INFO - duration: 0.9393091349993483 MAIN: 2026-06-08 11:02:06,339 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:03:04,933 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:03:05,331 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:03:05,984 - INFO - taking picture MAIN: 2026-06-08 11:03:05,985 - INFO - we take 273 photos in this while loop MAIN: 2026-06-08 11:03:05,985 - INFO - /home/pi/Desktop/images/08062026/11/02/image_08062026_11_03_05_59719.jpg MAIN: 2026-06-08 11:03:05,985 - INFO - duration: 0.865737400999933 MAIN: 2026-06-08 11:03:05,985 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:04:05,016 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:04:05,262 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:04:05,681 - INFO - taking picture MAIN: 2026-06-08 11:04:05,681 - INFO - we take 274 photos in this while loop MAIN: 2026-06-08 11:04:05,681 - INFO - /home/pi/Desktop/images/08062026/11/03/image_08062026_11_04_05_59646.jpg MAIN: 2026-06-08 11:04:05,681 - INFO - duration: 0.9154643289984961 MAIN: 2026-06-08 11:04:05,682 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:05:04,908 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:05:05,365 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:05:05,621 - INFO - taking picture MAIN: 2026-06-08 11:05:05,622 - INFO - we take 275 photos in this while loop MAIN: 2026-06-08 11:05:05,622 - INFO - /home/pi/Desktop/images/08062026/11/04/image_08062026_11_05_04_59902.jpg MAIN: 2026-06-08 11:05:05,622 - INFO - duration: 0.9535655340005178 MAIN: 2026-06-08 11:05:05,623 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:06:04,965 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:06:05,511 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:06:05,628 - INFO - taking picture MAIN: 2026-06-08 11:06:05,629 - INFO - we take 276 photos in this while loop MAIN: 2026-06-08 11:06:05,629 - INFO - /home/pi/Desktop/images/08062026/11/05/image_08062026_11_06_04_60033.jpg MAIN: 2026-06-08 11:06:05,629 - INFO - duration: 0.9273524199998064 MAIN: 2026-06-08 11:06:05,629 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:07:04,702 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:07:05,223 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:07:05,364 - INFO - taking picture MAIN: 2026-06-08 11:07:05,365 - INFO - we take 277 photos in this while loop MAIN: 2026-06-08 11:07:05,365 - INFO - /home/pi/Desktop/images/08062026/11/06/image_08062026_11_07_04_59724.jpg MAIN: 2026-06-08 11:07:05,365 - INFO - duration: 0.9386348199986969 MAIN: 2026-06-08 11:07:05,365 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:08:05,624 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:08:05,703 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:08:06,293 - INFO - taking picture MAIN: 2026-06-08 11:08:06,293 - INFO - we take 278 photos in this while loop MAIN: 2026-06-08 11:08:06,293 - INFO - /home/pi/Desktop/images/08062026/11/07/image_08062026_11_08_05_60933.jpg MAIN: 2026-06-08 11:08:06,293 - INFO - duration: 0.9335353910028061 MAIN: 2026-06-08 11:08:06,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:09:05,127 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:09:05,676 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:09:05,791 - INFO - taking picture MAIN: 2026-06-08 11:09:05,792 - INFO - we take 279 photos in this while loop MAIN: 2026-06-08 11:09:05,792 - INFO - /home/pi/Desktop/images/08062026/11/08/image_08062026_11_09_05_59482.jpg MAIN: 2026-06-08 11:09:05,792 - INFO - duration: 0.9495856719986477 MAIN: 2026-06-08 11:09:05,792 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:10:04,892 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:10:05,139 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:10:05,604 - INFO - taking picture MAIN: 2026-06-08 11:10:05,604 - INFO - we take 280 photos in this while loop MAIN: 2026-06-08 11:10:05,605 - INFO - /home/pi/Desktop/images/08062026/11/09/image_08062026_11_10_04_59810.jpg MAIN: 2026-06-08 11:10:05,605 - INFO - duration: 0.9523477740003727 MAIN: 2026-06-08 11:10:05,605 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:11:04,816 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:11:04,865 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:11:05,473 - INFO - taking picture MAIN: 2026-06-08 11:11:05,473 - INFO - we take 281 photos in this while loop MAIN: 2026-06-08 11:11:05,474 - INFO - /home/pi/Desktop/images/08062026/11/10/image_08062026_11_11_04_59886.jpg MAIN: 2026-06-08 11:11:05,474 - INFO - duration: 0.9350069409993012 MAIN: 2026-06-08 11:11:05,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:12:04,554 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:12:05,206 - INFO - taking picture MAIN: 2026-06-08 11:12:05,206 - INFO - we take 282 photos in this while loop MAIN: 2026-06-08 11:12:05,207 - INFO - /home/pi/Desktop/images/08062026/11/11/image_08062026_11_12_04_59766.jpg MAIN: 2026-06-08 11:12:05,207 - INFO - duration: 0.901711440001236 MAIN: 2026-06-08 11:12:05,207 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/12' MAIN: 2026-06-08 11:12:05,306 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:13:05,177 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:13:05,345 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:13:05,999 - INFO - taking picture MAIN: 2026-06-08 11:13:05,999 - INFO - we take 283 photos in this while loop MAIN: 2026-06-08 11:13:06,000 - INFO - /home/pi/Desktop/images/08062026/11/12/image_08062026_11_13_05_60751.jpg MAIN: 2026-06-08 11:13:06,000 - INFO - duration: 0.9428464680022444 MAIN: 2026-06-08 11:13:06,000 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:14:05,167 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:14:05,518 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:14:05,832 - INFO - taking picture MAIN: 2026-06-08 11:14:05,833 - INFO - we take 284 photos in this while loop MAIN: 2026-06-08 11:14:05,833 - INFO - /home/pi/Desktop/images/08062026/11/13/image_08062026_11_14_05_59848.jpg MAIN: 2026-06-08 11:14:05,833 - INFO - duration: 0.9279313759980141 MAIN: 2026-06-08 11:14:05,833 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:15:05,063 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:15:05,743 - INFO - taking picture MAIN: 2026-06-08 11:15:05,743 - INFO - we take 285 photos in this while loop MAIN: 2026-06-08 11:15:05,743 - INFO - /home/pi/Desktop/images/08062026/11/14/image_08062026_11_15_05_59928.jpg MAIN: 2026-06-08 11:15:05,743 - INFO - duration: 0.90921490600158 MAIN: 2026-06-08 11:15:05,743 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/15' MAIN: 2026-06-08 11:15:05,784 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:16:04,710 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:16:04,984 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:16:05,375 - INFO - taking picture MAIN: 2026-06-08 11:16:05,375 - INFO - we take 286 photos in this while loop MAIN: 2026-06-08 11:16:05,375 - INFO - /home/pi/Desktop/images/08062026/11/15/image_08062026_11_16_04_59611.jpg MAIN: 2026-06-08 11:16:05,375 - INFO - duration: 0.9298975609999616 MAIN: 2026-06-08 11:16:05,375 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:17:05,065 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:17:05,565 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:17:06,218 - INFO - taking picture MAIN: 2026-06-08 11:17:06,218 - INFO - we take 287 photos in this while loop MAIN: 2026-06-08 11:17:06,218 - INFO - /home/pi/Desktop/images/08062026/11/16/image_08062026_11_17_05_60902.jpg MAIN: 2026-06-08 11:17:06,218 - INFO - duration: 0.8706987430014124 MAIN: 2026-06-08 11:17:06,218 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:18:05,132 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:18:05,486 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:18:05,814 - INFO - taking picture MAIN: 2026-06-08 11:18:05,814 - INFO - we take 288 photos in this while loop MAIN: 2026-06-08 11:18:05,814 - INFO - /home/pi/Desktop/images/08062026/11/17/image_08062026_11_18_05_59507.jpg MAIN: 2026-06-08 11:18:05,814 - INFO - duration: 0.9592945100012003 MAIN: 2026-06-08 11:18:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:19:05,075 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:19:05,311 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:19:05,741 - INFO - taking picture MAIN: 2026-06-08 11:19:05,741 - INFO - we take 289 photos in this while loop MAIN: 2026-06-08 11:19:05,741 - INFO - /home/pi/Desktop/images/08062026/11/18/image_08062026_11_19_05_59950.jpg MAIN: 2026-06-08 11:19:05,741 - INFO - duration: 0.9363175209982728 MAIN: 2026-06-08 11:19:05,742 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:20:05,177 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:20:05,866 - INFO - taking picture MAIN: 2026-06-08 11:20:05,866 - INFO - we take 290 photos in this while loop MAIN: 2026-06-08 11:20:05,867 - INFO - /home/pi/Desktop/images/08062026/11/19/image_08062026_11_20_05_60138.jpg MAIN: 2026-06-08 11:20:05,867 - INFO - duration: 0.923391863998404 MAIN: 2026-06-08 11:20:05,867 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/20' MAIN: 2026-06-08 11:20:06,151 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:21:04,727 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:21:04,792 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:21:05,449 - INFO - taking picture MAIN: 2026-06-08 11:21:05,449 - INFO - we take 291 photos in this while loop MAIN: 2026-06-08 11:21:05,450 - INFO - /home/pi/Desktop/images/08062026/11/20/image_08062026_11_21_04_59577.jpg MAIN: 2026-06-08 11:21:05,450 - INFO - duration: 0.9292312509969634 MAIN: 2026-06-08 11:21:05,450 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:22:04,531 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:22:05,053 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:22:05,192 - INFO - taking picture MAIN: 2026-06-08 11:22:05,192 - INFO - we take 292 photos in this while loop MAIN: 2026-06-08 11:22:05,193 - INFO - /home/pi/Desktop/images/08062026/11/21/image_08062026_11_22_04_59762.jpg MAIN: 2026-06-08 11:22:05,193 - INFO - duration: 0.9099260689981747 MAIN: 2026-06-08 11:22:05,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:23:04,955 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:23:05,502 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:23:06,187 - INFO - taking picture MAIN: 2026-06-08 11:23:06,187 - INFO - we take 293 photos in this while loop MAIN: 2026-06-08 11:23:06,187 - INFO - /home/pi/Desktop/images/08062026/11/22/image_08062026_11_23_05_61007.jpg MAIN: 2026-06-08 11:23:06,187 - INFO - duration: 0.896402575999673 MAIN: 2026-06-08 11:23:06,187 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:24:05,300 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:24:05,392 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:24:05,966 - INFO - taking picture MAIN: 2026-06-08 11:24:05,966 - INFO - we take 294 photos in this while loop MAIN: 2026-06-08 11:24:05,967 - INFO - /home/pi/Desktop/images/08062026/11/23/image_08062026_11_24_05_59741.jpg MAIN: 2026-06-08 11:24:05,967 - INFO - duration: 0.9345149299988407 MAIN: 2026-06-08 11:24:05,967 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:25:05,020 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:25:05,695 - INFO - taking picture MAIN: 2026-06-08 11:25:05,695 - INFO - we take 295 photos in this while loop MAIN: 2026-06-08 11:25:05,695 - INFO - /home/pi/Desktop/images/08062026/11/24/image_08062026_11_25_05_59753.jpg MAIN: 2026-06-08 11:25:05,695 - INFO - duration: 0.9100726679971558 MAIN: 2026-06-08 11:25:05,696 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/25' MAIN: 2026-06-08 11:25:05,927 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:26:04,906 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:26:05,636 - INFO - taking picture MAIN: 2026-06-08 11:26:05,636 - INFO - we take 296 photos in this while loop MAIN: 2026-06-08 11:26:05,636 - INFO - /home/pi/Desktop/images/08062026/11/25/image_08062026_11_26_04_59893.jpg MAIN: 2026-06-08 11:26:05,637 - INFO - duration: 0.9581868649984244 MAIN: 2026-06-08 11:26:05,637 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/26' MAIN: 2026-06-08 11:26:05,881 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:27:04,626 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:27:05,583 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:27:06,282 - INFO - taking picture MAIN: 2026-06-08 11:27:06,282 - INFO - we take 297 photos in this while loop MAIN: 2026-06-08 11:27:06,282 - INFO - /home/pi/Desktop/images/08062026/11/26/image_08062026_11_27_05_60612.jpg MAIN: 2026-06-08 11:27:06,282 - INFO - duration: 0.9918272260001686 MAIN: 2026-06-08 11:27:06,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:28:04,567 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:28:05,225 - INFO - taking picture MAIN: 2026-06-08 11:28:05,225 - INFO - we take 298 photos in this while loop MAIN: 2026-06-08 11:28:05,226 - INFO - /home/pi/Desktop/images/08062026/11/27/image_08062026_11_28_04_59015.jpg MAIN: 2026-06-08 11:28:05,226 - INFO - duration: 0.9193617769997218 MAIN: 2026-06-08 11:28:05,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/28' MAIN: 2026-06-08 11:28:05,386 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:29:04,433 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:29:05,015 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:29:05,145 - INFO - taking picture MAIN: 2026-06-08 11:29:05,145 - INFO - we take 299 photos in this while loop MAIN: 2026-06-08 11:29:05,145 - INFO - /home/pi/Desktop/images/08062026/11/28/image_08062026_11_29_04_59873.jpg MAIN: 2026-06-08 11:29:05,146 - INFO - duration: 0.965690123000968 MAIN: 2026-06-08 11:29:05,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:30:05,461 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:30:05,748 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:30:06,124 - INFO - taking picture MAIN: 2026-06-08 11:30:06,124 - INFO - we take 300 photos in this while loop MAIN: 2026-06-08 11:30:06,125 - INFO - /home/pi/Desktop/images/08062026/11/29/image_08062026_11_30_05_61050.jpg MAIN: 2026-06-08 11:30:06,125 - INFO - duration: 0.894039299000724 MAIN: 2026-06-08 11:30:06,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:31:05,197 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:31:05,363 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:31:05,855 - INFO - taking picture MAIN: 2026-06-08 11:31:05,856 - INFO - we take 301 photos in this while loop MAIN: 2026-06-08 11:31:05,856 - INFO - /home/pi/Desktop/images/08062026/11/30/image_08062026_11_31_05_59702.jpg MAIN: 2026-06-08 11:31:05,856 - INFO - duration: 0.9230594839973492 MAIN: 2026-06-08 11:31:05,856 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:32:05,094 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:32:05,756 - INFO - taking picture MAIN: 2026-06-08 11:32:05,756 - INFO - we take 302 photos in this while loop MAIN: 2026-06-08 11:32:05,756 - INFO - /home/pi/Desktop/images/08062026/11/31/image_08062026_11_32_05_59907.jpg MAIN: 2026-06-08 11:32:05,757 - INFO - duration: 0.9162994310026988 MAIN: 2026-06-08 11:32:05,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/32' MAIN: 2026-06-08 11:32:05,795 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:33:04,776 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:33:04,847 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:33:05,437 - INFO - taking picture MAIN: 2026-06-08 11:33:05,437 - INFO - we take 303 photos in this while loop MAIN: 2026-06-08 11:33:05,437 - INFO - /home/pi/Desktop/images/08062026/11/32/image_08062026_11_33_04_59670.jpg MAIN: 2026-06-08 11:33:05,437 - INFO - duration: 0.9270625509998354 MAIN: 2026-06-08 11:33:05,438 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:34:04,659 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:34:05,204 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:34:05,320 - INFO - taking picture MAIN: 2026-06-08 11:34:05,320 - INFO - we take 304 photos in this while loop MAIN: 2026-06-08 11:34:05,320 - INFO - /home/pi/Desktop/images/08062026/11/33/image_08062026_11_34_04_59882.jpg MAIN: 2026-06-08 11:34:05,320 - INFO - duration: 0.9276648920022126 MAIN: 2026-06-08 11:34:05,321 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:35:04,549 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:35:05,192 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:35:05,243 - INFO - taking picture MAIN: 2026-06-08 11:35:05,243 - INFO - we take 305 photos in this while loop MAIN: 2026-06-08 11:35:05,243 - INFO - /home/pi/Desktop/images/08062026/11/34/image_08062026_11_35_04_59918.jpg MAIN: 2026-06-08 11:35:05,244 - INFO - duration: 0.9326668339999742 MAIN: 2026-06-08 11:35:05,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:36:04,817 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:36:05,452 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:36:05,472 - INFO - taking picture MAIN: 2026-06-08 11:36:05,473 - INFO - we take 306 photos in this while loop MAIN: 2026-06-08 11:36:05,473 - INFO - /home/pi/Desktop/images/08062026/11/35/image_08062026_11_36_04_60251.jpg MAIN: 2026-06-08 11:36:05,473 - INFO - duration: 0.9104722709998896 MAIN: 2026-06-08 11:36:05,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:37:04,710 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:37:05,339 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:37:05,365 - INFO - taking picture MAIN: 2026-06-08 11:37:05,365 - INFO - we take 307 photos in this while loop MAIN: 2026-06-08 11:37:05,365 - INFO - /home/pi/Desktop/images/08062026/11/36/image_08062026_11_37_04_59884.jpg MAIN: 2026-06-08 11:37:05,366 - INFO - duration: 0.9186637220009288 MAIN: 2026-06-08 11:37:05,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/37' MAIN: 2026-06-08 11:38:04,491 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:38:05,192 - INFO - taking picture MAIN: 2026-06-08 11:38:05,192 - INFO - we take 308 photos in this while loop MAIN: 2026-06-08 11:38:05,192 - INFO - /home/pi/Desktop/images/08062026/11/37/image_08062026_11_38_04_59817.jpg MAIN: 2026-06-08 11:38:05,193 - INFO - duration: 0.9283625649986789 MAIN: 2026-06-08 11:38:05,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/38' MAIN: 2026-06-08 11:38:05,825 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:39:04,574 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:39:05,554 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:39:06,208 - INFO - taking picture MAIN: 2026-06-08 11:39:06,208 - INFO - we take 309 photos in this while loop MAIN: 2026-06-08 11:39:06,208 - INFO - /home/pi/Desktop/images/08062026/11/38/image_08062026_11_39_05_61016.jpg MAIN: 2026-06-08 11:39:06,209 - INFO - duration: 0.9276058920004289 MAIN: 2026-06-08 11:39:06,209 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:40:04,428 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:40:05,180 - INFO - taking picture MAIN: 2026-06-08 11:40:05,180 - INFO - we take 310 photos in this while loop MAIN: 2026-06-08 11:40:05,181 - INFO - /home/pi/Desktop/images/08062026/11/39/image_08062026_11_40_04_58900.jpg MAIN: 2026-06-08 11:40:05,181 - INFO - duration: 0.999713363002229 MAIN: 2026-06-08 11:40:05,181 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/40' MAIN: 2026-06-08 11:40:05,413 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:41:05,089 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:41:05,348 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:41:06,003 - INFO - taking picture MAIN: 2026-06-08 11:41:06,003 - INFO - we take 311 photos in this while loop MAIN: 2026-06-08 11:41:06,003 - INFO - /home/pi/Desktop/images/08062026/11/40/image_08062026_11_41_05_60883.jpg MAIN: 2026-06-08 11:41:06,003 - INFO - duration: 0.9389446120003413 MAIN: 2026-06-08 11:41:06,004 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:42:05,143 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:42:05,314 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:42:05,802 - INFO - taking picture MAIN: 2026-06-08 11:42:05,802 - INFO - we take 312 photos in this while loop MAIN: 2026-06-08 11:42:05,802 - INFO - /home/pi/Desktop/images/08062026/11/41/image_08062026_11_42_05_59835.jpg MAIN: 2026-06-08 11:42:05,803 - INFO - duration: 0.9023489050014177 MAIN: 2026-06-08 11:42:05,803 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:43:04,854 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:43:05,507 - INFO - taking picture MAIN: 2026-06-08 11:43:05,507 - INFO - we take 313 photos in this while loop MAIN: 2026-06-08 11:43:05,507 - INFO - /home/pi/Desktop/images/08062026/11/42/image_08062026_11_43_04_59698.jpg MAIN: 2026-06-08 11:43:05,507 - INFO - duration: 0.9084959829997388 MAIN: 2026-06-08 11:43:05,508 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/43' MAIN: 2026-06-08 11:43:05,509 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:44:04,769 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:44:05,456 - INFO - taking picture MAIN: 2026-06-08 11:44:05,456 - INFO - we take 314 photos in this while loop MAIN: 2026-06-08 11:44:05,457 - INFO - /home/pi/Desktop/images/08062026/11/43/image_08062026_11_44_04_59952.jpg MAIN: 2026-06-08 11:44:05,457 - INFO - duration: 0.9059049310017144 MAIN: 2026-06-08 11:44:05,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/44' MAIN: 2026-06-08 11:44:05,772 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:45:04,625 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:45:05,084 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:45:05,323 - INFO - taking picture MAIN: 2026-06-08 11:45:05,323 - INFO - we take 315 photos in this while loop MAIN: 2026-06-08 11:45:05,324 - INFO - /home/pi/Desktop/images/08062026/11/44/image_08062026_11_45_04_59844.jpg MAIN: 2026-06-08 11:45:05,324 - INFO - duration: 0.9278884920022392 MAIN: 2026-06-08 11:45:05,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:46:04,623 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:46:05,062 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:46:05,284 - INFO - taking picture MAIN: 2026-06-08 11:46:05,284 - INFO - we take 316 photos in this while loop MAIN: 2026-06-08 11:46:05,284 - INFO - /home/pi/Desktop/images/08062026/11/45/image_08062026_11_46_04_59959.jpg MAIN: 2026-06-08 11:46:05,284 - INFO - duration: 0.9287972140009515 MAIN: 2026-06-08 11:46:05,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:47:04,468 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:47:05,048 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:47:05,128 - INFO - taking picture MAIN: 2026-06-08 11:47:05,128 - INFO - we take 317 photos in this while loop MAIN: 2026-06-08 11:47:05,128 - INFO - /home/pi/Desktop/images/08062026/11/46/image_08062026_11_47_04_59847.jpg MAIN: 2026-06-08 11:47:05,128 - INFO - duration: 0.9256488169994554 MAIN: 2026-06-08 11:47:05,129 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:48:05,234 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:48:05,478 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:48:05,900 - INFO - taking picture MAIN: 2026-06-08 11:48:05,900 - INFO - we take 318 photos in this while loop MAIN: 2026-06-08 11:48:05,900 - INFO - /home/pi/Desktop/images/08062026/11/47/image_08062026_11_48_05_60778.jpg MAIN: 2026-06-08 11:48:05,900 - INFO - duration: 0.9189429449979798 MAIN: 2026-06-08 11:48:05,901 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:49:05,128 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:49:05,373 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:49:05,792 - INFO - taking picture MAIN: 2026-06-08 11:49:05,793 - INFO - we take 319 photos in this while loop MAIN: 2026-06-08 11:49:05,793 - INFO - /home/pi/Desktop/images/08062026/11/48/image_08062026_11_49_05_59875.jpg MAIN: 2026-06-08 11:49:05,793 - INFO - duration: 0.9360390709989588 MAIN: 2026-06-08 11:49:05,793 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:50:05,235 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:50:05,915 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:50:05,919 - INFO - taking picture MAIN: 2026-06-08 11:50:05,920 - INFO - we take 320 photos in this while loop MAIN: 2026-06-08 11:50:05,920 - INFO - /home/pi/Desktop/images/08062026/11/49/image_08062026_11_50_05_60150.jpg MAIN: 2026-06-08 11:50:05,920 - INFO - duration: 0.9131620849984756 MAIN: 2026-06-08 11:50:05,920 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:51:04,692 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:51:05,135 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:51:05,819 - INFO - taking picture MAIN: 2026-06-08 11:51:05,819 - INFO - we take 321 photos in this while loop MAIN: 2026-06-08 11:51:05,820 - INFO - /home/pi/Desktop/images/08062026/11/50/image_08062026_11_51_05_59916.jpg MAIN: 2026-06-08 11:51:05,820 - INFO - duration: 0.896451550997881 MAIN: 2026-06-08 11:51:05,820 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:52:04,898 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:52:05,038 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:52:05,691 - INFO - taking picture MAIN: 2026-06-08 11:52:05,691 - INFO - we take 322 photos in this while loop MAIN: 2026-06-08 11:52:05,692 - INFO - /home/pi/Desktop/images/08062026/11/51/image_08062026_11_52_05_59827.jpg MAIN: 2026-06-08 11:52:05,692 - INFO - duration: 0.9413758080008847 MAIN: 2026-06-08 11:52:05,692 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:53:04,847 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:53:05,018 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:53:05,508 - INFO - taking picture MAIN: 2026-06-08 11:53:05,508 - INFO - we take 323 photos in this while loop MAIN: 2026-06-08 11:53:05,509 - INFO - /home/pi/Desktop/images/08062026/11/52/image_08062026_11_53_04_59817.jpg MAIN: 2026-06-08 11:53:05,509 - INFO - duration: 0.9403934540023329 MAIN: 2026-06-08 11:53:05,509 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:54:04,771 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:54:05,465 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:54:05,470 - INFO - taking picture MAIN: 2026-06-08 11:54:05,471 - INFO - we take 324 photos in this while loop MAIN: 2026-06-08 11:54:05,471 - INFO - /home/pi/Desktop/images/08062026/11/53/image_08062026_11_54_04_59934.jpg MAIN: 2026-06-08 11:54:05,471 - INFO - duration: 0.968258244000026 MAIN: 2026-06-08 11:54:05,472 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:55:04,940 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:55:05,626 - INFO - taking picture MAIN: 2026-06-08 11:55:05,626 - INFO - we take 325 photos in this while loop MAIN: 2026-06-08 11:55:05,626 - INFO - /home/pi/Desktop/images/08062026/11/54/image_08062026_11_55_04_60211.jpg MAIN: 2026-06-08 11:55:05,626 - INFO - duration: 0.9118537100002868 MAIN: 2026-06-08 11:55:05,627 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/55' MAIN: 2026-06-08 11:55:05,708 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:56:04,750 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:56:04,778 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:56:05,480 - INFO - taking picture MAIN: 2026-06-08 11:56:05,481 - INFO - we take 326 photos in this while loop MAIN: 2026-06-08 11:56:05,481 - INFO - /home/pi/Desktop/images/08062026/11/55/image_08062026_11_56_04_59786.jpg MAIN: 2026-06-08 11:56:05,481 - INFO - duration: 0.9799113789995317 MAIN: 2026-06-08 11:56:05,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:57:04,819 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:57:04,944 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:57:05,597 - INFO - taking picture MAIN: 2026-06-08 11:57:05,597 - INFO - we take 327 photos in this while loop MAIN: 2026-06-08 11:57:05,597 - INFO - /home/pi/Desktop/images/08062026/11/56/image_08062026_11_57_04_60153.jpg MAIN: 2026-06-08 11:57:05,598 - INFO - duration: 0.9429901389994484 MAIN: 2026-06-08 11:57:05,598 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:58:04,790 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:58:05,051 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:58:05,457 - INFO - taking picture MAIN: 2026-06-08 11:58:05,457 - INFO - we take 328 photos in this while loop MAIN: 2026-06-08 11:58:05,457 - INFO - /home/pi/Desktop/images/08062026/11/57/image_08062026_11_58_04_59871.jpg MAIN: 2026-06-08 11:58:05,458 - INFO - duration: 0.931218470002932 MAIN: 2026-06-08 11:58:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 11:59:04,546 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 11:59:05,151 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 11:59:05,209 - INFO - taking picture MAIN: 2026-06-08 11:59:05,209 - INFO - we take 329 photos in this while loop MAIN: 2026-06-08 11:59:05,209 - INFO - /home/pi/Desktop/images/08062026/11/58/image_08062026_11_59_04_59754.jpg MAIN: 2026-06-08 11:59:05,209 - INFO - duration: 0.9281760280027811 MAIN: 2026-06-08 11:59:05,210 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/11/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:00:05,468 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:00:05,799 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:00:06,141 - INFO - taking picture MAIN: 2026-06-08 12:00:06,141 - INFO - we take 330 photos in this while loop MAIN: 2026-06-08 12:00:06,141 - INFO - /home/pi/Desktop/images/08062026/11/59/image_08062026_12_00_05_60948.jpg MAIN: 2026-06-08 12:00:06,141 - INFO - duration: 0.9119353249989217 MAIN: 2026-06-08 12:00:06,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:01:05,233 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:01:05,414 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:01:05,943 - INFO - taking picture MAIN: 2026-06-08 12:01:05,943 - INFO - we take 331 photos in this while loop MAIN: 2026-06-08 12:01:05,943 - INFO - /home/pi/Desktop/images/08062026/12/00/image_08062026_12_01_05_59734.jpg MAIN: 2026-06-08 12:01:05,943 - INFO - duration: 0.979713319997245 MAIN: 2026-06-08 12:01:05,944 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:02:04,944 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:02:05,314 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:02:06,018 - INFO - taking picture MAIN: 2026-06-08 12:02:06,018 - INFO - we take 332 photos in this while loop MAIN: 2026-06-08 12:02:06,018 - INFO - /home/pi/Desktop/images/08062026/12/01/image_08062026_12_02_05_60108.jpg MAIN: 2026-06-08 12:02:06,018 - INFO - duration: 0.9462866030007717 MAIN: 2026-06-08 12:02:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:03:04,806 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:03:05,132 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:03:05,785 - INFO - taking picture MAIN: 2026-06-08 12:03:05,785 - INFO - we take 333 photos in this while loop MAIN: 2026-06-08 12:03:05,785 - INFO - /home/pi/Desktop/images/08062026/12/02/image_08062026_12_03_05_59823.jpg MAIN: 2026-06-08 12:03:05,785 - INFO - duration: 0.8898145989987825 MAIN: 2026-06-08 12:03:05,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:04:04,794 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:04:05,147 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:04:05,458 - INFO - taking picture MAIN: 2026-06-08 12:04:05,458 - INFO - we take 334 photos in this while loop MAIN: 2026-06-08 12:04:05,458 - INFO - /home/pi/Desktop/images/08062026/12/03/image_08062026_12_04_04_59632.jpg MAIN: 2026-06-08 12:04:05,459 - INFO - duration: 0.9302874999993946 MAIN: 2026-06-08 12:04:05,459 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:05:05,347 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:05:05,535 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:05:06,038 - INFO - taking picture MAIN: 2026-06-08 12:05:06,039 - INFO - we take 335 photos in this while loop MAIN: 2026-06-08 12:05:06,039 - INFO - /home/pi/Desktop/images/08062026/12/04/image_08062026_12_05_05_60592.jpg MAIN: 2026-06-08 12:05:06,039 - INFO - duration: 0.9183524769978249 MAIN: 2026-06-08 12:05:06,039 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:06:05,395 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:06:05,560 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:06:06,054 - INFO - taking picture MAIN: 2026-06-08 12:06:06,054 - INFO - we take 336 photos in this while loop MAIN: 2026-06-08 12:06:06,054 - INFO - /home/pi/Desktop/images/08062026/12/05/image_08062026_12_06_05_60003.jpg MAIN: 2026-06-08 12:06:06,054 - INFO - duration: 0.9304642579991196 MAIN: 2026-06-08 12:06:06,054 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:07:05,168 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:07:05,660 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:07:05,829 - INFO - taking picture MAIN: 2026-06-08 12:07:05,829 - INFO - we take 337 photos in this while loop MAIN: 2026-06-08 12:07:05,829 - INFO - /home/pi/Desktop/images/08062026/12/06/image_08062026_12_07_05_59791.jpg MAIN: 2026-06-08 12:07:05,829 - INFO - duration: 0.9140336039999966 MAIN: 2026-06-08 12:07:05,829 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:08:05,143 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:08:05,796 - INFO - taking picture MAIN: 2026-06-08 12:08:05,796 - INFO - we take 338 photos in this while loop MAIN: 2026-06-08 12:08:05,797 - INFO - /home/pi/Desktop/images/08062026/12/07/image_08062026_12_08_05_59985.jpg MAIN: 2026-06-08 12:08:05,797 - INFO - duration: 0.8959063320035057 MAIN: 2026-06-08 12:08:05,797 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/08' MAIN: 2026-06-08 12:08:05,829 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:09:04,738 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:09:05,514 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:09:06,166 - INFO - taking picture MAIN: 2026-06-08 12:09:06,166 - INFO - we take 339 photos in this while loop MAIN: 2026-06-08 12:09:06,166 - INFO - /home/pi/Desktop/images/08062026/12/08/image_08062026_12_09_05_60347.jpg MAIN: 2026-06-08 12:09:06,166 - INFO - duration: 0.9173814489986398 MAIN: 2026-06-08 12:09:06,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:10:05,441 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:10:05,528 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:10:06,161 - INFO - taking picture MAIN: 2026-06-08 12:10:06,161 - INFO - we take 340 photos in this while loop MAIN: 2026-06-08 12:10:06,161 - INFO - /home/pi/Desktop/images/08062026/12/09/image_08062026_12_10_05_59979.jpg MAIN: 2026-06-08 12:10:06,162 - INFO - duration: 0.933183638000628 MAIN: 2026-06-08 12:10:06,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:11:05,176 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:11:05,342 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:11:05,994 - INFO - taking picture MAIN: 2026-06-08 12:11:05,995 - INFO - we take 341 photos in this while loop MAIN: 2026-06-08 12:11:05,995 - INFO - /home/pi/Desktop/images/08062026/12/10/image_08062026_12_11_05_59825.jpg MAIN: 2026-06-08 12:11:05,995 - INFO - duration: 0.9414596620008524 MAIN: 2026-06-08 12:11:05,995 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:12:05,230 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:12:05,712 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:12:05,945 - INFO - taking picture MAIN: 2026-06-08 12:12:05,945 - INFO - we take 342 photos in this while loop MAIN: 2026-06-08 12:12:05,945 - INFO - /home/pi/Desktop/images/08062026/12/11/image_08062026_12_12_05_59890.jpg MAIN: 2026-06-08 12:12:05,945 - INFO - duration: 1.0011050889988837 MAIN: 2026-06-08 12:12:05,945 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:13:05,221 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:13:05,535 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:13:05,918 - INFO - taking picture MAIN: 2026-06-08 12:13:05,919 - INFO - we take 343 photos in this while loop MAIN: 2026-06-08 12:13:05,919 - INFO - /home/pi/Desktop/images/08062026/12/12/image_08062026_12_13_05_60008.jpg MAIN: 2026-06-08 12:13:05,919 - INFO - duration: 0.9664682859984168 MAIN: 2026-06-08 12:13:05,919 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:14:04,976 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:14:05,236 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:14:05,898 - INFO - taking picture MAIN: 2026-06-08 12:14:05,899 - INFO - we take 344 photos in this while loop MAIN: 2026-06-08 12:14:05,899 - INFO - /home/pi/Desktop/images/08062026/12/13/image_08062026_12_14_05_60013.jpg MAIN: 2026-06-08 12:14:05,899 - INFO - duration: 0.9329029199980141 MAIN: 2026-06-08 12:14:05,899 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:15:05,071 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:15:05,080 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:15:05,762 - INFO - taking picture MAIN: 2026-06-08 12:15:05,762 - INFO - we take 345 photos in this while loop MAIN: 2026-06-08 12:15:05,762 - INFO - /home/pi/Desktop/images/08062026/12/14/image_08062026_12_15_05_59890.jpg MAIN: 2026-06-08 12:15:05,762 - INFO - duration: 0.9053359499994258 MAIN: 2026-06-08 12:15:05,762 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:16:04,822 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:16:05,347 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:16:05,531 - INFO - taking picture MAIN: 2026-06-08 12:16:05,531 - INFO - we take 346 photos in this while loop MAIN: 2026-06-08 12:16:05,531 - INFO - /home/pi/Desktop/images/08062026/12/15/image_08062026_12_16_04_59699.jpg MAIN: 2026-06-08 12:16:05,531 - INFO - duration: 0.9750298190010653 MAIN: 2026-06-08 12:16:05,532 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:17:04,714 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:17:05,366 - INFO - taking picture MAIN: 2026-06-08 12:17:05,366 - INFO - we take 347 photos in this while loop MAIN: 2026-06-08 12:17:05,366 - INFO - /home/pi/Desktop/images/08062026/12/16/image_08062026_12_17_04_59907.jpg MAIN: 2026-06-08 12:17:05,366 - INFO - duration: 0.9025818459995207 MAIN: 2026-06-08 12:17:05,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/17' MAIN: 2026-06-08 12:17:05,602 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:18:04,508 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:18:05,196 - INFO - taking picture MAIN: 2026-06-08 12:18:05,196 - INFO - we take 348 photos in this while loop MAIN: 2026-06-08 12:18:05,196 - INFO - /home/pi/Desktop/images/08062026/12/17/image_08062026_12_18_04_59817.jpg MAIN: 2026-06-08 12:18:05,196 - INFO - duration: 0.9153676530004304 MAIN: 2026-06-08 12:18:05,196 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/18' MAIN: 2026-06-08 12:18:05,862 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:19:04,709 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:19:05,534 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:19:06,192 - INFO - taking picture MAIN: 2026-06-08 12:19:06,192 - INFO - we take 349 photos in this while loop MAIN: 2026-06-08 12:19:06,192 - INFO - /home/pi/Desktop/images/08062026/12/18/image_08062026_12_19_05_60966.jpg MAIN: 2026-06-08 12:19:06,192 - INFO - duration: 0.9449156449991278 MAIN: 2026-06-08 12:19:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:20:04,618 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:20:05,239 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:20:05,311 - INFO - taking picture MAIN: 2026-06-08 12:20:05,312 - INFO - we take 350 photos in this while loop MAIN: 2026-06-08 12:20:05,312 - INFO - /home/pi/Desktop/images/08062026/12/19/image_08062026_12_20_04_59128.jpg MAIN: 2026-06-08 12:20:05,312 - INFO - duration: 0.9367086199999903 MAIN: 2026-06-08 12:20:05,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:21:04,467 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:21:05,017 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:21:05,134 - INFO - taking picture MAIN: 2026-06-08 12:21:05,134 - INFO - we take 351 photos in this while loop MAIN: 2026-06-08 12:21:05,134 - INFO - /home/pi/Desktop/images/08062026/12/20/image_08062026_12_21_04_59830.jpg MAIN: 2026-06-08 12:21:05,134 - INFO - duration: 0.9284348000001046 MAIN: 2026-06-08 12:21:05,135 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:22:05,409 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:22:05,567 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:22:06,274 - INFO - taking picture MAIN: 2026-06-08 12:22:06,274 - INFO - we take 352 photos in this while loop MAIN: 2026-06-08 12:22:06,274 - INFO - /home/pi/Desktop/images/08062026/12/21/image_08062026_12_22_05_61069.jpg MAIN: 2026-06-08 12:22:06,274 - INFO - duration: 0.998650074001489 MAIN: 2026-06-08 12:22:06,275 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:23:05,202 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:23:05,365 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:23:06,019 - INFO - taking picture MAIN: 2026-06-08 12:23:06,019 - INFO - we take 353 photos in this while loop MAIN: 2026-06-08 12:23:06,019 - INFO - /home/pi/Desktop/images/08062026/12/22/image_08062026_12_23_05_59834.jpg MAIN: 2026-06-08 12:23:06,019 - INFO - duration: 0.9097310260003724 MAIN: 2026-06-08 12:23:06,020 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:24:05,177 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:24:05,832 - INFO - taking picture MAIN: 2026-06-08 12:24:05,832 - INFO - we take 354 photos in this while loop MAIN: 2026-06-08 12:24:05,832 - INFO - /home/pi/Desktop/images/08062026/12/23/image_08062026_12_24_05_59828.jpg MAIN: 2026-06-08 12:24:05,833 - INFO - duration: 0.8947593299999426 MAIN: 2026-06-08 12:24:05,833 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/24' MAIN: 2026-06-08 12:24:05,958 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:25:05,185 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:25:05,918 - INFO - taking picture MAIN: 2026-06-08 12:25:05,918 - INFO - we take 355 photos in this while loop MAIN: 2026-06-08 12:25:05,918 - INFO - /home/pi/Desktop/images/08062026/12/24/image_08062026_12_25_05_59994.jpg MAIN: 2026-06-08 12:25:05,918 - INFO - duration: 0.9855426309986797 MAIN: 2026-06-08 12:25:05,919 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/25' MAIN: 2026-06-08 12:25:05,943 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:26:05,143 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:26:05,313 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:26:06,002 - INFO - taking picture MAIN: 2026-06-08 12:26:06,002 - INFO - we take 356 photos in this while loop MAIN: 2026-06-08 12:26:06,002 - INFO - /home/pi/Desktop/images/08062026/12/25/image_08062026_12_26_05_60141.jpg MAIN: 2026-06-08 12:26:06,002 - INFO - duration: 0.9279117959995347 MAIN: 2026-06-08 12:26:06,002 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:27:05,134 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:27:05,352 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:27:06,004 - INFO - taking picture MAIN: 2026-06-08 12:27:06,004 - INFO - we take 357 photos in this while loop MAIN: 2026-06-08 12:27:06,004 - INFO - /home/pi/Desktop/images/08062026/12/26/image_08062026_12_27_05_60025.jpg MAIN: 2026-06-08 12:27:06,004 - INFO - duration: 0.9048690170020564 MAIN: 2026-06-08 12:27:06,005 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:28:05,025 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:28:05,240 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:28:05,688 - INFO - taking picture MAIN: 2026-06-08 12:28:05,688 - INFO - we take 358 photos in this while loop MAIN: 2026-06-08 12:28:05,688 - INFO - /home/pi/Desktop/images/08062026/12/27/image_08062026_12_28_05_59663.jpg MAIN: 2026-06-08 12:28:05,689 - INFO - duration: 0.9256455329996243 MAIN: 2026-06-08 12:28:05,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:29:04,980 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:29:04,984 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:29:05,698 - INFO - taking picture MAIN: 2026-06-08 12:29:05,699 - INFO - we take 359 photos in this while loop MAIN: 2026-06-08 12:29:05,699 - INFO - /home/pi/Desktop/images/08062026/12/28/image_08062026_12_29_04_59931.jpg MAIN: 2026-06-08 12:29:05,699 - INFO - duration: 1.0041636219975771 MAIN: 2026-06-08 12:29:05,699 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:30:05,193 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:30:05,848 - INFO - taking picture MAIN: 2026-06-08 12:30:05,849 - INFO - we take 360 photos in this while loop MAIN: 2026-06-08 12:30:05,849 - INFO - /home/pi/Desktop/images/08062026/12/29/image_08062026_12_30_05_60285.jpg MAIN: 2026-06-08 12:30:05,849 - INFO - duration: 0.8686009200027911 MAIN: 2026-06-08 12:30:05,849 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/30' MAIN: 2026-06-08 12:30:05,929 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:31:04,483 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:31:05,043 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:31:05,735 - INFO - taking picture MAIN: 2026-06-08 12:31:05,735 - INFO - we take 361 photos in this while loop MAIN: 2026-06-08 12:31:05,735 - INFO - /home/pi/Desktop/images/08062026/12/30/image_08062026_12_31_05_59851.jpg MAIN: 2026-06-08 12:31:05,735 - INFO - duration: 0.9034519880005973 MAIN: 2026-06-08 12:31:05,736 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:32:04,906 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:32:05,039 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:32:05,563 - INFO - taking picture MAIN: 2026-06-08 12:32:05,563 - INFO - we take 362 photos in this while loop MAIN: 2026-06-08 12:32:05,563 - INFO - /home/pi/Desktop/images/08062026/12/31/image_08062026_12_32_04_59803.jpg MAIN: 2026-06-08 12:32:05,563 - INFO - duration: 0.9283387110008334 MAIN: 2026-06-08 12:32:05,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:33:04,692 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:33:05,076 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:33:05,369 - INFO - taking picture MAIN: 2026-06-08 12:33:05,370 - INFO - we take 363 photos in this while loop MAIN: 2026-06-08 12:33:05,370 - INFO - /home/pi/Desktop/images/08062026/12/32/image_08062026_12_33_04_59799.jpg MAIN: 2026-06-08 12:33:05,370 - INFO - duration: 0.9352808730000106 MAIN: 2026-06-08 12:33:05,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:34:04,914 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:34:05,567 - INFO - taking picture MAIN: 2026-06-08 12:34:05,567 - INFO - we take 364 photos in this while loop MAIN: 2026-06-08 12:34:05,568 - INFO - /home/pi/Desktop/images/08062026/12/33/image_08062026_12_34_04_60243.jpg MAIN: 2026-06-08 12:34:05,568 - INFO - duration: 0.8898725450017082 MAIN: 2026-06-08 12:34:05,568 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/34' MAIN: 2026-06-08 12:34:05,669 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:35:04,886 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:35:05,562 - INFO - taking picture MAIN: 2026-06-08 12:35:05,563 - INFO - we take 365 photos in this while loop MAIN: 2026-06-08 12:35:05,563 - INFO - /home/pi/Desktop/images/08062026/12/34/image_08062026_12_35_04_59962.jpg MAIN: 2026-06-08 12:35:05,563 - INFO - duration: 0.922149547997833 MAIN: 2026-06-08 12:35:05,563 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/35' MAIN: 2026-06-08 12:35:05,832 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:36:04,888 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:36:05,541 - INFO - taking picture MAIN: 2026-06-08 12:36:05,542 - INFO - we take 366 photos in this while loop MAIN: 2026-06-08 12:36:05,542 - INFO - /home/pi/Desktop/images/08062026/12/35/image_08062026_12_36_04_60000.jpg MAIN: 2026-06-08 12:36:05,542 - INFO - duration: 0.9005671929990058 MAIN: 2026-06-08 12:36:05,542 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/36' MAIN: 2026-06-08 12:36:05,891 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:37:04,585 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:37:04,820 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:37:05,249 - INFO - taking picture MAIN: 2026-06-08 12:37:05,249 - INFO - we take 367 photos in this while loop MAIN: 2026-06-08 12:37:05,250 - INFO - /home/pi/Desktop/images/08062026/12/36/image_08062026_12_37_04_59692.jpg MAIN: 2026-06-08 12:37:05,250 - INFO - duration: 0.9161547709991282 MAIN: 2026-06-08 12:37:05,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:38:04,446 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:38:05,097 - INFO - taking picture MAIN: 2026-06-08 12:38:05,098 - INFO - we take 368 photos in this while loop MAIN: 2026-06-08 12:38:05,098 - INFO - /home/pi/Desktop/images/08062026/12/37/image_08062026_12_38_04_59855.jpg MAIN: 2026-06-08 12:38:05,098 - INFO - duration: 0.9086030719990958 MAIN: 2026-06-08 12:38:05,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/38' MAIN: 2026-06-08 12:38:05,103 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:39:04,923 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:39:05,400 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:39:06,052 - INFO - taking picture MAIN: 2026-06-08 12:39:06,053 - INFO - we take 369 photos in this while loop MAIN: 2026-06-08 12:39:06,053 - INFO - /home/pi/Desktop/images/08062026/12/38/image_08062026_12_39_05_60980.jpg MAIN: 2026-06-08 12:39:06,053 - INFO - duration: 0.882828335998056 MAIN: 2026-06-08 12:39:06,053 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:40:05,291 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:40:05,886 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:40:06,034 - INFO - taking picture MAIN: 2026-06-08 12:40:06,035 - INFO - we take 370 photos in this while loop MAIN: 2026-06-08 12:40:06,035 - INFO - /home/pi/Desktop/images/08062026/12/39/image_08062026_12_40_05_59859.jpg MAIN: 2026-06-08 12:40:06,035 - INFO - duration: 1.005876167997485 MAIN: 2026-06-08 12:40:06,035 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:41:05,179 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:41:05,575 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:41:05,887 - INFO - taking picture MAIN: 2026-06-08 12:41:05,887 - INFO - we take 371 photos in this while loop MAIN: 2026-06-08 12:41:05,887 - INFO - /home/pi/Desktop/images/08062026/12/40/image_08062026_12_41_05_59878.jpg MAIN: 2026-06-08 12:41:05,887 - INFO - duration: 0.9793913150024309 MAIN: 2026-06-08 12:41:05,887 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:42:05,170 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:42:05,823 - INFO - taking picture MAIN: 2026-06-08 12:42:05,823 - INFO - we take 372 photos in this while loop MAIN: 2026-06-08 12:42:05,823 - INFO - /home/pi/Desktop/images/08062026/12/41/image_08062026_12_42_05_60001.jpg MAIN: 2026-06-08 12:42:05,823 - INFO - duration: 0.9139934739978344 MAIN: 2026-06-08 12:42:05,824 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/42' MAIN: 2026-06-08 12:42:05,977 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:43:04,763 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:43:05,090 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:43:05,740 - INFO - taking picture MAIN: 2026-06-08 12:43:05,740 - INFO - we take 373 photos in this while loop MAIN: 2026-06-08 12:43:05,740 - INFO - /home/pi/Desktop/images/08062026/12/42/image_08062026_12_43_05_59956.jpg MAIN: 2026-06-08 12:43:05,740 - INFO - duration: 0.8740664029974141 MAIN: 2026-06-08 12:43:05,740 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:44:04,879 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:44:05,034 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:44:05,594 - INFO - taking picture MAIN: 2026-06-08 12:44:05,594 - INFO - we take 374 photos in this while loop MAIN: 2026-06-08 12:44:05,594 - INFO - /home/pi/Desktop/images/08062026/12/43/image_08062026_12_44_04_59731.jpg MAIN: 2026-06-08 12:44:05,594 - INFO - duration: 0.9964782040005957 MAIN: 2026-06-08 12:44:05,595 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:45:04,988 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:45:05,347 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:45:05,698 - INFO - taking picture MAIN: 2026-06-08 12:45:05,698 - INFO - we take 375 photos in this while loop MAIN: 2026-06-08 12:45:05,698 - INFO - /home/pi/Desktop/images/08062026/12/44/image_08062026_12_45_04_60143.jpg MAIN: 2026-06-08 12:45:05,699 - INFO - duration: 0.957114721997641 MAIN: 2026-06-08 12:45:05,699 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:46:04,902 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:46:05,430 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:46:05,565 - INFO - taking picture MAIN: 2026-06-08 12:46:05,566 - INFO - we take 376 photos in this while loop MAIN: 2026-06-08 12:46:05,567 - INFO - /home/pi/Desktop/images/08062026/12/45/image_08062026_12_46_04_59895.jpg MAIN: 2026-06-08 12:46:05,567 - INFO - duration: 0.9297781710010895 MAIN: 2026-06-08 12:46:05,567 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:47:04,861 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:47:05,450 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:47:05,520 - INFO - taking picture MAIN: 2026-06-08 12:47:05,521 - INFO - we take 377 photos in this while loop MAIN: 2026-06-08 12:47:05,521 - INFO - /home/pi/Desktop/images/08062026/12/46/image_08062026_12_47_04_59961.jpg MAIN: 2026-06-08 12:47:05,521 - INFO - duration: 0.9224188240004878 MAIN: 2026-06-08 12:47:05,522 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:48:04,677 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:48:04,753 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:48:05,353 - INFO - taking picture MAIN: 2026-06-08 12:48:05,353 - INFO - we take 378 photos in this while loop MAIN: 2026-06-08 12:48:05,353 - INFO - /home/pi/Desktop/images/08062026/12/47/image_08062026_12_48_04_59802.jpg MAIN: 2026-06-08 12:48:05,353 - INFO - duration: 0.9518042909985525 MAIN: 2026-06-08 12:48:05,354 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:49:04,449 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:49:04,865 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:49:05,113 - INFO - taking picture MAIN: 2026-06-08 12:49:05,113 - INFO - we take 379 photos in this while loop MAIN: 2026-06-08 12:49:05,113 - INFO - /home/pi/Desktop/images/08062026/12/48/image_08062026_12_49_04_59781.jpg MAIN: 2026-06-08 12:49:05,113 - INFO - duration: 0.930533448998176 MAIN: 2026-06-08 12:49:05,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:50:04,449 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:50:05,142 - INFO - taking picture MAIN: 2026-06-08 12:50:05,143 - INFO - we take 380 photos in this while loop MAIN: 2026-06-08 12:50:05,143 - INFO - /home/pi/Desktop/images/08062026/12/49/image_08062026_12_50_04_60037.jpg MAIN: 2026-06-08 12:50:05,143 - INFO - duration: 0.9226839809998637 MAIN: 2026-06-08 12:50:05,143 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/50' MAIN: 2026-06-08 12:50:05,240 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:51:04,619 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:51:05,319 - INFO - taking picture MAIN: 2026-06-08 12:51:05,319 - INFO - we take 381 photos in this while loop MAIN: 2026-06-08 12:51:05,319 - INFO - /home/pi/Desktop/images/08062026/12/50/image_08062026_12_51_04_60122.jpg MAIN: 2026-06-08 12:51:05,319 - INFO - duration: 0.9765193570019619 MAIN: 2026-06-08 12:51:05,319 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/51' MAIN: 2026-06-08 12:51:05,333 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:52:04,434 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:52:05,127 - INFO - taking picture MAIN: 2026-06-08 12:52:05,127 - INFO - we take 382 photos in this while loop MAIN: 2026-06-08 12:52:05,127 - INFO - /home/pi/Desktop/images/08062026/12/51/image_08062026_12_52_04_59862.jpg MAIN: 2026-06-08 12:52:05,127 - INFO - duration: 0.921978014997876 MAIN: 2026-06-08 12:52:05,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/52' MAIN: 2026-06-08 12:52:05,652 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:53:04,591 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:53:05,523 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:53:06,174 - INFO - taking picture MAIN: 2026-06-08 12:53:06,175 - INFO - we take 383 photos in this while loop MAIN: 2026-06-08 12:53:06,175 - INFO - /home/pi/Desktop/images/08062026/12/52/image_08062026_12_53_05_61046.jpg MAIN: 2026-06-08 12:53:06,175 - INFO - duration: 0.9228593139996519 MAIN: 2026-06-08 12:53:06,175 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:54:04,434 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:54:04,851 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:54:05,118 - INFO - taking picture MAIN: 2026-06-08 12:54:05,119 - INFO - we take 384 photos in this while loop MAIN: 2026-06-08 12:54:05,119 - INFO - /home/pi/Desktop/images/08062026/12/53/image_08062026_12_54_04_58930.jpg MAIN: 2026-06-08 12:54:05,119 - INFO - duration: 0.936219572002301 MAIN: 2026-06-08 12:54:05,119 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:55:04,582 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:55:05,107 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:55:05,260 - INFO - taking picture MAIN: 2026-06-08 12:55:05,261 - INFO - we take 385 photos in this while loop MAIN: 2026-06-08 12:55:05,261 - INFO - /home/pi/Desktop/images/08062026/12/54/image_08062026_12_55_04_60177.jpg MAIN: 2026-06-08 12:55:05,261 - INFO - duration: 0.9007578150012705 MAIN: 2026-06-08 12:55:05,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:56:04,715 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:56:05,183 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:56:05,401 - INFO - taking picture MAIN: 2026-06-08 12:56:05,401 - INFO - we take 386 photos in this while loop MAIN: 2026-06-08 12:56:05,402 - INFO - /home/pi/Desktop/images/08062026/12/55/image_08062026_12_56_04_60092.jpg MAIN: 2026-06-08 12:56:05,402 - INFO - duration: 0.9494904209968809 MAIN: 2026-06-08 12:56:05,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:57:04,645 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:57:05,319 - INFO - taking picture MAIN: 2026-06-08 12:57:05,320 - INFO - we take 387 photos in this while loop MAIN: 2026-06-08 12:57:05,320 - INFO - /home/pi/Desktop/images/08062026/12/56/image_08062026_12_57_04_59923.jpg MAIN: 2026-06-08 12:57:05,320 - INFO - duration: 0.9438108569993346 MAIN: 2026-06-08 12:57:05,320 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/57' MAIN: 2026-06-08 12:57:05,426 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:58:04,804 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:58:05,480 - INFO - taking picture MAIN: 2026-06-08 12:58:05,480 - INFO - we take 388 photos in this while loop MAIN: 2026-06-08 12:58:05,480 - INFO - /home/pi/Desktop/images/08062026/12/57/image_08062026_12_58_04_60163.jpg MAIN: 2026-06-08 12:58:05,481 - INFO - duration: 0.9407987430022331 MAIN: 2026-06-08 12:58:05,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/58' MAIN: 2026-06-08 12:58:05,488 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 12:59:04,888 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 12:59:05,470 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 12:59:05,589 - INFO - taking picture MAIN: 2026-06-08 12:59:05,589 - INFO - we take 389 photos in this while loop MAIN: 2026-06-08 12:59:05,589 - INFO - /home/pi/Desktop/images/08062026/12/58/image_08062026_12_59_04_60091.jpg MAIN: 2026-06-08 12:59:05,589 - INFO - duration: 0.9580994179996196 MAIN: 2026-06-08 12:59:05,590 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/12/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:00:05,176 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:00:05,890 - INFO - taking picture MAIN: 2026-06-08 13:00:05,891 - INFO - we take 390 photos in this while loop MAIN: 2026-06-08 13:00:05,891 - INFO - /home/pi/Desktop/images/08062026/12/59/image_08062026_13_00_05_60293.jpg MAIN: 2026-06-08 13:00:05,891 - INFO - duration: 0.9662191679999523 MAIN: 2026-06-08 13:00:05,891 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/00' MAIN: 2026-06-08 13:00:06,105 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:01:04,858 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:01:05,128 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:01:05,790 - INFO - taking picture MAIN: 2026-06-08 13:01:05,791 - INFO - we take 391 photos in this while loop MAIN: 2026-06-08 13:01:05,791 - INFO - /home/pi/Desktop/images/08062026/13/00/image_08062026_13_01_05_59939.jpg MAIN: 2026-06-08 13:01:05,791 - INFO - duration: 0.926980664000439 MAIN: 2026-06-08 13:01:05,791 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:02:05,022 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:02:05,548 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:02:05,756 - INFO - taking picture MAIN: 2026-06-08 13:02:05,756 - INFO - we take 392 photos in this while loop MAIN: 2026-06-08 13:02:05,757 - INFO - /home/pi/Desktop/images/08062026/13/01/image_08062026_13_02_05_59847.jpg MAIN: 2026-06-08 13:02:05,757 - INFO - duration: 1.0454305860002933 MAIN: 2026-06-08 13:02:05,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:03:04,742 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:03:05,264 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:03:05,414 - INFO - taking picture MAIN: 2026-06-08 13:03:05,414 - INFO - we take 393 photos in this while loop MAIN: 2026-06-08 13:03:05,415 - INFO - /home/pi/Desktop/images/08062026/13/02/image_08062026_13_03_04_59763.jpg MAIN: 2026-06-08 13:03:05,415 - INFO - duration: 0.9402693260017259 MAIN: 2026-06-08 13:03:05,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:04:04,823 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:04:05,556 - INFO - taking picture MAIN: 2026-06-08 13:04:05,557 - INFO - we take 394 photos in this while loop MAIN: 2026-06-08 13:04:05,557 - INFO - /home/pi/Desktop/images/08062026/13/03/image_08062026_13_04_04_60072.jpg MAIN: 2026-06-08 13:04:05,557 - INFO - duration: 1.0099102460007998 MAIN: 2026-06-08 13:04:05,557 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/04' MAIN: 2026-06-08 13:04:05,650 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:05:04,761 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:05:05,026 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:05:05,477 - INFO - taking picture MAIN: 2026-06-08 13:05:05,478 - INFO - we take 395 photos in this while loop MAIN: 2026-06-08 13:05:05,478 - INFO - /home/pi/Desktop/images/08062026/13/04/image_08062026_13_05_04_59991.jpg MAIN: 2026-06-08 13:05:05,478 - INFO - duration: 0.9390594469987263 MAIN: 2026-06-08 13:05:05,478 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:06:04,928 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:06:05,186 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:06:05,606 - INFO - taking picture MAIN: 2026-06-08 13:06:05,607 - INFO - we take 396 photos in this while loop MAIN: 2026-06-08 13:06:05,607 - INFO - /home/pi/Desktop/images/08062026/13/05/image_08062026_13_06_04_60121.jpg MAIN: 2026-06-08 13:06:05,607 - INFO - duration: 0.9466460719995666 MAIN: 2026-06-08 13:06:05,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:07:04,970 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:07:04,989 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:07:05,653 - INFO - taking picture MAIN: 2026-06-08 13:07:05,654 - INFO - we take 397 photos in this while loop MAIN: 2026-06-08 13:07:05,654 - INFO - /home/pi/Desktop/images/08062026/13/06/image_08062026_13_07_04_60038.jpg MAIN: 2026-06-08 13:07:05,654 - INFO - duration: 0.9555586349997611 MAIN: 2026-06-08 13:07:05,654 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:08:05,050 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:08:05,354 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:08:05,726 - INFO - taking picture MAIN: 2026-06-08 13:08:05,726 - INFO - we take 398 photos in this while loop MAIN: 2026-06-08 13:08:05,726 - INFO - /home/pi/Desktop/images/08062026/13/07/image_08062026_13_08_05_60108.jpg MAIN: 2026-06-08 13:08:05,726 - INFO - duration: 0.9191459239991673 MAIN: 2026-06-08 13:08:05,726 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:09:05,168 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:09:05,456 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:09:05,845 - INFO - taking picture MAIN: 2026-06-08 13:09:05,845 - INFO - we take 399 photos in this while loop MAIN: 2026-06-08 13:09:05,846 - INFO - /home/pi/Desktop/images/08062026/13/08/image_08062026_13_09_05_60097.jpg MAIN: 2026-06-08 13:09:05,846 - INFO - duration: 0.9407794020007714 MAIN: 2026-06-08 13:09:05,846 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:10:05,590 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:10:06,281 - INFO - taking picture MAIN: 2026-06-08 13:10:06,281 - INFO - we take 400 photos in this while loop MAIN: 2026-06-08 13:10:06,282 - INFO - /home/pi/Desktop/images/08062026/13/09/image_08062026_13_10_05_60448.jpg MAIN: 2026-06-08 13:10:06,282 - INFO - duration: 0.9279909090000729 MAIN: 2026-06-08 13:10:06,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/10' MAIN: 2026-06-08 13:10:06,426 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:11:04,498 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:11:04,792 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:11:05,218 - INFO - taking picture MAIN: 2026-06-08 13:11:05,218 - INFO - we take 401 photos in this while loop MAIN: 2026-06-08 13:11:05,218 - INFO - /home/pi/Desktop/images/08062026/13/10/image_08062026_13_11_04_58877.jpg MAIN: 2026-06-08 13:11:05,219 - INFO - duration: 0.9876031740022881 MAIN: 2026-06-08 13:11:05,219 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:12:04,780 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:12:05,315 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:12:05,459 - INFO - taking picture MAIN: 2026-06-08 13:12:05,459 - INFO - we take 402 photos in this while loop MAIN: 2026-06-08 13:12:05,459 - INFO - /home/pi/Desktop/images/08062026/13/11/image_08062026_13_12_04_60276.jpg MAIN: 2026-06-08 13:12:05,459 - INFO - duration: 0.9524475090001943 MAIN: 2026-06-08 13:12:05,460 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:13:04,759 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:13:05,293 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:13:05,435 - INFO - taking picture MAIN: 2026-06-08 13:13:05,435 - INFO - we take 403 photos in this while loop MAIN: 2026-06-08 13:13:05,435 - INFO - /home/pi/Desktop/images/08062026/13/12/image_08062026_13_13_04_59992.jpg MAIN: 2026-06-08 13:13:05,435 - INFO - duration: 0.9355158489997848 MAIN: 2026-06-08 13:13:05,435 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/13' MAIN: 2026-06-08 13:14:04,605 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:14:05,291 - INFO - taking picture MAIN: 2026-06-08 13:14:05,292 - INFO - we take 404 photos in this while loop MAIN: 2026-06-08 13:14:05,292 - INFO - /home/pi/Desktop/images/08062026/13/13/image_08062026_13_14_04_59887.jpg MAIN: 2026-06-08 13:14:05,292 - INFO - duration: 0.9048160800011829 MAIN: 2026-06-08 13:14:05,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/14' MAIN: 2026-06-08 13:14:05,777 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:15:04,623 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:15:04,997 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:15:05,348 - INFO - taking picture MAIN: 2026-06-08 13:15:05,349 - INFO - we take 405 photos in this while loop MAIN: 2026-06-08 13:15:05,349 - INFO - /home/pi/Desktop/images/08062026/13/14/image_08062026_13_15_04_59967.jpg MAIN: 2026-06-08 13:15:05,349 - INFO - duration: 0.9948348809994059 MAIN: 2026-06-08 13:15:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:16:04,684 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:16:05,350 - INFO - taking picture MAIN: 2026-06-08 13:16:05,350 - INFO - we take 406 photos in this while loop MAIN: 2026-06-08 13:16:05,350 - INFO - /home/pi/Desktop/images/08062026/13/15/image_08062026_13_16_04_60042.jpg MAIN: 2026-06-08 13:16:05,351 - INFO - duration: 0.95352477599954 MAIN: 2026-06-08 13:16:05,351 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/16' MAIN: 2026-06-08 13:16:05,388 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:17:04,992 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:17:05,007 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:17:05,677 - INFO - taking picture MAIN: 2026-06-08 13:17:05,678 - INFO - we take 407 photos in this while loop MAIN: 2026-06-08 13:17:05,678 - INFO - /home/pi/Desktop/images/08062026/13/16/image_08062026_13_17_05_60359.jpg MAIN: 2026-06-08 13:17:05,678 - INFO - duration: 0.921525236000889 MAIN: 2026-06-08 13:17:05,678 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:18:05,213 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:18:05,348 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:18:05,929 - INFO - taking picture MAIN: 2026-06-08 13:18:05,929 - INFO - we take 408 photos in this while loop MAIN: 2026-06-08 13:18:05,929 - INFO - /home/pi/Desktop/images/08062026/13/17/image_08062026_13_18_05_60191.jpg MAIN: 2026-06-08 13:18:05,929 - INFO - duration: 0.9808837140008109 MAIN: 2026-06-08 13:18:05,929 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:19:05,412 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:19:05,465 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:19:06,138 - INFO - taking picture MAIN: 2026-06-08 13:19:06,138 - INFO - we take 409 photos in this while loop MAIN: 2026-06-08 13:19:06,138 - INFO - /home/pi/Desktop/images/08062026/13/18/image_08062026_13_19_05_60237.jpg MAIN: 2026-06-08 13:19:06,138 - INFO - duration: 0.952847100001236 MAIN: 2026-06-08 13:19:06,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:20:05,742 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:20:06,302 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:20:06,480 - INFO - taking picture MAIN: 2026-06-08 13:20:06,481 - INFO - we take 410 photos in this while loop MAIN: 2026-06-08 13:20:06,481 - INFO - /home/pi/Desktop/images/08062026/13/19/image_08062026_13_20_05_60288.jpg MAIN: 2026-06-08 13:20:06,481 - INFO - duration: 1.0070823089990881 MAIN: 2026-06-08 13:20:06,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/20' MAIN: 2026-06-08 13:21:04,543 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:21:05,244 - INFO - taking picture MAIN: 2026-06-08 13:21:05,244 - INFO - we take 411 photos in this while loop MAIN: 2026-06-08 13:21:05,244 - INFO - /home/pi/Desktop/images/08062026/13/20/image_08062026_13_21_04_58852.jpg MAIN: 2026-06-08 13:21:05,244 - INFO - duration: 0.9179288409977744 MAIN: 2026-06-08 13:21:05,245 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/21' MAIN: 2026-06-08 13:21:05,717 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:22:04,720 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:22:05,025 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:22:05,402 - INFO - taking picture MAIN: 2026-06-08 13:22:05,402 - INFO - we take 412 photos in this while loop MAIN: 2026-06-08 13:22:05,402 - INFO - /home/pi/Desktop/images/08062026/13/21/image_08062026_13_22_04_60119.jpg MAIN: 2026-06-08 13:22:05,402 - INFO - duration: 0.9557907700000214 MAIN: 2026-06-08 13:22:05,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:23:04,638 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:23:05,036 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:23:05,359 - INFO - taking picture MAIN: 2026-06-08 13:23:05,359 - INFO - we take 413 photos in this while loop MAIN: 2026-06-08 13:23:05,360 - INFO - /home/pi/Desktop/images/08062026/13/22/image_08062026_13_23_04_59935.jpg MAIN: 2026-06-08 13:23:05,360 - INFO - duration: 0.9780973919987446 MAIN: 2026-06-08 13:23:05,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:24:04,759 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:24:05,462 - INFO - taking picture MAIN: 2026-06-08 13:24:05,462 - INFO - we take 414 photos in this while loop MAIN: 2026-06-08 13:24:05,463 - INFO - /home/pi/Desktop/images/08062026/13/23/image_08062026_13_24_04_60134.jpg MAIN: 2026-06-08 13:24:05,463 - INFO - duration: 0.9468926779991307 MAIN: 2026-06-08 13:24:05,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/24' MAIN: 2026-06-08 13:24:05,548 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:25:04,904 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:25:05,558 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:25:05,601 - INFO - taking picture MAIN: 2026-06-08 13:25:05,602 - INFO - we take 415 photos in this while loop MAIN: 2026-06-08 13:25:05,602 - INFO - /home/pi/Desktop/images/08062026/13/24/image_08062026_13_25_04_60152.jpg MAIN: 2026-06-08 13:25:05,602 - INFO - duration: 0.9341648619993066 MAIN: 2026-06-08 13:25:05,603 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:26:05,149 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:26:05,743 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:26:05,821 - INFO - taking picture MAIN: 2026-06-08 13:26:05,821 - INFO - we take 416 photos in this while loop MAIN: 2026-06-08 13:26:05,821 - INFO - /home/pi/Desktop/images/08062026/13/25/image_08062026_13_26_05_60211.jpg MAIN: 2026-06-08 13:26:05,821 - INFO - duration: 0.941484759998275 MAIN: 2026-06-08 13:26:05,822 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:27:05,206 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:27:05,684 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:27:05,879 - INFO - taking picture MAIN: 2026-06-08 13:27:05,879 - INFO - we take 417 photos in this while loop MAIN: 2026-06-08 13:27:05,879 - INFO - /home/pi/Desktop/images/08062026/13/26/image_08062026_13_27_05_60072.jpg MAIN: 2026-06-08 13:27:05,879 - INFO - duration: 0.9266017470035877 MAIN: 2026-06-08 13:27:05,880 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:28:05,181 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:28:05,553 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:28:06,220 - INFO - taking picture MAIN: 2026-06-08 13:28:06,220 - INFO - we take 418 photos in this while loop MAIN: 2026-06-08 13:28:06,220 - INFO - /home/pi/Desktop/images/08062026/13/27/image_08062026_13_28_05_60369.jpg MAIN: 2026-06-08 13:28:06,220 - INFO - duration: 0.8977803509988007 MAIN: 2026-06-08 13:28:06,220 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:29:04,508 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:29:04,640 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:29:05,186 - INFO - taking picture MAIN: 2026-06-08 13:29:05,186 - INFO - we take 419 photos in this while loop MAIN: 2026-06-08 13:29:05,186 - INFO - /home/pi/Desktop/images/08062026/13/28/image_08062026_13_29_04_58935.jpg MAIN: 2026-06-08 13:29:05,187 - INFO - duration: 0.9287018610011728 MAIN: 2026-06-08 13:29:05,187 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:30:04,819 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:30:05,223 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:30:05,557 - INFO - taking picture MAIN: 2026-06-08 13:30:05,557 - INFO - we take 420 photos in this while loop MAIN: 2026-06-08 13:30:05,557 - INFO - /home/pi/Desktop/images/08062026/13/29/image_08062026_13_30_04_60317.jpg MAIN: 2026-06-08 13:30:05,558 - INFO - duration: 0.981930983998609 MAIN: 2026-06-08 13:30:05,558 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:31:04,962 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:31:05,074 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:31:05,636 - INFO - taking picture MAIN: 2026-06-08 13:31:05,636 - INFO - we take 421 photos in this while loop MAIN: 2026-06-08 13:31:05,636 - INFO - /home/pi/Desktop/images/08062026/13/30/image_08062026_13_31_04_60125.jpg MAIN: 2026-06-08 13:31:05,636 - INFO - duration: 0.9356937470001867 MAIN: 2026-06-08 13:31:05,637 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:32:05,098 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:32:05,506 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:32:05,788 - INFO - taking picture MAIN: 2026-06-08 13:32:05,788 - INFO - we take 422 photos in this while loop MAIN: 2026-06-08 13:32:05,788 - INFO - /home/pi/Desktop/images/08062026/13/31/image_08062026_13_32_05_60146.jpg MAIN: 2026-06-08 13:32:05,788 - INFO - duration: 0.940878112000064 MAIN: 2026-06-08 13:32:05,789 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:33:05,219 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:33:05,390 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:33:05,946 - INFO - taking picture MAIN: 2026-06-08 13:33:05,947 - INFO - we take 423 photos in this while loop MAIN: 2026-06-08 13:33:05,947 - INFO - /home/pi/Desktop/images/08062026/13/32/image_08062026_13_33_05_60112.jpg MAIN: 2026-06-08 13:33:05,947 - INFO - duration: 0.9868546940015221 MAIN: 2026-06-08 13:33:05,947 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:34:04,517 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:34:05,084 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:34:05,251 - INFO - taking picture MAIN: 2026-06-08 13:34:05,251 - INFO - we take 424 photos in this while loop MAIN: 2026-06-08 13:34:05,251 - INFO - /home/pi/Desktop/images/08062026/13/33/image_08062026_13_34_04_59282.jpg MAIN: 2026-06-08 13:34:05,251 - INFO - duration: 1.0086935559993435 MAIN: 2026-06-08 13:34:05,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:35:04,877 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:35:05,206 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:35:05,551 - INFO - taking picture MAIN: 2026-06-08 13:35:05,551 - INFO - we take 425 photos in this while loop MAIN: 2026-06-08 13:35:05,552 - INFO - /home/pi/Desktop/images/08062026/13/34/image_08062026_13_35_04_60405.jpg MAIN: 2026-06-08 13:35:05,552 - INFO - duration: 0.9037357100023655 MAIN: 2026-06-08 13:35:05,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:36:05,041 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:36:05,379 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:36:05,718 - INFO - taking picture MAIN: 2026-06-08 13:36:05,718 - INFO - we take 426 photos in this while loop MAIN: 2026-06-08 13:36:05,718 - INFO - /home/pi/Desktop/images/08062026/13/35/image_08062026_13_36_05_60112.jpg MAIN: 2026-06-08 13:36:05,718 - INFO - duration: 0.958383942997898 MAIN: 2026-06-08 13:36:05,719 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:37:05,039 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:37:05,142 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:37:05,711 - INFO - taking picture MAIN: 2026-06-08 13:37:05,711 - INFO - we take 427 photos in this while loop MAIN: 2026-06-08 13:37:05,711 - INFO - /home/pi/Desktop/images/08062026/13/36/image_08062026_13_37_05_60025.jpg MAIN: 2026-06-08 13:37:05,711 - INFO - duration: 0.9249928950011963 MAIN: 2026-06-08 13:37:05,711 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:38:05,101 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:38:05,641 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:38:05,836 - INFO - taking picture MAIN: 2026-06-08 13:38:05,837 - INFO - we take 428 photos in this while loop MAIN: 2026-06-08 13:38:05,837 - INFO - /home/pi/Desktop/images/08062026/13/37/image_08062026_13_38_05_60063.jpg MAIN: 2026-06-08 13:38:05,837 - INFO - duration: 0.9876394189996063 MAIN: 2026-06-08 13:38:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:39:05,195 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:39:05,612 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:39:05,869 - INFO - taking picture MAIN: 2026-06-08 13:39:05,870 - INFO - we take 429 photos in this while loop MAIN: 2026-06-08 13:39:05,870 - INFO - /home/pi/Desktop/images/08062026/13/38/image_08062026_13_39_05_60096.jpg MAIN: 2026-06-08 13:39:05,870 - INFO - duration: 0.9244812749966513 MAIN: 2026-06-08 13:39:05,870 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:40:05,286 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:40:05,986 - INFO - taking picture MAIN: 2026-06-08 13:40:05,986 - INFO - we take 430 photos in this while loop MAIN: 2026-06-08 13:40:05,986 - INFO - /home/pi/Desktop/images/08062026/13/39/image_08062026_13_40_05_60111.jpg MAIN: 2026-06-08 13:40:05,987 - INFO - duration: 0.9303787219978403 MAIN: 2026-06-08 13:40:05,987 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/40' MAIN: 2026-06-08 13:40:06,183 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:41:04,755 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:41:05,519 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:41:06,183 - INFO - taking picture MAIN: 2026-06-08 13:41:06,183 - INFO - we take 431 photos in this while loop MAIN: 2026-06-08 13:41:06,183 - INFO - /home/pi/Desktop/images/08062026/13/40/image_08062026_13_41_05_60190.jpg MAIN: 2026-06-08 13:41:06,183 - INFO - duration: 0.9364830920021632 MAIN: 2026-06-08 13:41:06,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:42:04,633 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:42:05,352 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:42:05,355 - INFO - taking picture MAIN: 2026-06-08 13:42:05,355 - INFO - we take 432 photos in this while loop MAIN: 2026-06-08 13:42:05,355 - INFO - /home/pi/Desktop/images/08062026/13/41/image_08062026_13_42_04_59083.jpg MAIN: 2026-06-08 13:42:05,356 - INFO - duration: 1.0254625489978935 MAIN: 2026-06-08 13:42:05,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:43:05,084 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:43:05,503 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:43:06,165 - INFO - taking picture MAIN: 2026-06-08 13:43:06,166 - INFO - we take 433 photos in this while loop MAIN: 2026-06-08 13:43:06,166 - INFO - /home/pi/Desktop/images/08062026/13/42/image_08062026_13_43_05_60943.jpg MAIN: 2026-06-08 13:43:06,166 - INFO - duration: 0.892194512001879 MAIN: 2026-06-08 13:43:06,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:44:04,485 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:44:05,184 - INFO - taking picture MAIN: 2026-06-08 13:44:05,184 - INFO - we take 434 photos in this while loop MAIN: 2026-06-08 13:44:05,184 - INFO - /home/pi/Desktop/images/08062026/13/43/image_08062026_13_44_04_58994.jpg MAIN: 2026-06-08 13:44:05,184 - INFO - duration: 0.9166280810022727 MAIN: 2026-06-08 13:44:05,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/44' MAIN: 2026-06-08 13:44:05,384 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:45:04,724 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:45:05,431 - INFO - taking picture MAIN: 2026-06-08 13:45:05,432 - INFO - we take 435 photos in this while loop MAIN: 2026-06-08 13:45:05,432 - INFO - /home/pi/Desktop/images/08062026/13/44/image_08062026_13_45_04_60208.jpg MAIN: 2026-06-08 13:45:05,432 - INFO - duration: 0.9558620410025469 MAIN: 2026-06-08 13:45:05,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/45' MAIN: 2026-06-08 13:45:06,065 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:46:04,888 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:46:04,933 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:46:05,620 - INFO - taking picture MAIN: 2026-06-08 13:46:05,620 - INFO - we take 436 photos in this while loop MAIN: 2026-06-08 13:46:05,620 - INFO - /home/pi/Desktop/images/08062026/13/45/image_08062026_13_46_04_60139.jpg MAIN: 2026-06-08 13:46:05,620 - INFO - duration: 1.0051402109966148 MAIN: 2026-06-08 13:46:05,620 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:47:05,073 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:47:05,196 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:47:05,861 - INFO - taking picture MAIN: 2026-06-08 13:47:05,861 - INFO - we take 437 photos in this while loop MAIN: 2026-06-08 13:47:05,861 - INFO - /home/pi/Desktop/images/08062026/13/46/image_08062026_13_47_05_60275.jpg MAIN: 2026-06-08 13:47:05,861 - INFO - duration: 0.9707158590026665 MAIN: 2026-06-08 13:47:05,861 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:48:05,171 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:48:05,494 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:48:05,850 - INFO - taking picture MAIN: 2026-06-08 13:48:05,850 - INFO - we take 438 photos in this while loop MAIN: 2026-06-08 13:48:05,850 - INFO - /home/pi/Desktop/images/08062026/13/47/image_08062026_13_48_05_60047.jpg MAIN: 2026-06-08 13:48:05,850 - INFO - duration: 0.9123638399978518 MAIN: 2026-06-08 13:48:05,851 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:49:05,256 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:49:05,468 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:49:05,930 - INFO - taking picture MAIN: 2026-06-08 13:49:05,931 - INFO - we take 439 photos in this while loop MAIN: 2026-06-08 13:49:05,931 - INFO - /home/pi/Desktop/images/08062026/13/48/image_08062026_13_49_05_60041.jpg MAIN: 2026-06-08 13:49:05,931 - INFO - duration: 0.9517895199969644 MAIN: 2026-06-08 13:49:05,931 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:50:05,229 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:50:05,931 - INFO - taking picture MAIN: 2026-06-08 13:50:05,932 - INFO - we take 440 photos in this while loop MAIN: 2026-06-08 13:50:05,932 - INFO - /home/pi/Desktop/images/08062026/13/49/image_08062026_13_50_05_60004.jpg MAIN: 2026-06-08 13:50:05,932 - INFO - duration: 0.9485616339952685 MAIN: 2026-06-08 13:50:05,932 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/50' MAIN: 2026-06-08 13:50:06,143 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:51:04,882 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:51:05,220 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:51:05,882 - INFO - taking picture MAIN: 2026-06-08 13:51:05,883 - INFO - we take 441 photos in this while loop MAIN: 2026-06-08 13:51:05,883 - INFO - /home/pi/Desktop/images/08062026/13/50/image_08062026_13_51_05_60017.jpg MAIN: 2026-06-08 13:51:05,883 - INFO - duration: 0.8826530969963642 MAIN: 2026-06-08 13:51:05,883 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:52:05,396 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:52:05,399 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:52:06,120 - INFO - taking picture MAIN: 2026-06-08 13:52:06,121 - INFO - we take 442 photos in this while loop MAIN: 2026-06-08 13:52:06,121 - INFO - /home/pi/Desktop/images/08062026/13/51/image_08062026_13_52_05_60122.jpg MAIN: 2026-06-08 13:52:06,121 - INFO - duration: 0.9978411560005043 MAIN: 2026-06-08 13:52:06,121 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:53:04,848 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:53:05,051 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:53:05,771 - INFO - taking picture MAIN: 2026-06-08 13:53:05,772 - INFO - we take 443 photos in this while loop MAIN: 2026-06-08 13:53:05,772 - INFO - /home/pi/Desktop/images/08062026/13/52/image_08062026_13_53_05_59634.jpg MAIN: 2026-06-08 13:53:05,772 - INFO - duration: 1.0142857489991002 MAIN: 2026-06-08 13:53:05,772 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:54:05,237 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:54:05,373 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:54:05,972 - INFO - taking picture MAIN: 2026-06-08 13:54:05,973 - INFO - we take 444 photos in this while loop MAIN: 2026-06-08 13:54:05,973 - INFO - /home/pi/Desktop/images/08062026/13/53/image_08062026_13_54_05_60177.jpg MAIN: 2026-06-08 13:54:05,973 - INFO - duration: 1.0372467199995299 MAIN: 2026-06-08 13:54:05,973 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:55:05,389 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:55:05,424 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:55:06,067 - INFO - taking picture MAIN: 2026-06-08 13:55:06,068 - INFO - we take 445 photos in this while loop MAIN: 2026-06-08 13:55:06,068 - INFO - /home/pi/Desktop/images/08062026/13/54/image_08062026_13_55_05_60220.jpg MAIN: 2026-06-08 13:55:06,068 - INFO - duration: 0.9120996940037003 MAIN: 2026-06-08 13:55:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:56:05,398 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:56:05,572 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:56:06,081 - INFO - taking picture MAIN: 2026-06-08 13:56:06,081 - INFO - we take 446 photos in this while loop MAIN: 2026-06-08 13:56:06,081 - INFO - /home/pi/Desktop/images/08062026/13/55/image_08062026_13_56_05_59959.jpg MAIN: 2026-06-08 13:56:06,081 - INFO - duration: 0.96604614899843 MAIN: 2026-06-08 13:56:06,082 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:57:04,964 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:57:05,584 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:57:06,296 - INFO - taking picture MAIN: 2026-06-08 13:57:06,296 - INFO - we take 447 photos in this while loop MAIN: 2026-06-08 13:57:06,297 - INFO - /home/pi/Desktop/images/08062026/13/56/image_08062026_13_57_05_60248.jpg MAIN: 2026-06-08 13:57:06,297 - INFO - duration: 0.9332924710033694 MAIN: 2026-06-08 13:57:06,297 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:58:04,563 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:58:05,072 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:58:05,283 - INFO - taking picture MAIN: 2026-06-08 13:58:05,283 - INFO - we take 448 photos in this while loop MAIN: 2026-06-08 13:58:05,283 - INFO - /home/pi/Desktop/images/08062026/13/57/image_08062026_13_58_04_58895.jpg MAIN: 2026-06-08 13:58:05,283 - INFO - duration: 1.023872368998127 MAIN: 2026-06-08 13:58:05,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 13:59:04,748 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 13:59:05,311 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 13:59:05,479 - INFO - taking picture MAIN: 2026-06-08 13:59:05,479 - INFO - we take 449 photos in this while loop MAIN: 2026-06-08 13:59:05,479 - INFO - /home/pi/Desktop/images/08062026/13/58/image_08062026_13_59_04_60174.jpg MAIN: 2026-06-08 13:59:05,479 - INFO - duration: 1.0450195539960987 MAIN: 2026-06-08 13:59:05,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/13/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:00:04,750 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:00:05,501 - INFO - taking picture MAIN: 2026-06-08 14:00:05,501 - INFO - we take 450 photos in this while loop MAIN: 2026-06-08 14:00:05,501 - INFO - /home/pi/Desktop/images/08062026/13/59/image_08062026_14_00_04_60055.jpg MAIN: 2026-06-08 14:00:05,502 - INFO - duration: 1.0115574240044225 MAIN: 2026-06-08 14:00:05,502 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/00' MAIN: 2026-06-08 14:00:05,710 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:01:04,859 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:01:05,493 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:01:05,524 - INFO - taking picture MAIN: 2026-06-08 14:01:05,525 - INFO - we take 451 photos in this while loop MAIN: 2026-06-08 14:01:05,525 - INFO - /home/pi/Desktop/images/08062026/14/00/image_08062026_14_01_04_60110.jpg MAIN: 2026-06-08 14:01:05,525 - INFO - duration: 0.9247778630015091 MAIN: 2026-06-08 14:01:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:02:04,832 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:02:05,512 - INFO - taking picture MAIN: 2026-06-08 14:02:05,512 - INFO - we take 452 photos in this while loop MAIN: 2026-06-08 14:02:05,512 - INFO - /home/pi/Desktop/images/08062026/14/01/image_08062026_14_02_04_59966.jpg MAIN: 2026-06-08 14:02:05,512 - INFO - duration: 0.9454801969986875 MAIN: 2026-06-08 14:02:05,513 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/02' MAIN: 2026-06-08 14:02:05,738 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:03:04,868 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:03:05,447 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:03:05,553 - INFO - taking picture MAIN: 2026-06-08 14:03:05,553 - INFO - we take 453 photos in this while loop MAIN: 2026-06-08 14:03:05,553 - INFO - /home/pi/Desktop/images/08062026/14/02/image_08062026_14_03_04_60048.jpg MAIN: 2026-06-08 14:03:05,554 - INFO - duration: 0.938184556995111 MAIN: 2026-06-08 14:03:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/03' MAIN: 2026-06-08 14:04:04,626 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:04:05,348 - INFO - taking picture MAIN: 2026-06-08 14:04:05,349 - INFO - we take 454 photos in this while loop MAIN: 2026-06-08 14:04:05,349 - INFO - /home/pi/Desktop/images/08062026/14/03/image_08062026_14_04_04_59762.jpg MAIN: 2026-06-08 14:04:05,349 - INFO - duration: 0.9707260619979934 MAIN: 2026-06-08 14:04:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/04' MAIN: 2026-06-08 14:04:05,897 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:05:04,839 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:05:05,032 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:05:05,509 - INFO - taking picture MAIN: 2026-06-08 14:05:05,509 - INFO - we take 455 photos in this while loop MAIN: 2026-06-08 14:05:05,509 - INFO - /home/pi/Desktop/images/08062026/14/04/image_08062026_14_05_04_60242.jpg MAIN: 2026-06-08 14:05:05,509 - INFO - duration: 0.8881992340029683 MAIN: 2026-06-08 14:05:05,509 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:06:05,357 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:06:05,539 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:06:06,204 - INFO - taking picture MAIN: 2026-06-08 14:06:06,205 - INFO - we take 456 photos in this while loop MAIN: 2026-06-08 14:06:06,205 - INFO - /home/pi/Desktop/images/08062026/14/05/image_08062026_14_06_05_60636.jpg MAIN: 2026-06-08 14:06:06,205 - INFO - duration: 0.9471011439964059 MAIN: 2026-06-08 14:06:06,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:07:04,682 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:07:04,898 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:07:05,355 - INFO - taking picture MAIN: 2026-06-08 14:07:05,355 - INFO - we take 457 photos in this while loop MAIN: 2026-06-08 14:07:05,355 - INFO - /home/pi/Desktop/images/08062026/14/06/image_08062026_14_07_04_59161.jpg MAIN: 2026-06-08 14:07:05,355 - INFO - duration: 0.9365324649988906 MAIN: 2026-06-08 14:07:05,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/07' MAIN: 2026-06-08 14:08:04,399 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:08:05,062 - INFO - taking picture MAIN: 2026-06-08 14:08:05,063 - INFO - we take 458 photos in this while loop MAIN: 2026-06-08 14:08:05,063 - INFO - /home/pi/Desktop/images/08062026/14/07/image_08062026_14_08_04_59762.jpg MAIN: 2026-06-08 14:08:05,063 - INFO - duration: 0.8816522390043247 MAIN: 2026-06-08 14:08:05,063 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/08' MAIN: 2026-06-08 14:08:05,407 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:09:04,974 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:09:05,194 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:09:05,855 - INFO - taking picture MAIN: 2026-06-08 14:09:05,856 - INFO - we take 459 photos in this while loop MAIN: 2026-06-08 14:09:05,856 - INFO - /home/pi/Desktop/images/08062026/14/08/image_08062026_14_09_05_60744.jpg MAIN: 2026-06-08 14:09:05,856 - INFO - duration: 0.9303011810043245 MAIN: 2026-06-08 14:09:05,856 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:10:05,013 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:10:05,634 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:10:05,697 - INFO - taking picture MAIN: 2026-06-08 14:10:05,698 - INFO - we take 460 photos in this while loop MAIN: 2026-06-08 14:10:05,698 - INFO - /home/pi/Desktop/images/08062026/14/09/image_08062026_14_10_05_59855.jpg MAIN: 2026-06-08 14:10:05,698 - INFO - duration: 0.9171667549962876 MAIN: 2026-06-08 14:10:05,699 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:11:04,851 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:11:05,553 - INFO - taking picture MAIN: 2026-06-08 14:11:05,553 - INFO - we take 461 photos in this while loop MAIN: 2026-06-08 14:11:05,553 - INFO - /home/pi/Desktop/images/08062026/14/10/image_08062026_14_11_04_59853.jpg MAIN: 2026-06-08 14:11:05,553 - INFO - duration: 0.9190362160006771 MAIN: 2026-06-08 14:11:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/11' MAIN: 2026-06-08 14:11:05,653 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:12:04,643 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:12:05,078 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:12:05,317 - INFO - taking picture MAIN: 2026-06-08 14:12:05,317 - INFO - we take 462 photos in this while loop MAIN: 2026-06-08 14:12:05,317 - INFO - /home/pi/Desktop/images/08062026/14/11/image_08062026_14_12_04_59731.jpg MAIN: 2026-06-08 14:12:05,317 - INFO - duration: 0.9510254630004056 MAIN: 2026-06-08 14:12:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:13:04,514 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:13:04,881 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:13:05,189 - INFO - taking picture MAIN: 2026-06-08 14:13:05,190 - INFO - we take 463 photos in this while loop MAIN: 2026-06-08 14:13:05,190 - INFO - /home/pi/Desktop/images/08062026/14/12/image_08062026_14_13_04_59887.jpg MAIN: 2026-06-08 14:13:05,190 - INFO - duration: 0.9363310600019759 MAIN: 2026-06-08 14:13:05,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:14:05,412 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:14:05,436 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:14:06,085 - INFO - taking picture MAIN: 2026-06-08 14:14:06,086 - INFO - we take 464 photos in this while loop MAIN: 2026-06-08 14:14:06,086 - INFO - /home/pi/Desktop/images/08062026/14/13/image_08062026_14_14_05_60879.jpg MAIN: 2026-06-08 14:14:06,086 - INFO - duration: 0.952714320999803 MAIN: 2026-06-08 14:14:06,086 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:15:04,886 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:15:05,571 - INFO - taking picture MAIN: 2026-06-08 14:15:05,571 - INFO - we take 465 photos in this while loop MAIN: 2026-06-08 14:15:05,571 - INFO - /home/pi/Desktop/images/08062026/14/14/image_08062026_14_15_04_59508.jpg MAIN: 2026-06-08 14:15:05,571 - INFO - duration: 0.9289193439981318 MAIN: 2026-06-08 14:15:05,571 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/15' MAIN: 2026-06-08 14:15:05,702 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:16:04,547 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:16:05,245 - INFO - taking picture MAIN: 2026-06-08 14:16:05,246 - INFO - we take 466 photos in this while loop MAIN: 2026-06-08 14:16:05,246 - INFO - /home/pi/Desktop/images/08062026/14/15/image_08062026_14_16_04_59686.jpg MAIN: 2026-06-08 14:16:05,246 - INFO - duration: 0.9174598870013142 MAIN: 2026-06-08 14:16:05,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/16' MAIN: 2026-06-08 14:16:05,316 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:17:05,530 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:17:05,827 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:17:06,200 - INFO - taking picture MAIN: 2026-06-08 14:17:06,201 - INFO - we take 467 photos in this while loop MAIN: 2026-06-08 14:17:06,201 - INFO - /home/pi/Desktop/images/08062026/14/16/image_08062026_14_17_05_60929.jpg MAIN: 2026-06-08 14:17:06,201 - INFO - duration: 0.9427196719989297 MAIN: 2026-06-08 14:17:06,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:18:05,186 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:18:05,202 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:18:05,869 - INFO - taking picture MAIN: 2026-06-08 14:18:05,869 - INFO - we take 468 photos in this while loop MAIN: 2026-06-08 14:18:05,870 - INFO - /home/pi/Desktop/images/08062026/14/17/image_08062026_14_18_05_59673.jpg MAIN: 2026-06-08 14:18:05,870 - INFO - duration: 0.937522259002435 MAIN: 2026-06-08 14:18:05,870 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:19:04,898 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:19:05,045 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:19:05,565 - INFO - taking picture MAIN: 2026-06-08 14:19:05,565 - INFO - we take 469 photos in this while loop MAIN: 2026-06-08 14:19:05,565 - INFO - /home/pi/Desktop/images/08062026/14/18/image_08062026_14_19_04_59694.jpg MAIN: 2026-06-08 14:19:05,565 - INFO - duration: 0.9383684679996804 MAIN: 2026-06-08 14:19:05,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:20:04,870 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:20:05,558 - INFO - taking picture MAIN: 2026-06-08 14:20:05,559 - INFO - we take 470 photos in this while loop MAIN: 2026-06-08 14:20:05,559 - INFO - /home/pi/Desktop/images/08062026/14/19/image_08062026_14_20_04_59984.jpg MAIN: 2026-06-08 14:20:05,559 - INFO - duration: 0.9471552950053592 MAIN: 2026-06-08 14:20:05,559 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/20' MAIN: 2026-06-08 14:20:05,801 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:21:04,447 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:21:05,147 - INFO - taking picture MAIN: 2026-06-08 14:21:05,147 - INFO - we take 471 photos in this while loop MAIN: 2026-06-08 14:21:05,147 - INFO - /home/pi/Desktop/images/08062026/14/20/image_08062026_14_21_04_59619.jpg MAIN: 2026-06-08 14:21:05,147 - INFO - duration: 0.9160394510035985 MAIN: 2026-06-08 14:21:05,148 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/21' MAIN: 2026-06-08 14:21:05,204 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:22:05,347 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:22:05,750 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:22:06,018 - INFO - taking picture MAIN: 2026-06-08 14:22:06,019 - INFO - we take 472 photos in this while loop MAIN: 2026-06-08 14:22:06,019 - INFO - /home/pi/Desktop/images/08062026/14/21/image_08062026_14_22_05_60842.jpg MAIN: 2026-06-08 14:22:06,019 - INFO - duration: 0.9448984600021504 MAIN: 2026-06-08 14:22:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:23:05,127 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:23:05,399 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:23:05,857 - INFO - taking picture MAIN: 2026-06-08 14:23:05,857 - INFO - we take 473 photos in this while loop MAIN: 2026-06-08 14:23:05,858 - INFO - /home/pi/Desktop/images/08062026/14/22/image_08062026_14_23_05_59759.jpg MAIN: 2026-06-08 14:23:05,858 - INFO - duration: 1.024063134995231 MAIN: 2026-06-08 14:23:05,858 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/23' MAIN: 2026-06-08 14:24:04,669 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:24:05,360 - INFO - taking picture MAIN: 2026-06-08 14:24:05,360 - INFO - we take 474 photos in this while loop MAIN: 2026-06-08 14:24:05,361 - INFO - /home/pi/Desktop/images/08062026/14/23/image_08062026_14_24_04_59599.jpg MAIN: 2026-06-08 14:24:05,361 - INFO - duration: 0.9272758189981687 MAIN: 2026-06-08 14:24:05,361 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/24' MAIN: 2026-06-08 14:24:06,078 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:25:05,131 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:25:05,571 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:25:06,275 - INFO - taking picture MAIN: 2026-06-08 14:25:06,275 - INFO - we take 475 photos in this while loop MAIN: 2026-06-08 14:25:06,275 - INFO - /home/pi/Desktop/images/08062026/14/24/image_08062026_14_25_05_60921.jpg MAIN: 2026-06-08 14:25:06,276 - INFO - duration: 0.9205883949980489 MAIN: 2026-06-08 14:25:06,276 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:26:05,219 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:26:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:26:06,033 - INFO - taking picture MAIN: 2026-06-08 14:26:06,034 - INFO - we take 476 photos in this while loop MAIN: 2026-06-08 14:26:06,034 - INFO - /home/pi/Desktop/images/08062026/14/25/image_08062026_14_26_05_59721.jpg MAIN: 2026-06-08 14:26:06,034 - INFO - duration: 0.9576639990045805 MAIN: 2026-06-08 14:26:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:27:05,050 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:27:05,126 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:27:05,854 - INFO - taking picture MAIN: 2026-06-08 14:27:05,854 - INFO - we take 477 photos in this while loop MAIN: 2026-06-08 14:27:05,854 - INFO - /home/pi/Desktop/images/08062026/14/26/image_08062026_14_27_05_59746.jpg MAIN: 2026-06-08 14:27:05,854 - INFO - duration: 1.0311830959981307 MAIN: 2026-06-08 14:27:05,855 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:28:04,813 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:28:05,536 - INFO - taking picture MAIN: 2026-06-08 14:28:05,536 - INFO - we take 478 photos in this while loop MAIN: 2026-06-08 14:28:05,537 - INFO - /home/pi/Desktop/images/08062026/14/27/image_08062026_14_28_04_59749.jpg MAIN: 2026-06-08 14:28:05,537 - INFO - duration: 0.9644882850043359 MAIN: 2026-06-08 14:28:05,537 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/28' MAIN: 2026-06-08 14:28:05,638 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:29:05,178 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:29:05,563 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:29:05,865 - INFO - taking picture MAIN: 2026-06-08 14:29:05,865 - INFO - we take 479 photos in this while loop MAIN: 2026-06-08 14:29:05,866 - INFO - /home/pi/Desktop/images/08062026/14/28/image_08062026_14_29_05_60349.jpg MAIN: 2026-06-08 14:29:05,866 - INFO - duration: 0.9442711979936576 MAIN: 2026-06-08 14:29:05,866 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/29' MAIN: 2026-06-08 14:30:05,051 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:30:05,756 - INFO - taking picture MAIN: 2026-06-08 14:30:05,756 - INFO - we take 480 photos in this while loop MAIN: 2026-06-08 14:30:05,756 - INFO - /home/pi/Desktop/images/08062026/14/29/image_08062026_14_30_05_59875.jpg MAIN: 2026-06-08 14:30:05,756 - INFO - duration: 0.9592592109984253 MAIN: 2026-06-08 14:30:05,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/30' MAIN: 2026-06-08 14:30:06,267 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:31:04,763 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:31:04,785 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:31:05,431 - INFO - taking picture MAIN: 2026-06-08 14:31:05,431 - INFO - we take 481 photos in this while loop MAIN: 2026-06-08 14:31:05,432 - INFO - /home/pi/Desktop/images/08062026/14/30/image_08062026_14_31_04_59675.jpg MAIN: 2026-06-08 14:31:05,432 - INFO - duration: 0.9588630840007681 MAIN: 2026-06-08 14:31:05,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:32:04,476 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:32:05,138 - INFO - taking picture MAIN: 2026-06-08 14:32:05,139 - INFO - we take 482 photos in this while loop MAIN: 2026-06-08 14:32:05,139 - INFO - /home/pi/Desktop/images/08062026/14/31/image_08062026_14_32_04_59744.jpg MAIN: 2026-06-08 14:32:05,139 - INFO - duration: 0.9214017210033489 MAIN: 2026-06-08 14:32:05,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/32' MAIN: 2026-06-08 14:32:05,293 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:33:05,014 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:33:05,260 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:33:05,976 - INFO - taking picture MAIN: 2026-06-08 14:33:05,976 - INFO - we take 483 photos in this while loop MAIN: 2026-06-08 14:33:05,976 - INFO - /home/pi/Desktop/images/08062026/14/32/image_08062026_14_33_05_60747.jpg MAIN: 2026-06-08 14:33:05,977 - INFO - duration: 1.0118279369999073 MAIN: 2026-06-08 14:33:05,977 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:34:05,426 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:34:05,493 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:34:06,100 - INFO - taking picture MAIN: 2026-06-08 14:34:06,101 - INFO - we take 484 photos in this while loop MAIN: 2026-06-08 14:34:06,101 - INFO - /home/pi/Desktop/images/08062026/14/33/image_08062026_14_34_05_60159.jpg MAIN: 2026-06-08 14:34:06,101 - INFO - duration: 0.9768406049988698 MAIN: 2026-06-08 14:34:06,101 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:35:05,115 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:35:05,709 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:35:05,809 - INFO - taking picture MAIN: 2026-06-08 14:35:05,810 - INFO - we take 485 photos in this while loop MAIN: 2026-06-08 14:35:05,810 - INFO - /home/pi/Desktop/images/08062026/14/34/image_08062026_14_35_05_59761.jpg MAIN: 2026-06-08 14:35:05,810 - INFO - duration: 0.9245626109986915 MAIN: 2026-06-08 14:35:05,810 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:36:05,168 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:36:05,722 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:36:05,850 - INFO - taking picture MAIN: 2026-06-08 14:36:05,851 - INFO - we take 486 photos in this while loop MAIN: 2026-06-08 14:36:05,851 - INFO - /home/pi/Desktop/images/08062026/14/35/image_08062026_14_36_05_60004.jpg MAIN: 2026-06-08 14:36:05,851 - INFO - duration: 0.9610476379966713 MAIN: 2026-06-08 14:36:05,851 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:37:04,735 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:37:05,091 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:37:05,751 - INFO - taking picture MAIN: 2026-06-08 14:37:05,751 - INFO - we take 487 photos in this while loop MAIN: 2026-06-08 14:37:05,751 - INFO - /home/pi/Desktop/images/08062026/14/36/image_08062026_14_37_05_59980.jpg MAIN: 2026-06-08 14:37:05,751 - INFO - duration: 0.8806105179974111 MAIN: 2026-06-08 14:37:05,752 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:38:04,892 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:38:05,229 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:38:05,565 - INFO - taking picture MAIN: 2026-06-08 14:38:05,565 - INFO - we take 488 photos in this while loop MAIN: 2026-06-08 14:38:05,565 - INFO - /home/pi/Desktop/images/08062026/14/37/image_08062026_14_38_04_59759.jpg MAIN: 2026-06-08 14:38:05,565 - INFO - duration: 0.9352966440055752 MAIN: 2026-06-08 14:38:05,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:39:04,886 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:39:05,162 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:39:05,613 - INFO - taking picture MAIN: 2026-06-08 14:39:05,613 - INFO - we take 489 photos in this while loop MAIN: 2026-06-08 14:39:05,613 - INFO - /home/pi/Desktop/images/08062026/14/38/image_08062026_14_39_04_59947.jpg MAIN: 2026-06-08 14:39:05,613 - INFO - duration: 1.0355567110018455 MAIN: 2026-06-08 14:39:05,614 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:40:05,359 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:40:06,040 - INFO - taking picture MAIN: 2026-06-08 14:40:06,041 - INFO - we take 490 photos in this while loop MAIN: 2026-06-08 14:40:06,041 - INFO - /home/pi/Desktop/images/08062026/14/39/image_08062026_14_40_05_60553.jpg MAIN: 2026-06-08 14:40:06,041 - INFO - duration: 0.9101173589951941 MAIN: 2026-06-08 14:40:06,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/40' MAIN: 2026-06-08 14:40:06,048 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:41:05,281 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:41:05,437 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:41:06,010 - INFO - taking picture MAIN: 2026-06-08 14:41:06,010 - INFO - we take 491 photos in this while loop MAIN: 2026-06-08 14:41:06,010 - INFO - /home/pi/Desktop/images/08062026/14/40/image_08062026_14_41_05_59886.jpg MAIN: 2026-06-08 14:41:06,010 - INFO - duration: 0.992439228000876 MAIN: 2026-06-08 14:41:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:42:05,338 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:42:05,779 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:42:06,046 - INFO - taking picture MAIN: 2026-06-08 14:42:06,046 - INFO - we take 492 photos in this while loop MAIN: 2026-06-08 14:42:06,046 - INFO - /home/pi/Desktop/images/08062026/14/41/image_08062026_14_42_05_60042.jpg MAIN: 2026-06-08 14:42:06,047 - INFO - duration: 0.9868189639964839 MAIN: 2026-06-08 14:42:06,047 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:43:04,869 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:43:05,367 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:43:06,027 - INFO - taking picture MAIN: 2026-06-08 14:43:06,028 - INFO - we take 493 photos in this while loop MAIN: 2026-06-08 14:43:06,028 - INFO - /home/pi/Desktop/images/08062026/14/42/image_08062026_14_43_05_60077.jpg MAIN: 2026-06-08 14:43:06,028 - INFO - duration: 0.89027314499981 MAIN: 2026-06-08 14:43:06,028 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:44:05,207 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:44:05,344 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:44:06,007 - INFO - taking picture MAIN: 2026-06-08 14:44:06,007 - INFO - we take 494 photos in this while loop MAIN: 2026-06-08 14:44:06,007 - INFO - /home/pi/Desktop/images/08062026/14/43/image_08062026_14_44_05_59911.jpg MAIN: 2026-06-08 14:44:06,007 - INFO - duration: 0.95843316999526 MAIN: 2026-06-08 14:44:06,007 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:45:05,453 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:45:05,476 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:45:06,232 - INFO - taking picture MAIN: 2026-06-08 14:45:06,232 - INFO - we take 495 photos in this while loop MAIN: 2026-06-08 14:45:06,232 - INFO - /home/pi/Desktop/images/08062026/14/44/image_08062026_14_45_05_60200.jpg MAIN: 2026-06-08 14:45:06,232 - INFO - duration: 0.9832293470026343 MAIN: 2026-06-08 14:45:06,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:46:04,636 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:46:05,299 - INFO - taking picture MAIN: 2026-06-08 14:46:05,299 - INFO - we take 496 photos in this while loop MAIN: 2026-06-08 14:46:05,299 - INFO - /home/pi/Desktop/images/08062026/14/45/image_08062026_14_46_04_59130.jpg MAIN: 2026-06-08 14:46:05,300 - INFO - duration: 0.9201238179957727 MAIN: 2026-06-08 14:46:05,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/46' MAIN: 2026-06-08 14:46:05,400 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:47:04,595 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:47:05,293 - INFO - taking picture MAIN: 2026-06-08 14:47:05,294 - INFO - we take 497 photos in this while loop MAIN: 2026-06-08 14:47:05,294 - INFO - /home/pi/Desktop/images/08062026/14/46/image_08062026_14_47_04_59997.jpg MAIN: 2026-06-08 14:47:05,294 - INFO - duration: 0.9173908309967373 MAIN: 2026-06-08 14:47:05,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/47' MAIN: 2026-06-08 14:47:05,374 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:48:04,566 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:48:04,897 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:48:05,257 - INFO - taking picture MAIN: 2026-06-08 14:48:05,257 - INFO - we take 498 photos in this while loop MAIN: 2026-06-08 14:48:05,257 - INFO - /home/pi/Desktop/images/08062026/14/47/image_08062026_14_48_04_59936.jpg MAIN: 2026-06-08 14:48:05,257 - INFO - duration: 0.9446566460028407 MAIN: 2026-06-08 14:48:05,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:49:04,645 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:49:04,960 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:49:05,312 - INFO - taking picture MAIN: 2026-06-08 14:49:05,313 - INFO - we take 499 photos in this while loop MAIN: 2026-06-08 14:49:05,313 - INFO - /home/pi/Desktop/images/08062026/14/48/image_08062026_14_49_04_60064.jpg MAIN: 2026-06-08 14:49:05,313 - INFO - duration: 0.9360917220037663 MAIN: 2026-06-08 14:49:05,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:50:04,971 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:50:05,250 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:50:05,667 - INFO - taking picture MAIN: 2026-06-08 14:50:05,668 - INFO - we take 500 photos in this while loop MAIN: 2026-06-08 14:50:05,668 - INFO - /home/pi/Desktop/images/08062026/14/49/image_08062026_14_50_04_60365.jpg MAIN: 2026-06-08 14:50:05,668 - INFO - duration: 0.925885119002487 MAIN: 2026-06-08 14:50:05,668 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:51:04,894 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:51:04,979 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:51:05,619 - INFO - taking picture MAIN: 2026-06-08 14:51:05,619 - INFO - we take 501 photos in this while loop MAIN: 2026-06-08 14:51:05,619 - INFO - /home/pi/Desktop/images/08062026/14/50/image_08062026_14_51_04_59893.jpg MAIN: 2026-06-08 14:51:05,619 - INFO - duration: 0.9836048389988719 MAIN: 2026-06-08 14:51:05,619 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:52:05,203 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:52:05,237 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:52:05,904 - INFO - taking picture MAIN: 2026-06-08 14:52:05,904 - INFO - we take 502 photos in this while loop MAIN: 2026-06-08 14:52:05,904 - INFO - /home/pi/Desktop/images/08062026/14/51/image_08062026_14_52_05_60249.jpg MAIN: 2026-06-08 14:52:05,905 - INFO - duration: 1.019168102000549 MAIN: 2026-06-08 14:52:05,905 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:53:05,182 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:53:05,513 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:53:05,851 - INFO - taking picture MAIN: 2026-06-08 14:53:05,851 - INFO - we take 503 photos in this while loop MAIN: 2026-06-08 14:53:05,851 - INFO - /home/pi/Desktop/images/08062026/14/52/image_08062026_14_53_05_60023.jpg MAIN: 2026-06-08 14:53:05,851 - INFO - duration: 0.9421220160002122 MAIN: 2026-06-08 14:53:05,852 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:54:05,268 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:54:05,684 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:54:05,935 - INFO - taking picture MAIN: 2026-06-08 14:54:05,935 - INFO - we take 504 photos in this while loop MAIN: 2026-06-08 14:54:05,935 - INFO - /home/pi/Desktop/images/08062026/14/53/image_08062026_14_54_05_60084.jpg MAIN: 2026-06-08 14:54:05,935 - INFO - duration: 0.9418819019992952 MAIN: 2026-06-08 14:54:05,936 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:55:05,183 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:55:05,858 - INFO - taking picture MAIN: 2026-06-08 14:55:05,858 - INFO - we take 505 photos in this while loop MAIN: 2026-06-08 14:55:05,858 - INFO - /home/pi/Desktop/images/08062026/14/54/image_08062026_14_55_05_59954.jpg MAIN: 2026-06-08 14:55:05,858 - INFO - duration: 0.9104044639971107 MAIN: 2026-06-08 14:55:05,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/55' MAIN: 2026-06-08 14:55:05,965 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:56:04,798 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:56:05,138 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:56:05,856 - INFO - taking picture MAIN: 2026-06-08 14:56:05,856 - INFO - we take 506 photos in this while loop MAIN: 2026-06-08 14:56:05,856 - INFO - /home/pi/Desktop/images/08062026/14/55/image_08062026_14_56_05_59972.jpg MAIN: 2026-06-08 14:56:05,856 - INFO - duration: 0.9352476999993087 MAIN: 2026-06-08 14:56:05,856 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:57:04,827 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:57:04,902 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:57:05,564 - INFO - taking picture MAIN: 2026-06-08 14:57:05,565 - INFO - we take 507 photos in this while loop MAIN: 2026-06-08 14:57:05,565 - INFO - /home/pi/Desktop/images/08062026/14/56/image_08062026_14_57_04_59714.jpg MAIN: 2026-06-08 14:57:05,565 - INFO - duration: 0.9295462520021829 MAIN: 2026-06-08 14:57:05,565 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:58:04,798 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:58:05,456 - INFO - taking picture MAIN: 2026-06-08 14:58:05,456 - INFO - we take 508 photos in this while loop MAIN: 2026-06-08 14:58:05,457 - INFO - /home/pi/Desktop/images/08062026/14/57/image_08062026_14_58_04_59923.jpg MAIN: 2026-06-08 14:58:05,457 - INFO - duration: 0.8981450979990768 MAIN: 2026-06-08 14:58:05,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/58' MAIN: 2026-06-08 14:58:05,474 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 14:59:04,589 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 14:59:05,001 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 14:59:05,299 - INFO - taking picture MAIN: 2026-06-08 14:59:05,299 - INFO - we take 509 photos in this while loop MAIN: 2026-06-08 14:59:05,299 - INFO - /home/pi/Desktop/images/08062026/14/58/image_08062026_14_59_04_59814.jpg MAIN: 2026-06-08 14:59:05,299 - INFO - duration: 0.9263972250046209 MAIN: 2026-06-08 14:59:05,299 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/14/59' MAIN: 2026-06-08 15:00:04,590 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:00:05,342 - INFO - taking picture MAIN: 2026-06-08 15:00:05,342 - INFO - we take 510 photos in this while loop MAIN: 2026-06-08 15:00:05,343 - INFO - /home/pi/Desktop/images/08062026/14/59/image_08062026_15_00_04_59925.jpg MAIN: 2026-06-08 15:00:05,343 - INFO - duration: 1.0450357899972005 MAIN: 2026-06-08 15:00:05,343 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/00' MAIN: 2026-06-08 15:00:05,859 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:01:04,598 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:01:04,639 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:01:05,267 - INFO - taking picture MAIN: 2026-06-08 15:01:05,268 - INFO - we take 511 photos in this while loop MAIN: 2026-06-08 15:01:05,268 - INFO - /home/pi/Desktop/images/08062026/15/00/image_08062026_15_01_04_60038.jpg MAIN: 2026-06-08 15:01:05,268 - INFO - duration: 0.9315648609990603 MAIN: 2026-06-08 15:01:05,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:02:04,576 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:02:04,939 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:02:05,252 - INFO - taking picture MAIN: 2026-06-08 15:02:05,252 - INFO - we take 512 photos in this while loop MAIN: 2026-06-08 15:02:05,252 - INFO - /home/pi/Desktop/images/08062026/15/01/image_08062026_15_02_04_59969.jpg MAIN: 2026-06-08 15:02:05,252 - INFO - duration: 0.9462067970016506 MAIN: 2026-06-08 15:02:05,253 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:03:04,582 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:03:04,960 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:03:05,251 - INFO - taking picture MAIN: 2026-06-08 15:03:05,251 - INFO - we take 513 photos in this while loop MAIN: 2026-06-08 15:03:05,251 - INFO - /home/pi/Desktop/images/08062026/15/02/image_08062026_15_03_04_60018.jpg MAIN: 2026-06-08 15:03:05,251 - INFO - duration: 0.9265071600020747 MAIN: 2026-06-08 15:03:05,251 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:04:04,673 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:04:05,333 - INFO - taking picture MAIN: 2026-06-08 15:04:05,333 - INFO - we take 514 photos in this while loop MAIN: 2026-06-08 15:04:05,333 - INFO - /home/pi/Desktop/images/08062026/15/03/image_08062026_15_04_04_60102.jpg MAIN: 2026-06-08 15:04:05,333 - INFO - duration: 0.9059493989989278 MAIN: 2026-06-08 15:04:05,333 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/04' MAIN: 2026-06-08 15:04:05,606 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:05:04,922 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:05:05,555 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:05:05,626 - INFO - taking picture MAIN: 2026-06-08 15:05:05,626 - INFO - we take 515 photos in this while loop MAIN: 2026-06-08 15:05:05,627 - INFO - /home/pi/Desktop/images/08062026/15/04/image_08062026_15_05_04_60261.jpg MAIN: 2026-06-08 15:05:05,627 - INFO - duration: 0.9384461880035815 MAIN: 2026-06-08 15:05:05,627 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:06:04,819 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:06:05,480 - INFO - taking picture MAIN: 2026-06-08 15:06:05,480 - INFO - we take 516 photos in this while loop MAIN: 2026-06-08 15:06:05,480 - INFO - /home/pi/Desktop/images/08062026/15/05/image_08062026_15_06_04_59880.jpg MAIN: 2026-06-08 15:06:05,481 - INFO - duration: 0.9116383860018686 MAIN: 2026-06-08 15:06:05,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/06' MAIN: 2026-06-08 15:06:05,702 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:07:04,899 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:07:05,598 - INFO - taking picture MAIN: 2026-06-08 15:07:05,599 - INFO - we take 517 photos in this while loop MAIN: 2026-06-08 15:07:05,599 - INFO - /home/pi/Desktop/images/08062026/15/06/image_08062026_15_07_04_60115.jpg MAIN: 2026-06-08 15:07:05,599 - INFO - duration: 0.9141242300029262 MAIN: 2026-06-08 15:07:05,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/07' MAIN: 2026-06-08 15:07:05,779 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:08:04,921 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:08:05,033 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:08:05,590 - INFO - taking picture MAIN: 2026-06-08 15:08:05,590 - INFO - we take 518 photos in this while loop MAIN: 2026-06-08 15:08:05,590 - INFO - /home/pi/Desktop/images/08062026/15/07/image_08062026_15_08_04_59961.jpg MAIN: 2026-06-08 15:08:05,591 - INFO - duration: 0.9446114819947979 MAIN: 2026-06-08 15:08:05,591 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:09:04,752 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:09:04,828 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:09:05,419 - INFO - taking picture MAIN: 2026-06-08 15:09:05,419 - INFO - we take 519 photos in this while loop MAIN: 2026-06-08 15:09:05,419 - INFO - /home/pi/Desktop/images/08062026/15/08/image_08062026_15_09_04_59833.jpg MAIN: 2026-06-08 15:09:05,419 - INFO - duration: 0.9402558159999899 MAIN: 2026-06-08 15:09:05,420 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:10:04,716 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:10:05,417 - INFO - taking picture MAIN: 2026-06-08 15:10:05,417 - INFO - we take 520 photos in this while loop MAIN: 2026-06-08 15:10:05,417 - INFO - /home/pi/Desktop/images/08062026/15/09/image_08062026_15_10_04_59984.jpg MAIN: 2026-06-08 15:10:05,418 - INFO - duration: 0.9540141250035958 MAIN: 2026-06-08 15:10:05,418 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/10' MAIN: 2026-06-08 15:10:05,667 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:11:04,954 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:11:05,395 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:11:05,654 - INFO - taking picture MAIN: 2026-06-08 15:11:05,654 - INFO - we take 521 photos in this while loop MAIN: 2026-06-08 15:11:05,655 - INFO - /home/pi/Desktop/images/08062026/15/10/image_08062026_15_11_04_60211.jpg MAIN: 2026-06-08 15:11:05,655 - INFO - duration: 0.9798987449976266 MAIN: 2026-06-08 15:11:05,655 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:12:05,055 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:12:05,637 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:12:05,787 - INFO - taking picture MAIN: 2026-06-08 15:12:05,788 - INFO - we take 522 photos in this while loop MAIN: 2026-06-08 15:12:05,788 - INFO - /home/pi/Desktop/images/08062026/15/11/image_08062026_15_12_05_60106.jpg MAIN: 2026-06-08 15:12:05,788 - INFO - duration: 1.006376764999004 MAIN: 2026-06-08 15:12:05,788 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:13:04,940 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:13:05,415 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:13:05,609 - INFO - taking picture MAIN: 2026-06-08 15:13:05,609 - INFO - we take 523 photos in this while loop MAIN: 2026-06-08 15:13:05,609 - INFO - /home/pi/Desktop/images/08062026/15/12/image_08062026_15_13_04_59891.jpg MAIN: 2026-06-08 15:13:05,609 - INFO - duration: 0.9360770380008034 MAIN: 2026-06-08 15:13:05,609 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:14:04,829 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:14:04,915 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:14:05,513 - INFO - taking picture MAIN: 2026-06-08 15:14:05,514 - INFO - we take 524 photos in this while loop MAIN: 2026-06-08 15:14:05,514 - INFO - /home/pi/Desktop/images/08062026/15/13/image_08062026_15_14_04_59867.jpg MAIN: 2026-06-08 15:14:05,514 - INFO - duration: 0.973067313003412 MAIN: 2026-06-08 15:14:05,514 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:15:04,805 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:15:05,045 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:15:05,543 - INFO - taking picture MAIN: 2026-06-08 15:15:05,543 - INFO - we take 525 photos in this while loop MAIN: 2026-06-08 15:15:05,543 - INFO - /home/pi/Desktop/images/08062026/15/14/image_08062026_15_15_04_59996.jpg MAIN: 2026-06-08 15:15:05,544 - INFO - duration: 1.0065760200013756 MAIN: 2026-06-08 15:15:05,544 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:16:05,194 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:16:05,621 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:16:06,339 - INFO - taking picture MAIN: 2026-06-08 15:16:06,339 - INFO - we take 526 photos in this while loop MAIN: 2026-06-08 15:16:06,340 - INFO - /home/pi/Desktop/images/08062026/15/15/image_08062026_15_16_05_60834.jpg MAIN: 2026-06-08 15:16:06,340 - INFO - duration: 0.9677774350057007 MAIN: 2026-06-08 15:16:06,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:17:04,451 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:17:05,144 - INFO - taking picture MAIN: 2026-06-08 15:17:05,145 - INFO - we take 527 photos in this while loop MAIN: 2026-06-08 15:17:05,145 - INFO - /home/pi/Desktop/images/08062026/15/16/image_08062026_15_17_04_58855.jpg MAIN: 2026-06-08 15:17:05,145 - INFO - duration: 0.9178384670012747 MAIN: 2026-06-08 15:17:05,145 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/17' MAIN: 2026-06-08 15:17:05,246 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:18:05,631 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:18:05,646 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:18:06,301 - INFO - taking picture MAIN: 2026-06-08 15:18:06,302 - INFO - we take 528 photos in this while loop MAIN: 2026-06-08 15:18:06,302 - INFO - /home/pi/Desktop/images/08062026/15/17/image_08062026_15_18_05_61130.jpg MAIN: 2026-06-08 15:18:06,302 - INFO - duration: 0.9444069050005055 MAIN: 2026-06-08 15:18:06,302 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:19:05,426 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:19:05,555 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:19:06,212 - INFO - taking picture MAIN: 2026-06-08 15:19:06,212 - INFO - we take 529 photos in this while loop MAIN: 2026-06-08 15:19:06,213 - INFO - /home/pi/Desktop/images/08062026/15/18/image_08062026_15_19_05_59912.jpg MAIN: 2026-06-08 15:19:06,213 - INFO - duration: 0.9430521870017401 MAIN: 2026-06-08 15:19:06,213 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:20:04,447 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:20:05,140 - INFO - taking picture MAIN: 2026-06-08 15:20:05,140 - INFO - we take 530 photos in this while loop MAIN: 2026-06-08 15:20:05,140 - INFO - /home/pi/Desktop/images/08062026/15/19/image_08062026_15_20_04_58949.jpg MAIN: 2026-06-08 15:20:05,140 - INFO - duration: 0.9207175979972817 MAIN: 2026-06-08 15:20:05,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/20' MAIN: 2026-06-08 15:20:05,283 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:21:04,468 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:21:04,730 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:21:05,139 - INFO - taking picture MAIN: 2026-06-08 15:21:05,139 - INFO - we take 531 photos in this while loop MAIN: 2026-06-08 15:21:05,139 - INFO - /home/pi/Desktop/images/08062026/15/20/image_08062026_15_21_04_59993.jpg MAIN: 2026-06-08 15:21:05,139 - INFO - duration: 0.9257415409956593 MAIN: 2026-06-08 15:21:05,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:22:04,489 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:22:05,200 - INFO - taking picture MAIN: 2026-06-08 15:22:05,201 - INFO - we take 532 photos in this while loop MAIN: 2026-06-08 15:22:05,201 - INFO - /home/pi/Desktop/images/08062026/15/21/image_08062026_15_22_04_60004.jpg MAIN: 2026-06-08 15:22:05,201 - INFO - duration: 0.9835973869994632 MAIN: 2026-06-08 15:22:05,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/22' MAIN: 2026-06-08 15:22:05,312 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:23:04,847 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:23:05,007 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:23:05,514 - INFO - taking picture MAIN: 2026-06-08 15:23:05,514 - INFO - we take 533 photos in this while loop MAIN: 2026-06-08 15:23:05,514 - INFO - /home/pi/Desktop/images/08062026/15/22/image_08062026_15_23_04_60362.jpg MAIN: 2026-06-08 15:23:05,514 - INFO - duration: 0.9339501319991541 MAIN: 2026-06-08 15:23:05,514 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:24:05,060 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:24:05,593 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:24:05,729 - INFO - taking picture MAIN: 2026-06-08 15:24:05,730 - INFO - we take 534 photos in this while loop MAIN: 2026-06-08 15:24:05,730 - INFO - /home/pi/Desktop/images/08062026/15/23/image_08062026_15_24_05_60202.jpg MAIN: 2026-06-08 15:24:05,730 - INFO - duration: 0.9470985299994936 MAIN: 2026-06-08 15:24:05,730 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:25:05,203 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:25:05,473 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:25:05,891 - INFO - taking picture MAIN: 2026-06-08 15:25:05,892 - INFO - we take 535 photos in this while loop MAIN: 2026-06-08 15:25:05,892 - INFO - /home/pi/Desktop/images/08062026/15/24/image_08062026_15_25_05_60182.jpg MAIN: 2026-06-08 15:25:05,892 - INFO - duration: 0.9262130490023992 MAIN: 2026-06-08 15:25:05,892 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:26:05,389 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:26:05,551 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:26:06,114 - INFO - taking picture MAIN: 2026-06-08 15:26:06,114 - INFO - we take 536 photos in this while loop MAIN: 2026-06-08 15:26:06,115 - INFO - /home/pi/Desktop/images/08062026/15/25/image_08062026_15_26_05_60171.jpg MAIN: 2026-06-08 15:26:06,115 - INFO - duration: 0.9772962749993894 MAIN: 2026-06-08 15:26:06,115 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:27:04,544 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:27:05,519 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:27:06,176 - INFO - taking picture MAIN: 2026-06-08 15:27:06,177 - INFO - we take 537 photos in this while loop MAIN: 2026-06-08 15:27:06,177 - INFO - /home/pi/Desktop/images/08062026/15/26/image_08062026_15_27_05_60118.jpg MAIN: 2026-06-08 15:27:06,177 - INFO - duration: 0.9211876539993682 MAIN: 2026-06-08 15:27:06,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:28:04,544 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:28:04,825 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:28:05,221 - INFO - taking picture MAIN: 2026-06-08 15:28:05,221 - INFO - we take 538 photos in this while loop MAIN: 2026-06-08 15:28:05,221 - INFO - /home/pi/Desktop/images/08062026/15/27/image_08062026_15_28_04_59004.jpg MAIN: 2026-06-08 15:28:05,221 - INFO - duration: 0.9610536649997812 MAIN: 2026-06-08 15:28:05,222 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:29:04,677 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:29:04,860 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:29:05,364 - INFO - taking picture MAIN: 2026-06-08 15:29:05,364 - INFO - we take 539 photos in this while loop MAIN: 2026-06-08 15:29:05,365 - INFO - /home/pi/Desktop/images/08062026/15/28/image_08062026_15_29_04_60153.jpg MAIN: 2026-06-08 15:29:05,365 - INFO - duration: 0.9511677510017762 MAIN: 2026-06-08 15:29:05,365 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:30:05,021 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:30:05,688 - INFO - taking picture MAIN: 2026-06-08 15:30:05,688 - INFO - we take 540 photos in this while loop MAIN: 2026-06-08 15:30:05,688 - INFO - /home/pi/Desktop/images/08062026/15/29/image_08062026_15_30_05_60366.jpg MAIN: 2026-06-08 15:30:05,689 - INFO - duration: 0.9085160739996354 MAIN: 2026-06-08 15:30:05,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/30' MAIN: 2026-06-08 15:30:05,719 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:31:05,023 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:31:05,063 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:31:05,694 - INFO - taking picture MAIN: 2026-06-08 15:31:05,694 - INFO - we take 541 photos in this while loop MAIN: 2026-06-08 15:31:05,694 - INFO - /home/pi/Desktop/images/08062026/15/30/image_08062026_15_31_05_59967.jpg MAIN: 2026-06-08 15:31:05,694 - INFO - duration: 0.9462810559998616 MAIN: 2026-06-08 15:31:05,694 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:32:05,218 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:32:05,497 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:32:05,945 - INFO - taking picture MAIN: 2026-06-08 15:32:05,946 - INFO - we take 542 photos in this while loop MAIN: 2026-06-08 15:32:05,946 - INFO - /home/pi/Desktop/images/08062026/15/31/image_08062026_15_32_05_60196.jpg MAIN: 2026-06-08 15:32:05,946 - INFO - duration: 1.001294546003919 MAIN: 2026-06-08 15:32:05,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:33:05,282 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:33:05,549 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:33:06,209 - INFO - taking picture MAIN: 2026-06-08 15:33:06,210 - INFO - we take 543 photos in this while loop MAIN: 2026-06-08 15:33:06,210 - INFO - /home/pi/Desktop/images/08062026/15/32/image_08062026_15_33_05_60337.jpg MAIN: 2026-06-08 15:33:06,210 - INFO - duration: 0.9278752659956808 MAIN: 2026-06-08 15:33:06,210 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/33' MAIN: 2026-06-08 15:34:04,451 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:34:05,161 - INFO - taking picture MAIN: 2026-06-08 15:34:05,161 - INFO - we take 544 photos in this while loop MAIN: 2026-06-08 15:34:05,161 - INFO - /home/pi/Desktop/images/08062026/15/33/image_08062026_15_34_04_58937.jpg MAIN: 2026-06-08 15:34:05,161 - INFO - duration: 0.9416903559977072 MAIN: 2026-06-08 15:34:05,161 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/34' MAIN: 2026-06-08 15:34:05,884 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:35:04,638 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:35:05,310 - INFO - taking picture MAIN: 2026-06-08 15:35:05,310 - INFO - we take 545 photos in this while loop MAIN: 2026-06-08 15:35:05,310 - INFO - /home/pi/Desktop/images/08062026/15/34/image_08062026_15_35_04_60174.jpg MAIN: 2026-06-08 15:35:05,310 - INFO - duration: 0.9162508559966227 MAIN: 2026-06-08 15:35:05,311 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/35' MAIN: 2026-06-08 15:35:05,414 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:36:04,929 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:36:05,194 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:36:05,612 - INFO - taking picture MAIN: 2026-06-08 15:36:05,612 - INFO - we take 546 photos in this while loop MAIN: 2026-06-08 15:36:05,612 - INFO - /home/pi/Desktop/images/08062026/15/35/image_08062026_15_36_04_60260.jpg MAIN: 2026-06-08 15:36:05,613 - INFO - duration: 0.9584533180022845 MAIN: 2026-06-08 15:36:05,613 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:37:04,960 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:37:05,042 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:37:05,624 - INFO - taking picture MAIN: 2026-06-08 15:37:05,625 - INFO - we take 547 photos in this while loop MAIN: 2026-06-08 15:37:05,625 - INFO - /home/pi/Desktop/images/08062026/15/36/image_08062026_15_37_04_60034.jpg MAIN: 2026-06-08 15:37:05,625 - INFO - duration: 0.936595054998179 MAIN: 2026-06-08 15:37:05,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:38:05,143 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:38:05,477 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:38:05,813 - INFO - taking picture MAIN: 2026-06-08 15:38:05,813 - INFO - we take 548 photos in this while loop MAIN: 2026-06-08 15:38:05,814 - INFO - /home/pi/Desktop/images/08062026/15/37/image_08062026_15_38_05_60179.jpg MAIN: 2026-06-08 15:38:05,814 - INFO - duration: 0.9454683799995109 MAIN: 2026-06-08 15:38:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:39:05,433 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:39:05,487 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:39:06,199 - INFO - taking picture MAIN: 2026-06-08 15:39:06,199 - INFO - we take 549 photos in this while loop MAIN: 2026-06-08 15:39:06,199 - INFO - /home/pi/Desktop/images/08062026/15/38/image_08062026_15_39_05_60314.jpg MAIN: 2026-06-08 15:39:06,200 - INFO - duration: 1.016540476004593 MAIN: 2026-06-08 15:39:06,200 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/39' MAIN: 2026-06-08 15:40:04,627 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:40:05,369 - INFO - taking picture MAIN: 2026-06-08 15:40:05,370 - INFO - we take 550 photos in this while loop MAIN: 2026-06-08 15:40:05,370 - INFO - /home/pi/Desktop/images/08062026/15/39/image_08062026_15_40_04_59194.jpg MAIN: 2026-06-08 15:40:05,370 - INFO - duration: 0.9918022799975006 MAIN: 2026-06-08 15:40:05,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/40' MAIN: 2026-06-08 15:40:06,179 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:41:04,616 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:41:04,755 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:41:05,414 - INFO - taking picture MAIN: 2026-06-08 15:41:05,414 - INFO - we take 551 photos in this while loop MAIN: 2026-06-08 15:41:05,415 - INFO - /home/pi/Desktop/images/08062026/15/40/image_08062026_15_41_04_60077.jpg MAIN: 2026-06-08 15:41:05,415 - INFO - duration: 0.9591235180050717 MAIN: 2026-06-08 15:41:05,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:42:04,702 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:42:05,015 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:42:05,369 - INFO - taking picture MAIN: 2026-06-08 15:42:05,369 - INFO - we take 552 photos in this while loop MAIN: 2026-06-08 15:42:05,369 - INFO - /home/pi/Desktop/images/08062026/15/41/image_08062026_15_42_04_59984.jpg MAIN: 2026-06-08 15:42:05,370 - INFO - duration: 0.9298722399980761 MAIN: 2026-06-08 15:42:05,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:43:04,624 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:43:04,911 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:43:05,317 - INFO - taking picture MAIN: 2026-06-08 15:43:05,318 - INFO - we take 553 photos in this while loop MAIN: 2026-06-08 15:43:05,318 - INFO - /home/pi/Desktop/images/08062026/15/42/image_08062026_15_43_04_59935.jpg MAIN: 2026-06-08 15:43:05,318 - INFO - duration: 0.9427920939997421 MAIN: 2026-06-08 15:43:05,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:44:04,945 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:44:05,403 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:44:05,638 - INFO - taking picture MAIN: 2026-06-08 15:44:05,639 - INFO - we take 554 photos in this while loop MAIN: 2026-06-08 15:44:05,639 - INFO - /home/pi/Desktop/images/08062026/15/43/image_08062026_15_44_04_60292.jpg MAIN: 2026-06-08 15:44:05,639 - INFO - duration: 0.971918811002979 MAIN: 2026-06-08 15:44:05,639 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:45:05,195 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:45:05,534 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:45:05,872 - INFO - taking picture MAIN: 2026-06-08 15:45:05,873 - INFO - we take 555 photos in this while loop MAIN: 2026-06-08 15:45:05,873 - INFO - /home/pi/Desktop/images/08062026/15/44/image_08062026_15_45_05_60293.jpg MAIN: 2026-06-08 15:45:05,873 - INFO - duration: 0.9122244480022346 MAIN: 2026-06-08 15:45:05,873 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:46:05,384 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:46:05,424 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:46:06,055 - INFO - taking picture MAIN: 2026-06-08 15:46:06,056 - INFO - we take 556 photos in this while loop MAIN: 2026-06-08 15:46:06,056 - INFO - /home/pi/Desktop/images/08062026/15/45/image_08062026_15_46_05_60198.jpg MAIN: 2026-06-08 15:46:06,056 - INFO - duration: 0.8962826569986646 MAIN: 2026-06-08 15:46:06,056 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:47:05,521 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:47:05,589 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:47:06,187 - INFO - taking picture MAIN: 2026-06-08 15:47:06,188 - INFO - we take 557 photos in this while loop MAIN: 2026-06-08 15:47:06,188 - INFO - /home/pi/Desktop/images/08062026/15/46/image_08062026_15_47_05_60116.jpg MAIN: 2026-06-08 15:47:06,188 - INFO - duration: 0.9121801139990566 MAIN: 2026-06-08 15:47:06,188 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:48:04,902 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:48:05,532 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:48:06,193 - INFO - taking picture MAIN: 2026-06-08 15:48:06,193 - INFO - we take 558 photos in this while loop MAIN: 2026-06-08 15:48:06,193 - INFO - /home/pi/Desktop/images/08062026/15/47/image_08062026_15_48_05_60026.jpg MAIN: 2026-06-08 15:48:06,193 - INFO - duration: 0.8908724290013197 MAIN: 2026-06-08 15:48:06,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:49:04,426 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:49:04,519 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:49:05,099 - INFO - taking picture MAIN: 2026-06-08 15:49:05,099 - INFO - we take 559 photos in this while loop MAIN: 2026-06-08 15:49:05,099 - INFO - /home/pi/Desktop/images/08062026/15/48/image_08062026_15_49_04_58876.jpg MAIN: 2026-06-08 15:49:05,099 - INFO - duration: 0.9200727669958724 MAIN: 2026-06-08 15:49:05,100 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:50:04,750 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:50:05,246 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:50:05,475 - INFO - taking picture MAIN: 2026-06-08 15:50:05,475 - INFO - we take 560 photos in this while loop MAIN: 2026-06-08 15:50:05,475 - INFO - /home/pi/Desktop/images/08062026/15/49/image_08062026_15_50_04_60338.jpg MAIN: 2026-06-08 15:50:05,475 - INFO - duration: 0.9573688039963599 MAIN: 2026-06-08 15:50:05,476 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:51:04,853 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:51:04,911 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:51:05,578 - INFO - taking picture MAIN: 2026-06-08 15:51:05,578 - INFO - we take 561 photos in this while loop MAIN: 2026-06-08 15:51:05,578 - INFO - /home/pi/Desktop/images/08062026/15/50/image_08062026_15_51_04_60049.jpg MAIN: 2026-06-08 15:51:05,578 - INFO - duration: 1.0106196490014554 MAIN: 2026-06-08 15:51:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:52:05,068 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:52:05,305 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:52:05,736 - INFO - taking picture MAIN: 2026-06-08 15:52:05,737 - INFO - we take 562 photos in this while loop MAIN: 2026-06-08 15:52:05,737 - INFO - /home/pi/Desktop/images/08062026/15/51/image_08062026_15_52_05_60233.jpg MAIN: 2026-06-08 15:52:05,737 - INFO - duration: 0.9353115120029543 MAIN: 2026-06-08 15:52:05,737 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:53:05,178 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:53:05,230 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:53:05,840 - INFO - taking picture MAIN: 2026-06-08 15:53:05,840 - INFO - we take 563 photos in this while loop MAIN: 2026-06-08 15:53:05,840 - INFO - /home/pi/Desktop/images/08062026/15/52/image_08062026_15_53_05_60107.jpg MAIN: 2026-06-08 15:53:05,840 - INFO - duration: 0.9313265879973187 MAIN: 2026-06-08 15:53:05,841 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:54:05,149 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:54:05,602 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:54:05,830 - INFO - taking picture MAIN: 2026-06-08 15:54:05,831 - INFO - we take 564 photos in this while loop MAIN: 2026-06-08 15:54:05,831 - INFO - /home/pi/Desktop/images/08062026/15/53/image_08062026_15_54_05_59967.jpg MAIN: 2026-06-08 15:54:05,831 - INFO - duration: 0.9543713930033846 MAIN: 2026-06-08 15:54:05,831 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:55:05,050 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:55:05,700 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:55:05,796 - INFO - taking picture MAIN: 2026-06-08 15:55:05,797 - INFO - we take 565 photos in this while loop MAIN: 2026-06-08 15:55:05,797 - INFO - /home/pi/Desktop/images/08062026/15/54/image_08062026_15_55_05_59915.jpg MAIN: 2026-06-08 15:55:05,797 - INFO - duration: 1.0049021619997802 MAIN: 2026-06-08 15:55:05,797 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:56:04,828 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:56:04,926 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:56:05,502 - INFO - taking picture MAIN: 2026-06-08 15:56:05,502 - INFO - we take 566 photos in this while loop MAIN: 2026-06-08 15:56:05,502 - INFO - /home/pi/Desktop/images/08062026/15/55/image_08062026_15_56_04_59764.jpg MAIN: 2026-06-08 15:56:05,502 - INFO - duration: 0.9458320759949856 MAIN: 2026-06-08 15:56:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:57:04,655 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:57:04,983 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:57:05,339 - INFO - taking picture MAIN: 2026-06-08 15:57:05,339 - INFO - we take 567 photos in this while loop MAIN: 2026-06-08 15:57:05,339 - INFO - /home/pi/Desktop/images/08062026/15/56/image_08062026_15_57_04_59821.jpg MAIN: 2026-06-08 15:57:05,339 - INFO - duration: 0.9610866260045441 MAIN: 2026-06-08 15:57:05,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:58:04,713 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:58:05,102 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:58:05,377 - INFO - taking picture MAIN: 2026-06-08 15:58:05,377 - INFO - we take 568 photos in this while loop MAIN: 2026-06-08 15:58:05,378 - INFO - /home/pi/Desktop/images/08062026/15/57/image_08062026_15_58_04_60060.jpg MAIN: 2026-06-08 15:58:05,378 - INFO - duration: 0.9388700570052606 MAIN: 2026-06-08 15:58:05,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 15:59:04,708 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 15:59:04,772 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 15:59:05,406 - INFO - taking picture MAIN: 2026-06-08 15:59:05,406 - INFO - we take 569 photos in this while loop MAIN: 2026-06-08 15:59:05,407 - INFO - /home/pi/Desktop/images/08062026/15/58/image_08062026_15_59_04_60013.jpg MAIN: 2026-06-08 15:59:05,407 - INFO - duration: 0.9543459199994686 MAIN: 2026-06-08 15:59:05,407 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/15/59' MAIN: 2026-06-08 16:00:05,165 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:00:05,920 - INFO - taking picture MAIN: 2026-06-08 16:00:05,920 - INFO - we take 570 photos in this while loop MAIN: 2026-06-08 16:00:05,921 - INFO - /home/pi/Desktop/images/08062026/15/59/image_08062026_16_00_05_60450.jpg MAIN: 2026-06-08 16:00:05,921 - INFO - duration: 1.0179615870001726 MAIN: 2026-06-08 16:00:05,921 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/00' MAIN: 2026-06-08 16:00:06,430 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:01:04,652 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:01:05,533 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:01:06,188 - INFO - taking picture MAIN: 2026-06-08 16:01:06,188 - INFO - we take 571 photos in this while loop MAIN: 2026-06-08 16:01:06,188 - INFO - /home/pi/Desktop/images/08062026/16/00/image_08062026_16_01_05_60351.jpg MAIN: 2026-06-08 16:01:06,189 - INFO - duration: 0.9343565070012119 MAIN: 2026-06-08 16:01:06,189 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:02:05,021 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:02:05,352 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:02:06,009 - INFO - taking picture MAIN: 2026-06-08 16:02:06,009 - INFO - we take 572 photos in this while loop MAIN: 2026-06-08 16:02:06,009 - INFO - /home/pi/Desktop/images/08062026/16/01/image_08062026_16_02_05_59852.jpg MAIN: 2026-06-08 16:02:06,009 - INFO - duration: 0.9022056910034735 MAIN: 2026-06-08 16:02:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:03:04,857 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:03:05,081 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:03:05,789 - INFO - taking picture MAIN: 2026-06-08 16:03:05,789 - INFO - we take 573 photos in this while loop MAIN: 2026-06-08 16:03:05,789 - INFO - /home/pi/Desktop/images/08062026/16/02/image_08062026_16_03_05_59698.jpg MAIN: 2026-06-08 16:03:05,789 - INFO - duration: 0.983525217998249 MAIN: 2026-06-08 16:03:05,790 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:04:05,396 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:04:05,462 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:04:06,121 - INFO - taking picture MAIN: 2026-06-08 16:04:06,121 - INFO - we take 574 photos in this while loop MAIN: 2026-06-08 16:04:06,121 - INFO - /home/pi/Desktop/images/08062026/16/03/image_08062026_16_04_05_60373.jpg MAIN: 2026-06-08 16:04:06,121 - INFO - duration: 0.9423947160030366 MAIN: 2026-06-08 16:04:06,122 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:05:05,384 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:05:05,727 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:05:06,052 - INFO - taking picture MAIN: 2026-06-08 16:05:06,052 - INFO - we take 575 photos in this while loop MAIN: 2026-06-08 16:05:06,052 - INFO - /home/pi/Desktop/images/08062026/16/04/image_08062026_16_05_05_59978.jpg MAIN: 2026-06-08 16:05:06,052 - INFO - duration: 0.8951431969981059 MAIN: 2026-06-08 16:05:06,053 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:06:05,182 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:06:05,836 - INFO - taking picture MAIN: 2026-06-08 16:06:05,836 - INFO - we take 576 photos in this while loop MAIN: 2026-06-08 16:06:05,836 - INFO - /home/pi/Desktop/images/08062026/16/05/image_08062026_16_06_05_59773.jpg MAIN: 2026-06-08 16:06:05,836 - INFO - duration: 0.905284942004073 MAIN: 2026-06-08 16:06:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/06' MAIN: 2026-06-08 16:06:05,953 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:07:05,022 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:07:05,521 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:07:05,737 - INFO - taking picture MAIN: 2026-06-08 16:07:05,737 - INFO - we take 577 photos in this while loop MAIN: 2026-06-08 16:07:05,737 - INFO - /home/pi/Desktop/images/08062026/16/06/image_08062026_16_07_05_59818.jpg MAIN: 2026-06-08 16:07:05,738 - INFO - duration: 0.9884631120003178 MAIN: 2026-06-08 16:07:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:08:04,749 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:08:05,243 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:08:05,424 - INFO - taking picture MAIN: 2026-06-08 16:08:05,425 - INFO - we take 578 photos in this while loop MAIN: 2026-06-08 16:08:05,425 - INFO - /home/pi/Desktop/images/08062026/16/07/image_08062026_16_08_04_59727.jpg MAIN: 2026-06-08 16:08:05,425 - INFO - duration: 0.9487341130006826 MAIN: 2026-06-08 16:08:05,425 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:09:04,566 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:09:04,756 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:09:05,287 - INFO - taking picture MAIN: 2026-06-08 16:09:05,287 - INFO - we take 579 photos in this while loop MAIN: 2026-06-08 16:09:05,287 - INFO - /home/pi/Desktop/images/08062026/16/08/image_08062026_16_09_04_59822.jpg MAIN: 2026-06-08 16:09:05,287 - INFO - duration: 0.9881110950009315 MAIN: 2026-06-08 16:09:05,288 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/09' MAIN: 2026-06-08 16:10:04,601 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:10:05,298 - INFO - taking picture MAIN: 2026-06-08 16:10:05,298 - INFO - we take 580 photos in this while loop MAIN: 2026-06-08 16:10:05,298 - INFO - /home/pi/Desktop/images/08062026/16/09/image_08062026_16_10_04_60055.jpg MAIN: 2026-06-08 16:10:05,298 - INFO - duration: 0.9437708740006201 MAIN: 2026-06-08 16:10:05,299 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/10' MAIN: 2026-06-08 16:10:05,857 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:11:05,093 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:11:05,534 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:11:06,243 - INFO - taking picture MAIN: 2026-06-08 16:11:06,244 - INFO - we take 581 photos in this while loop MAIN: 2026-06-08 16:11:06,244 - INFO - /home/pi/Desktop/images/08062026/16/10/image_08062026_16_11_05_60939.jpg MAIN: 2026-06-08 16:11:06,244 - INFO - duration: 0.950196990997938 MAIN: 2026-06-08 16:11:06,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:12:05,406 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:12:05,521 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:12:06,082 - INFO - taking picture MAIN: 2026-06-08 16:12:06,082 - INFO - we take 582 photos in this while loop MAIN: 2026-06-08 16:12:06,082 - INFO - /home/pi/Desktop/images/08062026/16/11/image_08062026_16_12_05_59848.jpg MAIN: 2026-06-08 16:12:06,082 - INFO - duration: 0.9399066499972832 MAIN: 2026-06-08 16:12:06,082 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:13:05,374 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:13:05,488 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:13:06,034 - INFO - taking picture MAIN: 2026-06-08 16:13:06,034 - INFO - we take 583 photos in this while loop MAIN: 2026-06-08 16:13:06,034 - INFO - /home/pi/Desktop/images/08062026/16/12/image_08062026_16_13_05_59988.jpg MAIN: 2026-06-08 16:13:06,034 - INFO - duration: 0.9033780350000598 MAIN: 2026-06-08 16:13:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:14:05,482 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:14:05,695 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:14:06,201 - INFO - taking picture MAIN: 2026-06-08 16:14:06,201 - INFO - we take 584 photos in this while loop MAIN: 2026-06-08 16:14:06,202 - INFO - /home/pi/Desktop/images/08062026/16/13/image_08062026_16_14_05_60072.jpg MAIN: 2026-06-08 16:14:06,202 - INFO - duration: 0.9983598200051347 MAIN: 2026-06-08 16:14:06,202 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:15:04,565 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:15:04,821 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:15:05,248 - INFO - taking picture MAIN: 2026-06-08 16:15:05,248 - INFO - we take 585 photos in this while loop MAIN: 2026-06-08 16:15:05,248 - INFO - /home/pi/Desktop/images/08062026/16/14/image_08062026_16_15_04_59125.jpg MAIN: 2026-06-08 16:15:05,248 - INFO - duration: 0.9194693869940238 MAIN: 2026-06-08 16:15:05,248 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:16:04,595 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:16:05,119 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:16:05,256 - INFO - taking picture MAIN: 2026-06-08 16:16:05,256 - INFO - we take 586 photos in this while loop MAIN: 2026-06-08 16:16:05,256 - INFO - /home/pi/Desktop/images/08062026/16/15/image_08062026_16_16_04_60022.jpg MAIN: 2026-06-08 16:16:05,256 - INFO - duration: 0.9045491479992052 MAIN: 2026-06-08 16:16:05,256 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:17:04,785 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:17:04,923 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:17:05,443 - INFO - taking picture MAIN: 2026-06-08 16:17:05,444 - INFO - we take 587 photos in this while loop MAIN: 2026-06-08 16:17:05,444 - INFO - /home/pi/Desktop/images/08062026/16/16/image_08062026_16_17_04_60170.jpg MAIN: 2026-06-08 16:17:05,444 - INFO - duration: 0.921358125997358 MAIN: 2026-06-08 16:17:05,444 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:18:04,929 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:18:05,300 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:18:05,592 - INFO - taking picture MAIN: 2026-06-08 16:18:05,593 - INFO - we take 588 photos in this while loop MAIN: 2026-06-08 16:18:05,593 - INFO - /home/pi/Desktop/images/08062026/16/17/image_08062026_16_18_04_60158.jpg MAIN: 2026-06-08 16:18:05,593 - INFO - duration: 0.9123347319982713 MAIN: 2026-06-08 16:18:05,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:19:05,046 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:19:05,135 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:19:05,704 - INFO - taking picture MAIN: 2026-06-08 16:19:05,704 - INFO - we take 589 photos in this while loop MAIN: 2026-06-08 16:19:05,705 - INFO - /home/pi/Desktop/images/08062026/16/18/image_08062026_16_19_05_60095.jpg MAIN: 2026-06-08 16:19:05,705 - INFO - duration: 0.9289083080002456 MAIN: 2026-06-08 16:19:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:20:05,355 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:20:05,529 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:20:06,018 - INFO - taking picture MAIN: 2026-06-08 16:20:06,019 - INFO - we take 590 photos in this while loop MAIN: 2026-06-08 16:20:06,019 - INFO - /home/pi/Desktop/images/08062026/16/19/image_08062026_16_20_05_60357.jpg MAIN: 2026-06-08 16:20:06,019 - INFO - duration: 0.8853036769942264 MAIN: 2026-06-08 16:20:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:21:05,237 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:21:05,418 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:21:06,071 - INFO - taking picture MAIN: 2026-06-08 16:21:06,071 - INFO - we take 591 photos in this while loop MAIN: 2026-06-08 16:21:06,071 - INFO - /home/pi/Desktop/images/08062026/16/20/image_08062026_16_21_05_59996.jpg MAIN: 2026-06-08 16:21:06,071 - INFO - duration: 0.9411549189971993 MAIN: 2026-06-08 16:21:06,071 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:22:05,557 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:22:05,815 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:22:06,231 - INFO - taking picture MAIN: 2026-06-08 16:22:06,231 - INFO - we take 592 photos in this while loop MAIN: 2026-06-08 16:22:06,231 - INFO - /home/pi/Desktop/images/08062026/16/21/image_08062026_16_22_05_60156.jpg MAIN: 2026-06-08 16:22:06,231 - INFO - duration: 0.9453934150005807 MAIN: 2026-06-08 16:22:06,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:23:04,651 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:23:04,717 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:23:05,315 - INFO - taking picture MAIN: 2026-06-08 16:23:05,315 - INFO - we take 593 photos in this while loop MAIN: 2026-06-08 16:23:05,315 - INFO - /home/pi/Desktop/images/08062026/16/22/image_08062026_16_23_04_59107.jpg MAIN: 2026-06-08 16:23:05,315 - INFO - duration: 0.9218055390010704 MAIN: 2026-06-08 16:23:05,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:24:04,872 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:24:05,043 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:24:05,539 - INFO - taking picture MAIN: 2026-06-08 16:24:05,539 - INFO - we take 594 photos in this while loop MAIN: 2026-06-08 16:24:05,540 - INFO - /home/pi/Desktop/images/08062026/16/23/image_08062026_16_24_04_60214.jpg MAIN: 2026-06-08 16:24:05,540 - INFO - duration: 0.9320378929987783 MAIN: 2026-06-08 16:24:05,540 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:25:05,058 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:25:05,247 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:25:05,722 - INFO - taking picture MAIN: 2026-06-08 16:25:05,722 - INFO - we take 595 photos in this while loop MAIN: 2026-06-08 16:25:05,722 - INFO - /home/pi/Desktop/images/08062026/16/24/image_08062026_16_25_05_60230.jpg MAIN: 2026-06-08 16:25:05,722 - INFO - duration: 0.8846127729993896 MAIN: 2026-06-08 16:25:05,723 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:26:05,296 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:26:05,349 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:26:05,978 - INFO - taking picture MAIN: 2026-06-08 16:26:05,978 - INFO - we take 596 photos in this while loop MAIN: 2026-06-08 16:26:05,978 - INFO - /home/pi/Desktop/images/08062026/16/25/image_08062026_16_26_05_60177.jpg MAIN: 2026-06-08 16:26:05,978 - INFO - duration: 0.9632779160019709 MAIN: 2026-06-08 16:26:05,979 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:27:05,335 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:27:05,455 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:27:05,999 - INFO - taking picture MAIN: 2026-06-08 16:27:05,999 - INFO - we take 597 photos in this while loop MAIN: 2026-06-08 16:27:05,999 - INFO - /home/pi/Desktop/images/08062026/16/26/image_08062026_16_27_05_60051.jpg MAIN: 2026-06-08 16:27:05,999 - INFO - duration: 0.9327162019981188 MAIN: 2026-06-08 16:27:06,000 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:28:05,428 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:28:05,840 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:28:06,128 - INFO - taking picture MAIN: 2026-06-08 16:28:06,128 - INFO - we take 598 photos in this while loop MAIN: 2026-06-08 16:28:06,128 - INFO - /home/pi/Desktop/images/08062026/16/27/image_08062026_16_28_05_60107.jpg MAIN: 2026-06-08 16:28:06,129 - INFO - duration: 0.9550465190040995 MAIN: 2026-06-08 16:28:06,129 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:29:05,410 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:29:05,511 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:29:06,219 - INFO - taking picture MAIN: 2026-06-08 16:29:06,220 - INFO - we take 599 photos in this while loop MAIN: 2026-06-08 16:29:06,220 - INFO - /home/pi/Desktop/images/08062026/16/28/image_08062026_16_29_05_60033.jpg MAIN: 2026-06-08 16:29:06,220 - INFO - duration: 1.012767389001965 MAIN: 2026-06-08 16:29:06,220 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:30:04,570 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:30:05,319 - INFO - taking picture MAIN: 2026-06-08 16:30:05,319 - INFO - we take 600 photos in this while loop MAIN: 2026-06-08 16:30:05,319 - INFO - /home/pi/Desktop/images/08062026/16/29/image_08062026_16_30_04_59095.jpg MAIN: 2026-06-08 16:30:05,320 - INFO - duration: 1.0173409080016427 MAIN: 2026-06-08 16:30:05,320 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/30' MAIN: 2026-06-08 16:30:05,364 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:31:04,493 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:31:04,799 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:31:05,160 - INFO - taking picture MAIN: 2026-06-08 16:31:05,160 - INFO - we take 601 photos in this while loop MAIN: 2026-06-08 16:31:05,160 - INFO - /home/pi/Desktop/images/08062026/16/30/image_08062026_16_31_04_59926.jpg MAIN: 2026-06-08 16:31:05,161 - INFO - duration: 0.9316972250016988 MAIN: 2026-06-08 16:31:05,161 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:32:05,466 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:32:05,467 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:32:06,150 - INFO - taking picture MAIN: 2026-06-08 16:32:06,150 - INFO - we take 602 photos in this while loop MAIN: 2026-06-08 16:32:06,150 - INFO - /home/pi/Desktop/images/08062026/16/31/image_08062026_16_32_05_60949.jpg MAIN: 2026-06-08 16:32:06,150 - INFO - duration: 0.9718676439952105 MAIN: 2026-06-08 16:32:06,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:33:05,216 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:33:05,340 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:33:05,996 - INFO - taking picture MAIN: 2026-06-08 16:33:05,997 - INFO - we take 603 photos in this while loop MAIN: 2026-06-08 16:33:05,997 - INFO - /home/pi/Desktop/images/08062026/16/32/image_08062026_16_33_05_59868.jpg MAIN: 2026-06-08 16:33:05,997 - INFO - duration: 0.9498434529959923 MAIN: 2026-06-08 16:33:05,997 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:34:04,945 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:34:05,373 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:34:05,612 - INFO - taking picture MAIN: 2026-06-08 16:34:05,612 - INFO - we take 604 photos in this while loop MAIN: 2026-06-08 16:34:05,612 - INFO - /home/pi/Desktop/images/08062026/16/33/image_08062026_16_34_04_59648.jpg MAIN: 2026-06-08 16:34:05,612 - INFO - duration: 0.916710770005011 MAIN: 2026-06-08 16:34:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:35:05,259 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:35:05,612 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:35:05,958 - INFO - taking picture MAIN: 2026-06-08 16:35:05,958 - INFO - we take 605 photos in this while loop MAIN: 2026-06-08 16:35:05,958 - INFO - /home/pi/Desktop/images/08062026/16/34/image_08062026_16_35_05_60338.jpg MAIN: 2026-06-08 16:35:05,959 - INFO - duration: 0.9245449779991759 MAIN: 2026-06-08 16:35:05,959 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:36:05,151 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:36:05,562 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:36:06,222 - INFO - taking picture MAIN: 2026-06-08 16:36:06,222 - INFO - we take 606 photos in this while loop MAIN: 2026-06-08 16:36:06,222 - INFO - /home/pi/Desktop/images/08062026/16/35/image_08062026_16_36_05_60310.jpg MAIN: 2026-06-08 16:36:06,223 - INFO - duration: 0.8780168840021361 MAIN: 2026-06-08 16:36:06,223 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:37:04,593 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:37:04,928 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:37:05,259 - INFO - taking picture MAIN: 2026-06-08 16:37:05,260 - INFO - we take 607 photos in this while loop MAIN: 2026-06-08 16:37:05,260 - INFO - /home/pi/Desktop/images/08062026/16/36/image_08062026_16_37_04_58979.jpg MAIN: 2026-06-08 16:37:05,260 - INFO - duration: 0.9355658400018001 MAIN: 2026-06-08 16:37:05,260 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:38:04,815 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:38:05,472 - INFO - taking picture MAIN: 2026-06-08 16:38:05,472 - INFO - we take 608 photos in this while loop MAIN: 2026-06-08 16:38:05,472 - INFO - /home/pi/Desktop/images/08062026/16/37/image_08062026_16_38_04_60250.jpg MAIN: 2026-06-08 16:38:05,473 - INFO - duration: 0.8981177040041075 MAIN: 2026-06-08 16:38:05,473 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/38' MAIN: 2026-06-08 16:38:05,511 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:39:05,047 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:39:05,206 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:39:05,710 - INFO - taking picture MAIN: 2026-06-08 16:39:05,710 - INFO - we take 609 photos in this while loop MAIN: 2026-06-08 16:39:05,710 - INFO - /home/pi/Desktop/images/08062026/16/38/image_08062026_16_39_05_60200.jpg MAIN: 2026-06-08 16:39:05,710 - INFO - duration: 0.9347425509986351 MAIN: 2026-06-08 16:39:05,710 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:40:05,379 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:40:05,863 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:40:06,101 - INFO - taking picture MAIN: 2026-06-08 16:40:06,101 - INFO - we take 610 photos in this while loop MAIN: 2026-06-08 16:40:06,102 - INFO - /home/pi/Desktop/images/08062026/16/39/image_08062026_16_40_05_60359.jpg MAIN: 2026-06-08 16:40:06,102 - INFO - duration: 0.9670209329997306 MAIN: 2026-06-08 16:40:06,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:41:04,836 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:41:05,531 - INFO - taking picture MAIN: 2026-06-08 16:41:05,531 - INFO - we take 611 photos in this while loop MAIN: 2026-06-08 16:41:05,531 - INFO - /home/pi/Desktop/images/08062026/16/40/image_08062026_16_41_04_59486.jpg MAIN: 2026-06-08 16:41:05,531 - INFO - duration: 0.910026220997679 MAIN: 2026-06-08 16:41:05,531 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/41' MAIN: 2026-06-08 16:41:05,594 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:42:04,616 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:42:04,997 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:42:05,286 - INFO - taking picture MAIN: 2026-06-08 16:42:05,286 - INFO - we take 612 photos in this while loop MAIN: 2026-06-08 16:42:05,286 - INFO - /home/pi/Desktop/images/08062026/16/41/image_08062026_16_42_04_59726.jpg MAIN: 2026-06-08 16:42:05,286 - INFO - duration: 0.9390427539983648 MAIN: 2026-06-08 16:42:05,287 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:43:04,867 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:43:05,684 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:43:06,389 - INFO - taking picture MAIN: 2026-06-08 16:43:06,389 - INFO - we take 613 photos in this while loop MAIN: 2026-06-08 16:43:06,390 - INFO - /home/pi/Desktop/images/08062026/16/42/image_08062026_16_43_05_61048.jpg MAIN: 2026-06-08 16:43:06,390 - INFO - duration: 0.9942304240030353 MAIN: 2026-06-08 16:43:06,390 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:44:04,652 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:44:05,276 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:44:05,351 - INFO - taking picture MAIN: 2026-06-08 16:44:05,351 - INFO - we take 614 photos in this while loop MAIN: 2026-06-08 16:44:05,352 - INFO - /home/pi/Desktop/images/08062026/16/43/image_08062026_16_44_04_58991.jpg MAIN: 2026-06-08 16:44:05,353 - INFO - duration: 0.9659220199973788 MAIN: 2026-06-08 16:44:05,353 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:45:04,680 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:45:05,370 - INFO - taking picture MAIN: 2026-06-08 16:45:05,371 - INFO - we take 615 photos in this while loop MAIN: 2026-06-08 16:45:05,371 - INFO - /home/pi/Desktop/images/08062026/16/44/image_08062026_16_45_04_60052.jpg MAIN: 2026-06-08 16:45:05,371 - INFO - duration: 0.9313724769963301 MAIN: 2026-06-08 16:45:05,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/45' MAIN: 2026-06-08 16:45:05,623 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:46:05,024 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:46:05,669 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:46:05,693 - INFO - taking picture MAIN: 2026-06-08 16:46:05,693 - INFO - we take 616 photos in this while loop MAIN: 2026-06-08 16:46:05,693 - INFO - /home/pi/Desktop/images/08062026/16/45/image_08062026_16_46_05_60306.jpg MAIN: 2026-06-08 16:46:05,693 - INFO - duration: 0.9475091440035612 MAIN: 2026-06-08 16:46:05,694 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:47:04,877 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:47:05,547 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:47:05,609 - INFO - taking picture MAIN: 2026-06-08 16:47:05,609 - INFO - we take 617 photos in this while loop MAIN: 2026-06-08 16:47:05,609 - INFO - /home/pi/Desktop/images/08062026/16/46/image_08062026_16_47_04_59888.jpg MAIN: 2026-06-08 16:47:05,610 - INFO - duration: 0.9754944309970597 MAIN: 2026-06-08 16:47:05,610 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:48:04,843 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:48:05,082 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:48:05,549 - INFO - taking picture MAIN: 2026-06-08 16:48:05,549 - INFO - we take 618 photos in this while loop MAIN: 2026-06-08 16:48:05,549 - INFO - /home/pi/Desktop/images/08062026/16/47/image_08062026_16_48_04_59950.jpg MAIN: 2026-06-08 16:48:05,549 - INFO - duration: 0.9648591060031322 MAIN: 2026-06-08 16:48:05,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:49:04,670 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:49:05,071 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:49:05,334 - INFO - taking picture MAIN: 2026-06-08 16:49:05,335 - INFO - we take 619 photos in this while loop MAIN: 2026-06-08 16:49:05,335 - INFO - /home/pi/Desktop/images/08062026/16/48/image_08062026_16_49_04_59834.jpg MAIN: 2026-06-08 16:49:05,335 - INFO - duration: 0.9158675669968943 MAIN: 2026-06-08 16:49:05,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:50:04,935 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:50:05,635 - INFO - taking picture MAIN: 2026-06-08 16:50:05,635 - INFO - we take 620 photos in this while loop MAIN: 2026-06-08 16:50:05,635 - INFO - /home/pi/Desktop/images/08062026/16/49/image_08062026_16_50_04_60287.jpg MAIN: 2026-06-08 16:50:05,635 - INFO - duration: 0.9288818709974294 MAIN: 2026-06-08 16:50:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/50' MAIN: 2026-06-08 16:50:05,788 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:51:05,021 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:51:05,509 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:51:05,693 - INFO - taking picture MAIN: 2026-06-08 16:51:05,693 - INFO - we take 621 photos in this while loop MAIN: 2026-06-08 16:51:05,694 - INFO - /home/pi/Desktop/images/08062026/16/50/image_08062026_16_51_05_60047.jpg MAIN: 2026-06-08 16:51:05,694 - INFO - duration: 0.94017746100144 MAIN: 2026-06-08 16:51:05,694 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:52:05,259 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:52:05,799 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:52:05,926 - INFO - taking picture MAIN: 2026-06-08 16:52:05,926 - INFO - we take 622 photos in this while loop MAIN: 2026-06-08 16:52:05,926 - INFO - /home/pi/Desktop/images/08062026/16/51/image_08062026_16_52_05_60249.jpg MAIN: 2026-06-08 16:52:05,927 - INFO - duration: 0.9237395119998837 MAIN: 2026-06-08 16:52:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:53:04,488 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:53:04,893 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:53:05,189 - INFO - taking picture MAIN: 2026-06-08 16:53:05,189 - INFO - we take 623 photos in this while loop MAIN: 2026-06-08 16:53:05,189 - INFO - /home/pi/Desktop/images/08062026/16/52/image_08062026_16_53_04_59198.jpg MAIN: 2026-06-08 16:53:05,190 - INFO - duration: 0.988698025001213 MAIN: 2026-06-08 16:53:05,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:54:05,315 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:54:05,532 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:54:06,189 - INFO - taking picture MAIN: 2026-06-08 16:54:06,189 - INFO - we take 624 photos in this while loop MAIN: 2026-06-08 16:54:06,189 - INFO - /home/pi/Desktop/images/08062026/16/53/image_08062026_16_54_05_61066.jpg MAIN: 2026-06-08 16:54:06,189 - INFO - duration: 0.9219379770001979 MAIN: 2026-06-08 16:54:06,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:55:05,136 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:55:05,355 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:55:05,811 - INFO - taking picture MAIN: 2026-06-08 16:55:05,811 - INFO - we take 625 photos in this while loop MAIN: 2026-06-08 16:55:05,811 - INFO - /home/pi/Desktop/images/08062026/16/54/image_08062026_16_55_05_59638.jpg MAIN: 2026-06-08 16:55:05,811 - INFO - duration: 0.9053080900048371 MAIN: 2026-06-08 16:55:05,811 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:56:04,785 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:56:05,404 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:56:05,449 - INFO - taking picture MAIN: 2026-06-08 16:56:05,449 - INFO - we take 626 photos in this while loop MAIN: 2026-06-08 16:56:05,450 - INFO - /home/pi/Desktop/images/08062026/16/55/image_08062026_16_56_04_59617.jpg MAIN: 2026-06-08 16:56:05,450 - INFO - duration: 0.9262063020069036 MAIN: 2026-06-08 16:56:05,450 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:57:04,735 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:57:05,405 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:57:05,455 - INFO - taking picture MAIN: 2026-06-08 16:57:05,456 - INFO - we take 627 photos in this while loop MAIN: 2026-06-08 16:57:05,456 - INFO - /home/pi/Desktop/images/08062026/16/56/image_08062026_16_57_04_59942.jpg MAIN: 2026-06-08 16:57:05,456 - INFO - duration: 0.9899953569984064 MAIN: 2026-06-08 16:57:05,456 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:58:04,840 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:58:04,909 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:58:05,505 - INFO - taking picture MAIN: 2026-06-08 16:58:05,506 - INFO - we take 628 photos in this while loop MAIN: 2026-06-08 16:58:05,506 - INFO - /home/pi/Desktop/images/08062026/16/57/image_08062026_16_58_04_60102.jpg MAIN: 2026-06-08 16:58:05,506 - INFO - duration: 0.9375201889997697 MAIN: 2026-06-08 16:58:05,506 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 16:59:04,768 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 16:59:05,025 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 16:59:05,682 - INFO - taking picture MAIN: 2026-06-08 16:59:05,683 - INFO - we take 629 photos in this while loop MAIN: 2026-06-08 16:59:05,683 - INFO - /home/pi/Desktop/images/08062026/16/58/image_08062026_16_59_05_60183.jpg MAIN: 2026-06-08 16:59:05,683 - INFO - duration: 0.9314850090013351 MAIN: 2026-06-08 16:59:05,683 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/16/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:00:05,191 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:00:05,405 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:00:05,924 - INFO - taking picture MAIN: 2026-06-08 17:00:05,924 - INFO - we take 630 photos in this while loop MAIN: 2026-06-08 17:00:05,925 - INFO - /home/pi/Desktop/images/08062026/16/59/image_08062026_17_00_05_60180.jpg MAIN: 2026-06-08 17:00:05,925 - INFO - duration: 0.9929836150040501 MAIN: 2026-06-08 17:00:05,925 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:01:05,155 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:01:05,555 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:01:06,211 - INFO - taking picture MAIN: 2026-06-08 17:01:06,211 - INFO - we take 631 photos in this while loop MAIN: 2026-06-08 17:01:06,211 - INFO - /home/pi/Desktop/images/08062026/17/00/image_08062026_17_01_05_60397.jpg MAIN: 2026-06-08 17:01:06,211 - INFO - duration: 0.8821964980015764 MAIN: 2026-06-08 17:01:06,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:02:05,566 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:02:05,666 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:02:06,243 - INFO - taking picture MAIN: 2026-06-08 17:02:06,243 - INFO - we take 632 photos in this while loop MAIN: 2026-06-08 17:02:06,243 - INFO - /home/pi/Desktop/images/08062026/17/01/image_08062026_17_02_05_59979.jpg MAIN: 2026-06-08 17:02:06,244 - INFO - duration: 0.934907695002039 MAIN: 2026-06-08 17:02:06,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:03:04,677 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:03:05,581 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:03:06,239 - INFO - taking picture MAIN: 2026-06-08 17:03:06,239 - INFO - we take 633 photos in this while loop MAIN: 2026-06-08 17:03:06,239 - INFO - /home/pi/Desktop/images/08062026/17/02/image_08062026_17_03_05_60010.jpg MAIN: 2026-06-08 17:03:06,239 - INFO - duration: 0.9198600620002253 MAIN: 2026-06-08 17:03:06,239 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:04:05,190 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:04:05,435 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:04:06,145 - INFO - taking picture MAIN: 2026-06-08 17:04:06,145 - INFO - we take 634 photos in this while loop MAIN: 2026-06-08 17:04:06,146 - INFO - /home/pi/Desktop/images/08062026/17/03/image_08062026_17_04_05_59820.jpg MAIN: 2026-06-08 17:04:06,146 - INFO - duration: 1.00574487799895 MAIN: 2026-06-08 17:04:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:05:05,228 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:05:05,478 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:05:05,926 - INFO - taking picture MAIN: 2026-06-08 17:05:05,927 - INFO - we take 635 photos in this while loop MAIN: 2026-06-08 17:05:05,927 - INFO - /home/pi/Desktop/images/08062026/17/04/image_08062026_17_05_05_59872.jpg MAIN: 2026-06-08 17:05:05,927 - INFO - duration: 0.9141632300015772 MAIN: 2026-06-08 17:05:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:06:05,124 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:06:05,417 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:06:05,847 - INFO - taking picture MAIN: 2026-06-08 17:06:05,848 - INFO - we take 636 photos in this while loop MAIN: 2026-06-08 17:06:05,848 - INFO - /home/pi/Desktop/images/08062026/17/05/image_08062026_17_06_05_59822.jpg MAIN: 2026-06-08 17:06:05,848 - INFO - duration: 1.0128118740030914 MAIN: 2026-06-08 17:06:05,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:07:05,156 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:07:05,358 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:07:06,016 - INFO - taking picture MAIN: 2026-06-08 17:07:06,016 - INFO - we take 637 photos in this while loop MAIN: 2026-06-08 17:07:06,016 - INFO - /home/pi/Desktop/images/08062026/17/06/image_08062026_17_07_05_60234.jpg MAIN: 2026-06-08 17:07:06,016 - INFO - duration: 0.9473160630004713 MAIN: 2026-06-08 17:07:06,017 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:08:05,150 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:08:05,688 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:08:05,813 - INFO - taking picture MAIN: 2026-06-08 17:08:05,814 - INFO - we take 638 photos in this while loop MAIN: 2026-06-08 17:08:05,814 - INFO - /home/pi/Desktop/images/08062026/17/07/image_08062026_17_08_05_59818.jpg MAIN: 2026-06-08 17:08:05,814 - INFO - duration: 0.9258348130024388 MAIN: 2026-06-08 17:08:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:09:05,056 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:09:05,719 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:09:05,762 - INFO - taking picture MAIN: 2026-06-08 17:09:05,763 - INFO - we take 639 photos in this while loop MAIN: 2026-06-08 17:09:05,763 - INFO - /home/pi/Desktop/images/08062026/17/08/image_08062026_17_09_05_59892.jpg MAIN: 2026-06-08 17:09:05,763 - INFO - duration: 0.9827257240031031 MAIN: 2026-06-08 17:09:05,764 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:10:05,381 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:10:05,419 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:10:06,127 - INFO - taking picture MAIN: 2026-06-08 17:10:06,127 - INFO - we take 640 photos in this while loop MAIN: 2026-06-08 17:10:06,128 - INFO - /home/pi/Desktop/images/08062026/17/09/image_08062026_17_10_05_60418.jpg MAIN: 2026-06-08 17:10:06,128 - INFO - duration: 0.9285600770017481 MAIN: 2026-06-08 17:10:06,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:11:04,867 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:11:05,657 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:11:06,359 - INFO - taking picture MAIN: 2026-06-08 17:11:06,360 - INFO - we take 641 photos in this while loop MAIN: 2026-06-08 17:11:06,360 - INFO - /home/pi/Desktop/images/08062026/17/10/image_08062026_17_11_05_60202.jpg MAIN: 2026-06-08 17:11:06,360 - INFO - duration: 0.9576789009952336 MAIN: 2026-06-08 17:11:06,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:12:05,093 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:12:05,133 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:12:05,792 - INFO - taking picture MAIN: 2026-06-08 17:12:05,793 - INFO - we take 642 photos in this while loop MAIN: 2026-06-08 17:12:05,793 - INFO - /home/pi/Desktop/images/08062026/17/11/image_08062026_17_12_05_59448.jpg MAIN: 2026-06-08 17:12:05,793 - INFO - duration: 0.9421372500000871 MAIN: 2026-06-08 17:12:05,793 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:13:05,379 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:13:05,455 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:13:06,083 - INFO - taking picture MAIN: 2026-06-08 17:13:06,084 - INFO - we take 643 photos in this while loop MAIN: 2026-06-08 17:13:06,084 - INFO - /home/pi/Desktop/images/08062026/17/12/image_08062026_17_13_05_60243.jpg MAIN: 2026-06-08 17:13:06,084 - INFO - duration: 0.9897977389991865 MAIN: 2026-06-08 17:13:06,084 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:14:05,616 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:14:05,871 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:14:06,297 - INFO - taking picture MAIN: 2026-06-08 17:14:06,297 - INFO - we take 644 photos in this while loop MAIN: 2026-06-08 17:14:06,297 - INFO - /home/pi/Desktop/images/08062026/17/13/image_08062026_17_14_05_60254.jpg MAIN: 2026-06-08 17:14:06,297 - INFO - duration: 0.9487493819979136 MAIN: 2026-06-08 17:14:06,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:15:04,692 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:15:04,796 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:15:05,353 - INFO - taking picture MAIN: 2026-06-08 17:15:05,354 - INFO - we take 645 photos in this while loop MAIN: 2026-06-08 17:15:05,354 - INFO - /home/pi/Desktop/images/08062026/17/14/image_08062026_17_15_04_59104.jpg MAIN: 2026-06-08 17:15:05,354 - INFO - duration: 0.9013401210031589 MAIN: 2026-06-08 17:15:05,354 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:16:04,650 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:16:05,257 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:16:05,307 - INFO - taking picture MAIN: 2026-06-08 17:16:05,308 - INFO - we take 646 photos in this while loop MAIN: 2026-06-08 17:16:05,308 - INFO - /home/pi/Desktop/images/08062026/17/15/image_08062026_17_16_04_59949.jpg MAIN: 2026-06-08 17:16:05,308 - INFO - duration: 0.9055539179971674 MAIN: 2026-06-08 17:16:05,308 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:17:04,696 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:17:05,019 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:17:05,368 - INFO - taking picture MAIN: 2026-06-08 17:17:05,369 - INFO - we take 647 photos in this while loop MAIN: 2026-06-08 17:17:05,369 - INFO - /home/pi/Desktop/images/08062026/17/16/image_08062026_17_17_04_60017.jpg MAIN: 2026-06-08 17:17:05,369 - INFO - duration: 0.9491335499988054 MAIN: 2026-06-08 17:17:05,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:18:04,798 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:18:05,377 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:18:05,477 - INFO - taking picture MAIN: 2026-06-08 17:18:05,477 - INFO - we take 648 photos in this while loop MAIN: 2026-06-08 17:18:05,477 - INFO - /home/pi/Desktop/images/08062026/17/17/image_08062026_17_18_04_60101.jpg MAIN: 2026-06-08 17:18:05,478 - INFO - duration: 0.9565926410068641 MAIN: 2026-06-08 17:18:05,478 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:19:04,866 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:19:05,248 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:19:05,542 - INFO - taking picture MAIN: 2026-06-08 17:19:05,542 - INFO - we take 649 photos in this while loop MAIN: 2026-06-08 17:19:05,542 - INFO - /home/pi/Desktop/images/08062026/17/18/image_08062026_17_19_04_60105.jpg MAIN: 2026-06-08 17:19:05,542 - INFO - duration: 0.9158955570019316 MAIN: 2026-06-08 17:19:05,543 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:20:05,467 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:20:05,964 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:20:06,185 - INFO - taking picture MAIN: 2026-06-08 17:20:06,185 - INFO - we take 650 photos in this while loop MAIN: 2026-06-08 17:20:06,185 - INFO - /home/pi/Desktop/images/08062026/17/19/image_08062026_17_20_05_60575.jpg MAIN: 2026-06-08 17:20:06,185 - INFO - duration: 0.9829354079993209 MAIN: 2026-06-08 17:20:06,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:21:05,421 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:21:05,598 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:21:06,300 - INFO - taking picture MAIN: 2026-06-08 17:21:06,301 - INFO - we take 651 photos in this while loop MAIN: 2026-06-08 17:21:06,301 - INFO - /home/pi/Desktop/images/08062026/17/20/image_08062026_17_21_05_60110.jpg MAIN: 2026-06-08 17:21:06,301 - INFO - duration: 0.9884583399980329 MAIN: 2026-06-08 17:21:06,301 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:22:04,576 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:22:04,980 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:22:05,239 - INFO - taking picture MAIN: 2026-06-08 17:22:05,239 - INFO - we take 652 photos in this while loop MAIN: 2026-06-08 17:22:05,239 - INFO - /home/pi/Desktop/images/08062026/17/21/image_08062026_17_22_04_58999.jpg MAIN: 2026-06-08 17:22:05,239 - INFO - duration: 0.9273274209990632 MAIN: 2026-06-08 17:22:05,240 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:23:04,552 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:23:04,977 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:23:05,218 - INFO - taking picture MAIN: 2026-06-08 17:23:05,219 - INFO - we take 653 photos in this while loop MAIN: 2026-06-08 17:23:05,219 - INFO - /home/pi/Desktop/images/08062026/17/22/image_08062026_17_23_04_59956.jpg MAIN: 2026-06-08 17:23:05,219 - INFO - duration: 0.9499524909988395 MAIN: 2026-06-08 17:23:05,219 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:24:04,698 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:24:05,083 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:24:05,379 - INFO - taking picture MAIN: 2026-06-08 17:24:05,379 - INFO - we take 654 photos in this while loop MAIN: 2026-06-08 17:24:05,379 - INFO - /home/pi/Desktop/images/08062026/17/23/image_08062026_17_24_04_60177.jpg MAIN: 2026-06-08 17:24:05,379 - INFO - duration: 0.9326278939988697 MAIN: 2026-06-08 17:24:05,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:25:04,871 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:25:05,486 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:25:05,550 - INFO - taking picture MAIN: 2026-06-08 17:25:05,550 - INFO - we take 655 photos in this while loop MAIN: 2026-06-08 17:25:05,551 - INFO - /home/pi/Desktop/images/08062026/17/24/image_08062026_17_25_04_60181.jpg MAIN: 2026-06-08 17:25:05,551 - INFO - duration: 0.9226166560038109 MAIN: 2026-06-08 17:25:05,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:26:04,815 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:26:05,469 - INFO - taking picture MAIN: 2026-06-08 17:26:05,469 - INFO - we take 656 photos in this while loop MAIN: 2026-06-08 17:26:05,470 - INFO - /home/pi/Desktop/images/08062026/17/25/image_08062026_17_26_04_59927.jpg MAIN: 2026-06-08 17:26:05,470 - INFO - duration: 0.9144286980008474 MAIN: 2026-06-08 17:26:05,470 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/26' MAIN: 2026-06-08 17:26:05,589 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:27:04,718 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:27:05,404 - INFO - taking picture MAIN: 2026-06-08 17:27:05,404 - INFO - we take 657 photos in this while loop MAIN: 2026-06-08 17:27:05,405 - INFO - /home/pi/Desktop/images/08062026/17/26/image_08062026_17_27_04_59938.jpg MAIN: 2026-06-08 17:27:05,405 - INFO - duration: 0.9111731439988944 MAIN: 2026-06-08 17:27:05,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/27' MAIN: 2026-06-08 17:27:05,457 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:28:04,608 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:28:05,024 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:28:05,306 - INFO - taking picture MAIN: 2026-06-08 17:28:05,306 - INFO - we take 658 photos in this while loop MAIN: 2026-06-08 17:28:05,306 - INFO - /home/pi/Desktop/images/08062026/17/27/image_08062026_17_28_04_59900.jpg MAIN: 2026-06-08 17:28:05,306 - INFO - duration: 0.9119907109998167 MAIN: 2026-06-08 17:28:05,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:29:04,684 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:29:05,615 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:29:06,320 - INFO - taking picture MAIN: 2026-06-08 17:29:06,320 - INFO - we take 659 photos in this while loop MAIN: 2026-06-08 17:29:06,320 - INFO - /home/pi/Desktop/images/08062026/17/28/image_08062026_17_29_05_60932.jpg MAIN: 2026-06-08 17:29:06,320 - INFO - duration: 0.993346326999017 MAIN: 2026-06-08 17:29:06,321 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:30:05,187 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:30:05,551 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:30:06,248 - INFO - taking picture MAIN: 2026-06-08 17:30:06,248 - INFO - we take 660 photos in this while loop MAIN: 2026-06-08 17:30:06,248 - INFO - /home/pi/Desktop/images/08062026/17/29/image_08062026_17_30_05_60007.jpg MAIN: 2026-06-08 17:30:06,248 - INFO - duration: 0.9131136139985756 MAIN: 2026-06-08 17:30:06,248 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:31:04,834 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:31:05,430 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:31:06,138 - INFO - taking picture MAIN: 2026-06-08 17:31:06,139 - INFO - we take 661 photos in this while loop MAIN: 2026-06-08 17:31:06,139 - INFO - /home/pi/Desktop/images/08062026/17/30/image_08062026_17_31_05_59856.jpg MAIN: 2026-06-08 17:31:06,139 - INFO - duration: 0.9471417289969395 MAIN: 2026-06-08 17:31:06,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:32:04,658 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:32:05,316 - INFO - taking picture MAIN: 2026-06-08 17:32:05,316 - INFO - we take 662 photos in this while loop MAIN: 2026-06-08 17:32:05,317 - INFO - /home/pi/Desktop/images/08062026/17/31/image_08062026_17_32_04_59212.jpg MAIN: 2026-06-08 17:32:05,317 - INFO - duration: 0.9126698390027741 MAIN: 2026-06-08 17:32:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/32' MAIN: 2026-06-08 17:32:05,359 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:33:05,446 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:33:05,487 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:33:06,149 - INFO - taking picture MAIN: 2026-06-08 17:33:06,149 - INFO - we take 663 photos in this while loop MAIN: 2026-06-08 17:33:06,149 - INFO - /home/pi/Desktop/images/08062026/17/32/image_08062026_17_33_05_60822.jpg MAIN: 2026-06-08 17:33:06,149 - INFO - duration: 0.9224237670059665 MAIN: 2026-06-08 17:33:06,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:34:05,284 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:34:05,708 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:34:05,958 - INFO - taking picture MAIN: 2026-06-08 17:34:05,958 - INFO - we take 664 photos in this while loop MAIN: 2026-06-08 17:34:05,958 - INFO - /home/pi/Desktop/images/08062026/17/33/image_08062026_17_34_05_59768.jpg MAIN: 2026-06-08 17:34:05,958 - INFO - duration: 0.962733049003873 MAIN: 2026-06-08 17:34:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:35:05,188 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:35:05,842 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:35:05,870 - INFO - taking picture MAIN: 2026-06-08 17:35:05,871 - INFO - we take 665 photos in this while loop MAIN: 2026-06-08 17:35:05,871 - INFO - /home/pi/Desktop/images/08062026/17/34/image_08062026_17_35_05_59963.jpg MAIN: 2026-06-08 17:35:05,872 - INFO - duration: 0.913009662006516 MAIN: 2026-06-08 17:35:05,872 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:36:04,937 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:36:05,019 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:36:05,651 - INFO - taking picture MAIN: 2026-06-08 17:36:05,651 - INFO - we take 666 photos in this while loop MAIN: 2026-06-08 17:36:05,651 - INFO - /home/pi/Desktop/images/08062026/17/35/image_08062026_17_36_04_59712.jpg MAIN: 2026-06-08 17:36:05,652 - INFO - duration: 0.9806473729986465 MAIN: 2026-06-08 17:36:05,652 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:37:04,949 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:37:05,194 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:37:05,640 - INFO - taking picture MAIN: 2026-06-08 17:37:05,640 - INFO - we take 667 photos in this while loop MAIN: 2026-06-08 17:37:05,640 - INFO - /home/pi/Desktop/images/08062026/17/36/image_08062026_17_37_04_59996.jpg MAIN: 2026-06-08 17:37:05,640 - INFO - duration: 0.972996422999131 MAIN: 2026-06-08 17:37:05,640 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:38:05,030 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:38:05,287 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:38:05,723 - INFO - taking picture MAIN: 2026-06-08 17:38:05,723 - INFO - we take 668 photos in this while loop MAIN: 2026-06-08 17:38:05,723 - INFO - /home/pi/Desktop/images/08062026/17/37/image_08062026_17_38_05_60089.jpg MAIN: 2026-06-08 17:38:05,723 - INFO - duration: 0.9663844980022986 MAIN: 2026-06-08 17:38:05,724 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:39:05,093 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:39:05,426 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:39:05,797 - INFO - taking picture MAIN: 2026-06-08 17:39:05,797 - INFO - we take 669 photos in this while loop MAIN: 2026-06-08 17:39:05,797 - INFO - /home/pi/Desktop/images/08062026/17/38/image_08062026_17_39_05_60087.jpg MAIN: 2026-06-08 17:39:05,797 - INFO - duration: 0.9531022469964228 MAIN: 2026-06-08 17:39:05,798 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:40:05,350 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:40:06,092 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:40:06,100 - INFO - taking picture MAIN: 2026-06-08 17:40:06,100 - INFO - we take 670 photos in this while loop MAIN: 2026-06-08 17:40:06,101 - INFO - /home/pi/Desktop/images/08062026/17/39/image_08062026_17_40_05_60271.jpg MAIN: 2026-06-08 17:40:06,101 - INFO - duration: 0.9854931640002178 MAIN: 2026-06-08 17:40:06,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:41:04,775 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:41:05,453 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:41:06,160 - INFO - taking picture MAIN: 2026-06-08 17:41:06,161 - INFO - we take 671 photos in this while loop MAIN: 2026-06-08 17:41:06,161 - INFO - /home/pi/Desktop/images/08062026/17/40/image_08062026_17_41_05_60099.jpg MAIN: 2026-06-08 17:41:06,161 - INFO - duration: 0.9452801299994462 MAIN: 2026-06-08 17:41:06,161 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:42:05,042 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:42:05,407 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:42:06,067 - INFO - taking picture MAIN: 2026-06-08 17:42:06,067 - INFO - we take 672 photos in this while loop MAIN: 2026-06-08 17:42:06,068 - INFO - /home/pi/Desktop/images/08062026/17/41/image_08062026_17_42_05_59975.jpg MAIN: 2026-06-08 17:42:06,068 - INFO - duration: 0.8768775689968606 MAIN: 2026-06-08 17:42:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:43:05,012 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:43:05,303 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:43:05,958 - INFO - taking picture MAIN: 2026-06-08 17:43:05,958 - INFO - we take 673 photos in this while loop MAIN: 2026-06-08 17:43:05,958 - INFO - /home/pi/Desktop/images/08062026/17/42/image_08062026_17_43_05_59872.jpg MAIN: 2026-06-08 17:43:05,958 - INFO - duration: 0.8950548079956206 MAIN: 2026-06-08 17:43:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:44:05,074 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:44:05,277 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:44:05,738 - INFO - taking picture MAIN: 2026-06-08 17:44:05,738 - INFO - we take 674 photos in this while loop MAIN: 2026-06-08 17:44:05,738 - INFO - /home/pi/Desktop/images/08062026/17/43/image_08062026_17_44_05_59745.jpg MAIN: 2026-06-08 17:44:05,738 - INFO - duration: 0.9295398129979731 MAIN: 2026-06-08 17:44:05,739 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:45:04,867 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:45:05,544 - INFO - taking picture MAIN: 2026-06-08 17:45:05,545 - INFO - we take 675 photos in this while loop MAIN: 2026-06-08 17:45:05,545 - INFO - /home/pi/Desktop/images/08062026/17/44/image_08062026_17_45_04_59828.jpg MAIN: 2026-06-08 17:45:05,545 - INFO - duration: 0.9075551519999863 MAIN: 2026-06-08 17:45:05,545 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/45' MAIN: 2026-06-08 17:45:05,562 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:46:04,574 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:46:05,231 - INFO - taking picture MAIN: 2026-06-08 17:46:05,231 - INFO - we take 676 photos in this while loop MAIN: 2026-06-08 17:46:05,231 - INFO - /home/pi/Desktop/images/08062026/17/45/image_08062026_17_46_04_59698.jpg MAIN: 2026-06-08 17:46:05,231 - INFO - duration: 0.894800526999461 MAIN: 2026-06-08 17:46:05,231 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/46' MAIN: 2026-06-08 17:46:05,717 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:47:04,918 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:47:05,294 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:47:06,001 - INFO - taking picture MAIN: 2026-06-08 17:47:06,001 - INFO - we take 677 photos in this while loop MAIN: 2026-06-08 17:47:06,001 - INFO - /home/pi/Desktop/images/08062026/17/46/image_08062026_17_47_05_60720.jpg MAIN: 2026-06-08 17:47:06,001 - INFO - duration: 0.9448616759982542 MAIN: 2026-06-08 17:47:06,001 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:48:04,794 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:48:05,396 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:48:05,465 - INFO - taking picture MAIN: 2026-06-08 17:48:05,465 - INFO - we take 678 photos in this while loop MAIN: 2026-06-08 17:48:05,465 - INFO - /home/pi/Desktop/images/08062026/17/47/image_08062026_17_48_04_59465.jpg MAIN: 2026-06-08 17:48:05,465 - INFO - duration: 0.9432759900009842 MAIN: 2026-06-08 17:48:05,466 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:49:04,660 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:49:05,030 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:49:05,343 - INFO - taking picture MAIN: 2026-06-08 17:49:05,343 - INFO - we take 679 photos in this while loop MAIN: 2026-06-08 17:49:05,343 - INFO - /home/pi/Desktop/images/08062026/17/48/image_08062026_17_49_04_59867.jpg MAIN: 2026-06-08 17:49:05,343 - INFO - duration: 0.9542528739984846 MAIN: 2026-06-08 17:49:05,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:50:05,224 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:50:05,810 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:50:05,921 - INFO - taking picture MAIN: 2026-06-08 17:50:05,922 - INFO - we take 680 photos in this while loop MAIN: 2026-06-08 17:50:05,922 - INFO - /home/pi/Desktop/images/08062026/17/49/image_08062026_17_50_05_60608.jpg MAIN: 2026-06-08 17:50:05,922 - INFO - duration: 0.9243900510045933 MAIN: 2026-06-08 17:50:05,922 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:51:05,031 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:51:05,687 - INFO - taking picture MAIN: 2026-06-08 17:51:05,687 - INFO - we take 681 photos in this while loop MAIN: 2026-06-08 17:51:05,687 - INFO - /home/pi/Desktop/images/08062026/17/50/image_08062026_17_51_05_59757.jpg MAIN: 2026-06-08 17:51:05,687 - INFO - duration: 0.9321336399952997 MAIN: 2026-06-08 17:51:05,688 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/51' MAIN: 2026-06-08 17:51:05,803 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:52:04,800 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:52:04,879 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:52:05,464 - INFO - taking picture MAIN: 2026-06-08 17:52:05,464 - INFO - we take 682 photos in this while loop MAIN: 2026-06-08 17:52:05,464 - INFO - /home/pi/Desktop/images/08062026/17/51/image_08062026_17_52_04_59785.jpg MAIN: 2026-06-08 17:52:05,464 - INFO - duration: 0.9234268000000156 MAIN: 2026-06-08 17:52:05,465 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:53:04,510 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:53:04,657 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:53:05,172 - INFO - taking picture MAIN: 2026-06-08 17:53:05,172 - INFO - we take 683 photos in this while loop MAIN: 2026-06-08 17:53:05,172 - INFO - /home/pi/Desktop/images/08062026/17/52/image_08062026_17_53_04_59686.jpg MAIN: 2026-06-08 17:53:05,172 - INFO - duration: 0.944158234000497 MAIN: 2026-06-08 17:53:05,172 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:54:04,551 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:54:05,169 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:54:05,216 - INFO - taking picture MAIN: 2026-06-08 17:54:05,216 - INFO - we take 684 photos in this while loop MAIN: 2026-06-08 17:54:05,217 - INFO - /home/pi/Desktop/images/08062026/17/53/image_08062026_17_54_04_60059.jpg MAIN: 2026-06-08 17:54:05,217 - INFO - duration: 0.9294778270050301 MAIN: 2026-06-08 17:54:05,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:55:04,673 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:55:05,387 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:55:05,409 - INFO - taking picture MAIN: 2026-06-08 17:55:05,409 - INFO - we take 685 photos in this while loop MAIN: 2026-06-08 17:55:05,409 - INFO - /home/pi/Desktop/images/08062026/17/54/image_08062026_17_55_04_60144.jpg MAIN: 2026-06-08 17:55:05,409 - INFO - duration: 0.9775912080003764 MAIN: 2026-06-08 17:55:05,410 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:56:04,819 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:56:05,314 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:56:05,494 - INFO - taking picture MAIN: 2026-06-08 17:56:05,495 - INFO - we take 686 photos in this while loop MAIN: 2026-06-08 17:56:05,495 - INFO - /home/pi/Desktop/images/08062026/17/55/image_08062026_17_56_04_60126.jpg MAIN: 2026-06-08 17:56:05,495 - INFO - duration: 0.9362808700025198 MAIN: 2026-06-08 17:56:05,495 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:57:05,044 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:57:05,423 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:57:05,762 - INFO - taking picture MAIN: 2026-06-08 17:57:05,763 - INFO - we take 687 photos in this while loop MAIN: 2026-06-08 17:57:05,763 - INFO - /home/pi/Desktop/images/08062026/17/56/image_08062026_17_57_05_60215.jpg MAIN: 2026-06-08 17:57:05,763 - INFO - duration: 0.9890422050011693 MAIN: 2026-06-08 17:57:05,763 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:58:05,074 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:58:05,738 - INFO - taking picture MAIN: 2026-06-08 17:58:05,738 - INFO - we take 688 photos in this while loop MAIN: 2026-06-08 17:58:05,739 - INFO - /home/pi/Desktop/images/08062026/17/57/image_08062026_17_58_05_60050.jpg MAIN: 2026-06-08 17:58:05,739 - INFO - duration: 0.9149845270003425 MAIN: 2026-06-08 17:58:05,739 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/58' MAIN: 2026-06-08 17:58:05,938 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 17:59:04,760 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 17:59:05,047 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 17:59:05,701 - INFO - taking picture MAIN: 2026-06-08 17:59:05,701 - INFO - we take 689 photos in this while loop MAIN: 2026-06-08 17:59:05,701 - INFO - /home/pi/Desktop/images/08062026/17/58/image_08062026_17_59_05_59969.jpg MAIN: 2026-06-08 17:59:05,701 - INFO - duration: 0.9078573320002761 MAIN: 2026-06-08 17:59:05,701 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/17/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:00:05,046 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:00:05,623 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:00:05,766 - INFO - taking picture MAIN: 2026-06-08 18:00:05,767 - INFO - we take 690 photos in this while loop MAIN: 2026-06-08 18:00:05,767 - INFO - /home/pi/Desktop/images/08062026/17/59/image_08062026_18_00_05_59989.jpg MAIN: 2026-06-08 18:00:05,767 - INFO - duration: 0.9843199410024681 MAIN: 2026-06-08 18:00:05,767 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:01:05,118 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:01:05,120 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:01:05,777 - INFO - taking picture MAIN: 2026-06-08 18:01:05,778 - INFO - we take 691 photos in this while loop MAIN: 2026-06-08 18:01:05,778 - INFO - /home/pi/Desktop/images/08062026/18/00/image_08062026_18_01_05_60085.jpg MAIN: 2026-06-08 18:01:05,778 - INFO - duration: 0.9099470239962102 MAIN: 2026-06-08 18:01:05,778 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:02:05,145 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:02:05,526 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:02:05,871 - INFO - taking picture MAIN: 2026-06-08 18:02:05,871 - INFO - we take 692 photos in this while loop MAIN: 2026-06-08 18:02:05,871 - INFO - /home/pi/Desktop/images/08062026/18/01/image_08062026_18_02_05_60003.jpg MAIN: 2026-06-08 18:02:05,871 - INFO - duration: 1.0000550580007257 MAIN: 2026-06-08 18:02:05,871 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:03:05,334 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:03:05,496 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:03:06,150 - INFO - taking picture MAIN: 2026-06-08 18:03:06,150 - INFO - we take 693 photos in this while loop MAIN: 2026-06-08 18:03:06,150 - INFO - /home/pi/Desktop/images/08062026/18/02/image_08062026_18_03_05_60339.jpg MAIN: 2026-06-08 18:03:06,150 - INFO - duration: 0.9402361479951651 MAIN: 2026-06-08 18:03:06,151 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:04:05,591 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:04:05,789 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:04:06,308 - INFO - taking picture MAIN: 2026-06-08 18:04:06,308 - INFO - we take 694 photos in this while loop MAIN: 2026-06-08 18:04:06,308 - INFO - /home/pi/Desktop/images/08062026/18/03/image_08062026_18_04_05_60128.jpg MAIN: 2026-06-08 18:04:06,309 - INFO - duration: 0.9702982960006921 MAIN: 2026-06-08 18:04:06,309 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:05:05,169 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:05:05,514 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:05:06,231 - INFO - taking picture MAIN: 2026-06-08 18:05:06,231 - INFO - we take 695 photos in this while loop MAIN: 2026-06-08 18:05:06,231 - INFO - /home/pi/Desktop/images/08062026/18/04/image_08062026_18_05_05_59904.jpg MAIN: 2026-06-08 18:05:06,231 - INFO - duration: 0.988284040002327 MAIN: 2026-06-08 18:05:06,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:06:04,523 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:06:05,032 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:06:05,185 - INFO - taking picture MAIN: 2026-06-08 18:06:05,186 - INFO - we take 696 photos in this while loop MAIN: 2026-06-08 18:06:05,186 - INFO - /home/pi/Desktop/images/08062026/18/05/image_08062026_18_06_04_59012.jpg MAIN: 2026-06-08 18:06:05,186 - INFO - duration: 0.9299035429939977 MAIN: 2026-06-08 18:06:05,186 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:07:04,927 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:07:05,432 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:07:06,138 - INFO - taking picture MAIN: 2026-06-08 18:07:06,139 - INFO - we take 697 photos in this while loop MAIN: 2026-06-08 18:07:06,139 - INFO - /home/pi/Desktop/images/08062026/18/06/image_08062026_18_07_05_60938.jpg MAIN: 2026-06-08 18:07:06,139 - INFO - duration: 0.944533024005068 MAIN: 2026-06-08 18:07:06,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:08:05,303 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:08:05,466 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:08:05,963 - INFO - taking picture MAIN: 2026-06-08 18:08:05,963 - INFO - we take 698 photos in this while loop MAIN: 2026-06-08 18:08:05,963 - INFO - /home/pi/Desktop/images/08062026/18/07/image_08062026_18_08_05_59815.jpg MAIN: 2026-06-08 18:08:05,964 - INFO - duration: 0.953906791000918 MAIN: 2026-06-08 18:08:05,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:09:04,964 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:09:05,202 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:09:05,681 - INFO - taking picture MAIN: 2026-06-08 18:09:05,682 - INFO - we take 699 photos in this while loop MAIN: 2026-06-08 18:09:05,682 - INFO - /home/pi/Desktop/images/08062026/18/08/image_08062026_18_09_04_59687.jpg MAIN: 2026-06-08 18:09:05,682 - INFO - duration: 0.9843871550037875 MAIN: 2026-06-08 18:09:05,682 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:10:05,366 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:10:06,052 - INFO - taking picture MAIN: 2026-06-08 18:10:06,052 - INFO - we take 700 photos in this while loop MAIN: 2026-06-08 18:10:06,052 - INFO - /home/pi/Desktop/images/08062026/18/09/image_08062026_18_10_05_60439.jpg MAIN: 2026-06-08 18:10:06,052 - INFO - duration: 0.9152366769994842 MAIN: 2026-06-08 18:10:06,053 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/10' MAIN: 2026-06-08 18:10:06,140 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:11:05,186 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:11:05,672 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:11:05,846 - INFO - taking picture MAIN: 2026-06-08 18:11:05,846 - INFO - we take 701 photos in this while loop MAIN: 2026-06-08 18:11:05,846 - INFO - /home/pi/Desktop/images/08062026/18/10/image_08062026_18_11_05_59791.jpg MAIN: 2026-06-08 18:11:05,846 - INFO - duration: 0.9180983870028285 MAIN: 2026-06-08 18:11:05,846 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:12:04,940 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:12:05,070 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:12:05,721 - INFO - taking picture MAIN: 2026-06-08 18:12:05,721 - INFO - we take 702 photos in this while loop MAIN: 2026-06-08 18:12:05,722 - INFO - /home/pi/Desktop/images/08062026/18/11/image_08062026_18_12_05_59848.jpg MAIN: 2026-06-08 18:12:05,722 - INFO - duration: 0.9446283299985225 MAIN: 2026-06-08 18:12:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:13:04,846 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:13:04,943 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:13:05,506 - INFO - taking picture MAIN: 2026-06-08 18:13:05,506 - INFO - we take 703 photos in this while loop MAIN: 2026-06-08 18:13:05,506 - INFO - /home/pi/Desktop/images/08062026/18/12/image_08062026_18_13_04_59802.jpg MAIN: 2026-06-08 18:13:05,506 - INFO - duration: 0.9271146649989532 MAIN: 2026-06-08 18:13:05,507 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:14:04,930 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:14:05,160 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:14:05,646 - INFO - taking picture MAIN: 2026-06-08 18:14:05,646 - INFO - we take 704 photos in this while loop MAIN: 2026-06-08 18:14:05,646 - INFO - /home/pi/Desktop/images/08062026/18/13/image_08062026_18_14_04_60091.jpg MAIN: 2026-06-08 18:14:05,646 - INFO - duration: 0.9755101620030473 MAIN: 2026-06-08 18:14:05,646 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:15:05,116 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:15:05,607 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:15:05,782 - INFO - taking picture MAIN: 2026-06-08 18:15:05,782 - INFO - we take 705 photos in this while loop MAIN: 2026-06-08 18:15:05,782 - INFO - /home/pi/Desktop/images/08062026/18/14/image_08062026_18_15_05_60212.jpg MAIN: 2026-06-08 18:15:05,782 - INFO - duration: 0.8986339469993254 MAIN: 2026-06-08 18:15:05,783 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:16:05,243 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:16:05,493 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:16:05,914 - INFO - taking picture MAIN: 2026-06-08 18:16:05,914 - INFO - we take 706 photos in this while loop MAIN: 2026-06-08 18:16:05,914 - INFO - /home/pi/Desktop/images/08062026/18/15/image_08062026_18_16_05_60104.jpg MAIN: 2026-06-08 18:16:05,914 - INFO - duration: 0.9255432680001832 MAIN: 2026-06-08 18:16:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:17:05,348 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:17:05,545 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:17:06,010 - INFO - taking picture MAIN: 2026-06-08 18:17:06,010 - INFO - we take 707 photos in this while loop MAIN: 2026-06-08 18:17:06,010 - INFO - /home/pi/Desktop/images/08062026/18/16/image_08062026_18_17_05_60107.jpg MAIN: 2026-06-08 18:17:06,011 - INFO - duration: 0.9142078119984944 MAIN: 2026-06-08 18:17:06,011 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:18:05,542 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:18:05,784 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:18:06,241 - INFO - taking picture MAIN: 2026-06-08 18:18:06,241 - INFO - we take 708 photos in this while loop MAIN: 2026-06-08 18:18:06,241 - INFO - /home/pi/Desktop/images/08062026/18/17/image_08062026_18_18_05_60179.jpg MAIN: 2026-06-08 18:18:06,241 - INFO - duration: 0.9651771799981361 MAIN: 2026-06-08 18:18:06,242 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:19:04,494 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:19:04,782 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:19:05,155 - INFO - taking picture MAIN: 2026-06-08 18:19:05,155 - INFO - we take 709 photos in this while loop MAIN: 2026-06-08 18:19:05,155 - INFO - /home/pi/Desktop/images/08062026/18/18/image_08062026_18_19_04_58954.jpg MAIN: 2026-06-08 18:19:05,156 - INFO - duration: 0.9252109519948135 MAIN: 2026-06-08 18:19:05,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/19' MAIN: 2026-06-08 18:20:04,724 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:20:05,405 - INFO - taking picture MAIN: 2026-06-08 18:20:05,406 - INFO - we take 710 photos in this while loop MAIN: 2026-06-08 18:20:05,406 - INFO - /home/pi/Desktop/images/08062026/18/19/image_08062026_18_20_04_60266.jpg MAIN: 2026-06-08 18:20:05,406 - INFO - duration: 0.9089042039995547 MAIN: 2026-06-08 18:20:05,406 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/20' MAIN: 2026-06-08 18:20:05,802 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:21:04,831 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:21:05,099 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:21:05,491 - INFO - taking picture MAIN: 2026-06-08 18:21:05,492 - INFO - we take 711 photos in this while loop MAIN: 2026-06-08 18:21:05,492 - INFO - /home/pi/Desktop/images/08062026/18/20/image_08062026_18_21_04_60051.jpg MAIN: 2026-06-08 18:21:05,492 - INFO - duration: 0.9434665169974323 MAIN: 2026-06-08 18:21:05,492 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:22:05,024 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:22:05,501 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:22:05,728 - INFO - taking picture MAIN: 2026-06-08 18:22:05,729 - INFO - we take 712 photos in this while loop MAIN: 2026-06-08 18:22:05,729 - INFO - /home/pi/Desktop/images/08062026/18/21/image_08062026_18_22_05_60218.jpg MAIN: 2026-06-08 18:22:05,729 - INFO - duration: 0.9624518769996939 MAIN: 2026-06-08 18:22:05,729 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:23:05,175 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:23:05,518 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:23:05,836 - INFO - taking picture MAIN: 2026-06-08 18:23:05,836 - INFO - we take 713 photos in this while loop MAIN: 2026-06-08 18:23:05,837 - INFO - /home/pi/Desktop/images/08062026/18/22/image_08062026_18_23_05_60146.jpg MAIN: 2026-06-08 18:23:05,837 - INFO - duration: 0.9238696650063503 MAIN: 2026-06-08 18:23:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:24:05,355 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:24:05,661 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:24:06,019 - INFO - taking picture MAIN: 2026-06-08 18:24:06,020 - INFO - we take 714 photos in this while loop MAIN: 2026-06-08 18:24:06,020 - INFO - /home/pi/Desktop/images/08062026/18/23/image_08062026_18_24_05_60175.jpg MAIN: 2026-06-08 18:24:06,020 - INFO - duration: 0.9314574820018606 MAIN: 2026-06-08 18:24:06,020 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:25:05,104 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:25:05,575 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:25:06,224 - INFO - taking picture MAIN: 2026-06-08 18:25:06,225 - INFO - we take 715 photos in this while loop MAIN: 2026-06-08 18:25:06,225 - INFO - /home/pi/Desktop/images/08062026/18/24/image_08062026_18_25_05_60219.jpg MAIN: 2026-06-08 18:25:06,225 - INFO - duration: 0.9172672580025392 MAIN: 2026-06-08 18:25:06,225 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:26:04,506 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:26:05,157 - INFO - taking picture MAIN: 2026-06-08 18:26:05,158 - INFO - we take 716 photos in this while loop MAIN: 2026-06-08 18:26:05,158 - INFO - /home/pi/Desktop/images/08062026/18/25/image_08062026_18_26_04_58959.jpg MAIN: 2026-06-08 18:26:05,158 - INFO - duration: 0.8907161509996513 MAIN: 2026-06-08 18:26:05,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/26' MAIN: 2026-06-08 18:26:05,217 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:27:04,498 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:27:04,826 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:27:05,159 - INFO - taking picture MAIN: 2026-06-08 18:27:05,160 - INFO - we take 717 photos in this while loop MAIN: 2026-06-08 18:27:05,160 - INFO - /home/pi/Desktop/images/08062026/18/26/image_08062026_18_27_04_59972.jpg MAIN: 2026-06-08 18:27:05,160 - INFO - duration: 0.9198371050006244 MAIN: 2026-06-08 18:27:05,160 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:28:04,610 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:28:05,102 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:28:05,283 - INFO - taking picture MAIN: 2026-06-08 18:28:05,283 - INFO - we take 718 photos in this while loop MAIN: 2026-06-08 18:28:05,283 - INFO - /home/pi/Desktop/images/08062026/18/27/image_08062026_18_28_04_60109.jpg MAIN: 2026-06-08 18:28:05,283 - INFO - duration: 0.9335583740030415 MAIN: 2026-06-08 18:28:05,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/28' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:29:04,804 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:29:05,411 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:29:05,517 - INFO - taking picture MAIN: 2026-06-08 18:29:05,518 - INFO - we take 719 photos in this while loop MAIN: 2026-06-08 18:29:05,518 - INFO - /home/pi/Desktop/images/08062026/18/28/image_08062026_18_29_04_60168.jpg MAIN: 2026-06-08 18:29:05,518 - INFO - duration: 0.999464139000338 MAIN: 2026-06-08 18:29:05,518 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:30:05,145 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:30:05,836 - INFO - taking picture MAIN: 2026-06-08 18:30:05,837 - INFO - we take 720 photos in this while loop MAIN: 2026-06-08 18:30:05,837 - INFO - /home/pi/Desktop/images/08062026/18/29/image_08062026_18_30_05_60401.jpg MAIN: 2026-06-08 18:30:05,837 - INFO - duration: 0.9172376870046719 MAIN: 2026-06-08 18:30:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/30' MAIN: 2026-06-08 18:30:05,856 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:31:05,239 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:31:05,409 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:31:05,906 - INFO - taking picture MAIN: 2026-06-08 18:31:05,906 - INFO - we take 721 photos in this while loop MAIN: 2026-06-08 18:31:05,907 - INFO - /home/pi/Desktop/images/08062026/18/30/image_08062026_18_31_05_60069.jpg MAIN: 2026-06-08 18:31:05,907 - INFO - duration: 0.9174172969942447 MAIN: 2026-06-08 18:31:05,907 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:32:05,380 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:32:05,787 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:32:06,039 - INFO - taking picture MAIN: 2026-06-08 18:32:06,039 - INFO - we take 722 photos in this while loop MAIN: 2026-06-08 18:32:06,039 - INFO - /home/pi/Desktop/images/08062026/18/31/image_08062026_18_32_05_60138.jpg MAIN: 2026-06-08 18:32:06,039 - INFO - duration: 0.9109363639945514 MAIN: 2026-06-08 18:32:06,039 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:33:04,671 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:33:05,539 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:33:06,189 - INFO - taking picture MAIN: 2026-06-08 18:33:06,189 - INFO - we take 723 photos in this while loop MAIN: 2026-06-08 18:33:06,189 - INFO - /home/pi/Desktop/images/08062026/18/32/image_08062026_18_33_05_60144.jpg MAIN: 2026-06-08 18:33:06,189 - INFO - duration: 0.9163113579998026 MAIN: 2026-06-08 18:33:06,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:34:04,490 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:34:05,046 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:34:05,189 - INFO - taking picture MAIN: 2026-06-08 18:34:05,189 - INFO - we take 724 photos in this while loop MAIN: 2026-06-08 18:34:05,189 - INFO - /home/pi/Desktop/images/08062026/18/33/image_08062026_18_34_04_58944.jpg MAIN: 2026-06-08 18:34:05,189 - INFO - duration: 0.9719046959944535 MAIN: 2026-06-08 18:34:05,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:35:04,817 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:35:05,156 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:35:05,489 - INFO - taking picture MAIN: 2026-06-08 18:35:05,490 - INFO - we take 725 photos in this while loop MAIN: 2026-06-08 18:35:05,490 - INFO - /home/pi/Desktop/images/08062026/18/34/image_08062026_18_35_04_60371.jpg MAIN: 2026-06-08 18:35:05,490 - INFO - duration: 0.9012880450027296 MAIN: 2026-06-08 18:35:05,490 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:36:04,942 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:36:05,375 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:36:05,605 - INFO - taking picture MAIN: 2026-06-08 18:36:05,605 - INFO - we take 726 photos in this while loop MAIN: 2026-06-08 18:36:05,605 - INFO - /home/pi/Desktop/images/08062026/18/35/image_08062026_18_36_04_60078.jpg MAIN: 2026-06-08 18:36:05,605 - INFO - duration: 0.9379591129982146 MAIN: 2026-06-08 18:36:05,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:37:05,092 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:37:05,253 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:37:05,748 - INFO - taking picture MAIN: 2026-06-08 18:37:05,748 - INFO - we take 727 photos in this while loop MAIN: 2026-06-08 18:37:05,748 - INFO - /home/pi/Desktop/images/08062026/18/36/image_08062026_18_37_05_60183.jpg MAIN: 2026-06-08 18:37:05,748 - INFO - duration: 0.8972148859975277 MAIN: 2026-06-08 18:37:05,748 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:38:05,122 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:38:05,262 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:38:05,778 - INFO - taking picture MAIN: 2026-06-08 18:38:05,778 - INFO - we take 728 photos in this while loop MAIN: 2026-06-08 18:38:05,778 - INFO - /home/pi/Desktop/images/08062026/18/37/image_08062026_18_38_05_60002.jpg MAIN: 2026-06-08 18:38:05,778 - INFO - duration: 0.9249547549989074 MAIN: 2026-06-08 18:38:05,779 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/38' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:39:05,092 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:39:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:39:06,067 - INFO - taking picture MAIN: 2026-06-08 18:39:06,067 - INFO - we take 729 photos in this while loop MAIN: 2026-06-08 18:39:06,067 - INFO - /home/pi/Desktop/images/08062026/18/38/image_08062026_18_39_05_60233.jpg MAIN: 2026-06-08 18:39:06,067 - INFO - duration: 0.9805539190056152 MAIN: 2026-06-08 18:39:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:40:05,649 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:40:06,079 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:40:06,375 - INFO - taking picture MAIN: 2026-06-08 18:40:06,375 - INFO - we take 730 photos in this while loop MAIN: 2026-06-08 18:40:06,376 - INFO - /home/pi/Desktop/images/08062026/18/39/image_08062026_18_40_05_60302.jpg MAIN: 2026-06-08 18:40:06,376 - INFO - duration: 0.9859590229971218 MAIN: 2026-06-08 18:40:06,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:41:04,475 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:41:04,744 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:41:05,136 - INFO - taking picture MAIN: 2026-06-08 18:41:05,136 - INFO - we take 731 photos in this while loop MAIN: 2026-06-08 18:41:05,136 - INFO - /home/pi/Desktop/images/08062026/18/40/image_08062026_18_41_04_58821.jpg MAIN: 2026-06-08 18:41:05,136 - INFO - duration: 0.9246889570058556 MAIN: 2026-06-08 18:41:05,136 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:42:04,663 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:42:05,134 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:42:05,321 - INFO - taking picture MAIN: 2026-06-08 18:42:05,321 - INFO - we take 732 photos in this while loop MAIN: 2026-06-08 18:42:05,321 - INFO - /home/pi/Desktop/images/08062026/18/41/image_08062026_18_42_04_60176.jpg MAIN: 2026-06-08 18:42:05,321 - INFO - duration: 0.9334548990009353 MAIN: 2026-06-08 18:42:05,322 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:43:04,545 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:43:04,898 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:43:05,205 - INFO - taking picture MAIN: 2026-06-08 18:43:05,205 - INFO - we take 733 photos in this while loop MAIN: 2026-06-08 18:43:05,205 - INFO - /home/pi/Desktop/images/08062026/18/42/image_08062026_18_43_04_59892.jpg MAIN: 2026-06-08 18:43:05,206 - INFO - duration: 0.9248665179984528 MAIN: 2026-06-08 18:43:05,206 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:44:04,716 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:44:05,245 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:44:05,375 - INFO - taking picture MAIN: 2026-06-08 18:44:05,375 - INFO - we take 734 photos in this while loop MAIN: 2026-06-08 18:44:05,375 - INFO - /home/pi/Desktop/images/08062026/18/43/image_08062026_18_44_04_60163.jpg MAIN: 2026-06-08 18:44:05,375 - INFO - duration: 0.930826628995419 MAIN: 2026-06-08 18:44:05,375 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:45:04,893 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:45:05,458 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:45:05,569 - INFO - taking picture MAIN: 2026-06-08 18:45:05,569 - INFO - we take 735 photos in this while loop MAIN: 2026-06-08 18:45:05,569 - INFO - /home/pi/Desktop/images/08062026/18/44/image_08062026_18_45_04_60221.jpg MAIN: 2026-06-08 18:45:05,569 - INFO - duration: 0.9030006169996341 MAIN: 2026-06-08 18:45:05,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/45' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:46:05,121 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:46:05,695 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:46:05,828 - INFO - taking picture MAIN: 2026-06-08 18:46:05,828 - INFO - we take 736 photos in this while loop MAIN: 2026-06-08 18:46:05,828 - INFO - /home/pi/Desktop/images/08062026/18/45/image_08062026_18_46_05_60169.jpg MAIN: 2026-06-08 18:46:05,828 - INFO - duration: 0.9924188609948033 MAIN: 2026-06-08 18:46:05,829 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:47:05,307 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:47:05,416 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:47:06,030 - INFO - taking picture MAIN: 2026-06-08 18:47:06,030 - INFO - we take 737 photos in this while loop MAIN: 2026-06-08 18:47:06,030 - INFO - /home/pi/Desktop/images/08062026/18/46/image_08062026_18_47_05_60221.jpg MAIN: 2026-06-08 18:47:06,030 - INFO - duration: 0.9733628370013321 MAIN: 2026-06-08 18:47:06,031 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:48:05,514 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:48:05,895 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:48:06,177 - INFO - taking picture MAIN: 2026-06-08 18:48:06,177 - INFO - we take 738 photos in this while loop MAIN: 2026-06-08 18:48:06,177 - INFO - /home/pi/Desktop/images/08062026/18/47/image_08062026_18_48_05_60191.jpg MAIN: 2026-06-08 18:48:06,177 - INFO - duration: 0.9283615790045587 MAIN: 2026-06-08 18:48:06,178 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:49:04,523 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:49:04,579 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:49:05,190 - INFO - taking picture MAIN: 2026-06-08 18:49:05,190 - INFO - we take 739 photos in this while loop MAIN: 2026-06-08 18:49:05,191 - INFO - /home/pi/Desktop/images/08062026/18/48/image_08062026_18_49_04_59009.jpg MAIN: 2026-06-08 18:49:05,191 - INFO - duration: 0.9325392019964056 MAIN: 2026-06-08 18:49:05,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:50:04,724 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:50:05,244 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:50:05,404 - INFO - taking picture MAIN: 2026-06-08 18:50:05,404 - INFO - we take 740 photos in this while loop MAIN: 2026-06-08 18:50:05,404 - INFO - /home/pi/Desktop/images/08062026/18/49/image_08062026_18_50_04_60243.jpg MAIN: 2026-06-08 18:50:05,404 - INFO - duration: 0.903098905000661 MAIN: 2026-06-08 18:50:05,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:51:04,809 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:51:04,942 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:51:05,473 - INFO - taking picture MAIN: 2026-06-08 18:51:05,474 - INFO - we take 741 photos in this while loop MAIN: 2026-06-08 18:51:05,474 - INFO - /home/pi/Desktop/images/08062026/18/50/image_08062026_18_51_04_60052.jpg MAIN: 2026-06-08 18:51:05,474 - INFO - duration: 0.9197751350002363 MAIN: 2026-06-08 18:51:05,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:52:04,818 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:52:05,361 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:52:05,478 - INFO - taking picture MAIN: 2026-06-08 18:52:05,478 - INFO - we take 742 photos in this while loop MAIN: 2026-06-08 18:52:05,478 - INFO - /home/pi/Desktop/images/08062026/18/51/image_08062026_18_52_04_60018.jpg MAIN: 2026-06-08 18:52:05,478 - INFO - duration: 0.9058860580043984 MAIN: 2026-06-08 18:52:05,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:53:04,821 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:53:05,002 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:53:05,479 - INFO - taking picture MAIN: 2026-06-08 18:53:05,480 - INFO - we take 743 photos in this while loop MAIN: 2026-06-08 18:53:05,480 - INFO - /home/pi/Desktop/images/08062026/18/52/image_08062026_18_53_04_59982.jpg MAIN: 2026-06-08 18:53:05,480 - INFO - duration: 0.9247247269959189 MAIN: 2026-06-08 18:53:05,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:54:04,949 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:54:05,601 - INFO - taking picture MAIN: 2026-06-08 18:54:05,602 - INFO - we take 744 photos in this while loop MAIN: 2026-06-08 18:54:05,602 - INFO - /home/pi/Desktop/images/08062026/18/53/image_08062026_18_54_04_60128.jpg MAIN: 2026-06-08 18:54:05,602 - INFO - duration: 0.918624591002299 MAIN: 2026-06-08 18:54:05,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/54' MAIN: 2026-06-08 18:54:05,756 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:55:05,074 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:55:05,634 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:55:05,754 - INFO - taking picture MAIN: 2026-06-08 18:55:05,754 - INFO - we take 745 photos in this while loop MAIN: 2026-06-08 18:55:05,754 - INFO - /home/pi/Desktop/images/08062026/18/54/image_08062026_18_55_05_60166.jpg MAIN: 2026-06-08 18:55:05,754 - INFO - duration: 0.9043630950036459 MAIN: 2026-06-08 18:55:05,755 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:56:05,201 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:56:05,763 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:56:05,907 - INFO - taking picture MAIN: 2026-06-08 18:56:05,907 - INFO - we take 746 photos in this while loop MAIN: 2026-06-08 18:56:05,908 - INFO - /home/pi/Desktop/images/08062026/18/55/image_08062026_18_56_05_60102.jpg MAIN: 2026-06-08 18:56:05,908 - INFO - duration: 0.9554889610008104 MAIN: 2026-06-08 18:56:05,908 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:57:04,800 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:57:05,405 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:57:06,141 - INFO - taking picture MAIN: 2026-06-08 18:57:06,141 - INFO - we take 747 photos in this while loop MAIN: 2026-06-08 18:57:06,142 - INFO - /home/pi/Desktop/images/08062026/18/56/image_08062026_18_57_05_60240.jpg MAIN: 2026-06-08 18:57:06,142 - INFO - duration: 0.9489840180031024 MAIN: 2026-06-08 18:57:06,142 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:58:04,516 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:58:05,213 - INFO - taking picture MAIN: 2026-06-08 18:58:05,213 - INFO - we take 748 photos in this while loop MAIN: 2026-06-08 18:58:05,213 - INFO - /home/pi/Desktop/images/08062026/18/57/image_08062026_18_58_04_59049.jpg MAIN: 2026-06-08 18:58:05,213 - INFO - duration: 0.9707432450013584 MAIN: 2026-06-08 18:58:05,213 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/58' MAIN: 2026-06-08 18:58:05,273 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 18:59:04,783 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 18:59:05,063 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 18:59:05,490 - INFO - taking picture MAIN: 2026-06-08 18:59:05,490 - INFO - we take 749 photos in this while loop MAIN: 2026-06-08 18:59:05,490 - INFO - /home/pi/Desktop/images/08062026/18/58/image_08062026_18_59_04_60275.jpg MAIN: 2026-06-08 18:59:05,491 - INFO - duration: 0.9726988109978265 MAIN: 2026-06-08 18:59:05,491 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/18/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:00:05,046 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:00:05,206 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:00:05,709 - INFO - taking picture MAIN: 2026-06-08 19:00:05,709 - INFO - we take 750 photos in this while loop MAIN: 2026-06-08 19:00:05,709 - INFO - /home/pi/Desktop/images/08062026/18/59/image_08062026_19_00_05_60293.jpg MAIN: 2026-06-08 19:00:05,709 - INFO - duration: 0.8977419350048876 MAIN: 2026-06-08 19:00:05,709 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:01:05,039 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:01:05,085 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:01:05,700 - INFO - taking picture MAIN: 2026-06-08 19:01:05,700 - INFO - we take 751 photos in this while loop MAIN: 2026-06-08 19:01:05,700 - INFO - /home/pi/Desktop/images/08062026/19/00/image_08062026_19_01_05_59961.jpg MAIN: 2026-06-08 19:01:05,700 - INFO - duration: 0.9277791429994977 MAIN: 2026-06-08 19:01:05,701 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:02:05,112 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:02:05,665 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:02:05,822 - INFO - taking picture MAIN: 2026-06-08 19:02:05,822 - INFO - we take 752 photos in this while loop MAIN: 2026-06-08 19:02:05,822 - INFO - /home/pi/Desktop/images/08062026/19/01/image_08062026_19_02_05_60073.jpg MAIN: 2026-06-08 19:02:05,823 - INFO - duration: 0.9766740310005844 MAIN: 2026-06-08 19:02:05,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:03:05,235 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:03:05,258 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:03:05,933 - INFO - taking picture MAIN: 2026-06-08 19:03:05,933 - INFO - we take 753 photos in this while loop MAIN: 2026-06-08 19:03:05,934 - INFO - /home/pi/Desktop/images/08062026/19/02/image_08062026_19_03_05_60129.jpg MAIN: 2026-06-08 19:03:05,934 - INFO - duration: 0.9582991139977821 MAIN: 2026-06-08 19:03:05,934 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:04:05,323 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:04:05,814 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:04:05,983 - INFO - taking picture MAIN: 2026-06-08 19:04:05,984 - INFO - we take 754 photos in this while loop MAIN: 2026-06-08 19:04:05,984 - INFO - /home/pi/Desktop/images/08062026/19/03/image_08062026_19_04_05_60108.jpg MAIN: 2026-06-08 19:04:05,984 - INFO - duration: 0.899982861999888 MAIN: 2026-06-08 19:04:05,984 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/04' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:05:05,528 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:05:05,879 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:05:06,238 - INFO - taking picture MAIN: 2026-06-08 19:05:06,238 - INFO - we take 755 photos in this while loop MAIN: 2026-06-08 19:05:06,238 - INFO - /home/pi/Desktop/images/08062026/19/04/image_08062026_19_05_05_60194.jpg MAIN: 2026-06-08 19:05:06,238 - INFO - duration: 0.9592027090038755 MAIN: 2026-06-08 19:05:06,238 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:06:05,072 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:06:05,483 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:06:06,136 - INFO - taking picture MAIN: 2026-06-08 19:06:06,137 - INFO - we take 756 photos in this while loop MAIN: 2026-06-08 19:06:06,137 - INFO - /home/pi/Desktop/images/08062026/19/05/image_08062026_19_06_05_59989.jpg MAIN: 2026-06-08 19:06:06,137 - INFO - duration: 0.8686402979947161 MAIN: 2026-06-08 19:06:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:07:04,766 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:07:05,106 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:07:05,804 - INFO - taking picture MAIN: 2026-06-08 19:07:05,805 - INFO - we take 757 photos in this while loop MAIN: 2026-06-08 19:07:05,805 - INFO - /home/pi/Desktop/images/08062026/19/06/image_08062026_19_07_05_59591.jpg MAIN: 2026-06-08 19:07:05,805 - INFO - duration: 0.9450036150010419 MAIN: 2026-06-08 19:07:05,805 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:08:05,167 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:08:05,346 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:08:05,829 - INFO - taking picture MAIN: 2026-06-08 19:08:05,829 - INFO - we take 758 photos in this while loop MAIN: 2026-06-08 19:08:05,829 - INFO - /home/pi/Desktop/images/08062026/19/07/image_08062026_19_08_05_60037.jpg MAIN: 2026-06-08 19:08:05,830 - INFO - duration: 0.9320470829989063 MAIN: 2026-06-08 19:08:05,830 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:09:04,880 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:09:05,160 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:09:05,543 - INFO - taking picture MAIN: 2026-06-08 19:09:05,543 - INFO - we take 759 photos in this while loop MAIN: 2026-06-08 19:09:05,543 - INFO - /home/pi/Desktop/images/08062026/19/08/image_08062026_19_09_04_59708.jpg MAIN: 2026-06-08 19:09:05,543 - INFO - duration: 0.9371686209997279 MAIN: 2026-06-08 19:09:05,544 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:10:04,914 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:10:05,582 - INFO - taking picture MAIN: 2026-06-08 19:10:05,583 - INFO - we take 760 photos in this while loop MAIN: 2026-06-08 19:10:05,583 - INFO - /home/pi/Desktop/images/08062026/19/09/image_08062026_19_10_04_60070.jpg MAIN: 2026-06-08 19:10:05,583 - INFO - duration: 0.9059842770002433 MAIN: 2026-06-08 19:10:05,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/10' MAIN: 2026-06-08 19:10:05,796 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:11:04,727 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:11:05,414 - INFO - taking picture MAIN: 2026-06-08 19:11:05,414 - INFO - we take 761 photos in this while loop MAIN: 2026-06-08 19:11:05,414 - INFO - /home/pi/Desktop/images/08062026/19/10/image_08062026_19_11_04_59826.jpg MAIN: 2026-06-08 19:11:05,414 - INFO - duration: 0.9108472980005899 MAIN: 2026-06-08 19:11:05,414 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/11' MAIN: 2026-06-08 19:11:05,656 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:12:04,620 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:12:04,957 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:12:05,329 - INFO - taking picture MAIN: 2026-06-08 19:12:05,329 - INFO - we take 762 photos in this while loop MAIN: 2026-06-08 19:12:05,330 - INFO - /home/pi/Desktop/images/08062026/19/11/image_08062026_19_12_04_59827.jpg MAIN: 2026-06-08 19:12:05,330 - INFO - duration: 0.999302741001884 MAIN: 2026-06-08 19:12:05,330 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:13:04,849 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:13:05,164 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:13:05,557 - INFO - taking picture MAIN: 2026-06-08 19:13:05,557 - INFO - we take 763 photos in this while loop MAIN: 2026-06-08 19:13:05,557 - INFO - /home/pi/Desktop/images/08062026/19/12/image_08062026_19_13_04_60242.jpg MAIN: 2026-06-08 19:13:05,558 - INFO - duration: 0.985059183993144 MAIN: 2026-06-08 19:13:05,558 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:14:04,984 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:14:05,197 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:14:05,664 - INFO - taking picture MAIN: 2026-06-08 19:14:05,664 - INFO - we take 764 photos in this while loop MAIN: 2026-06-08 19:14:05,664 - INFO - /home/pi/Desktop/images/08062026/19/13/image_08062026_19_14_04_60139.jpg MAIN: 2026-06-08 19:14:05,664 - INFO - duration: 0.9525566849988536 MAIN: 2026-06-08 19:14:05,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:15:05,173 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:15:05,438 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:15:05,863 - INFO - taking picture MAIN: 2026-06-08 19:15:05,863 - INFO - we take 765 photos in this while loop MAIN: 2026-06-08 19:15:05,863 - INFO - /home/pi/Desktop/images/08062026/19/14/image_08062026_19_15_05_60221.jpg MAIN: 2026-06-08 19:15:05,863 - INFO - duration: 0.9301360799945542 MAIN: 2026-06-08 19:15:05,864 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:16:05,195 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:16:05,848 - INFO - taking picture MAIN: 2026-06-08 19:16:05,848 - INFO - we take 766 photos in this while loop MAIN: 2026-06-08 19:16:05,848 - INFO - /home/pi/Desktop/images/08062026/19/15/image_08062026_19_16_05_59994.jpg MAIN: 2026-06-08 19:16:05,848 - INFO - duration: 0.9201579309956287 MAIN: 2026-06-08 19:16:05,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/16' MAIN: 2026-06-08 19:16:05,928 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:17:05,107 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:17:05,502 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:17:05,768 - INFO - taking picture MAIN: 2026-06-08 19:17:05,768 - INFO - we take 767 photos in this while loop MAIN: 2026-06-08 19:17:05,769 - INFO - /home/pi/Desktop/images/08062026/19/16/image_08062026_19_17_05_59922.jpg MAIN: 2026-06-08 19:17:05,769 - INFO - duration: 0.9185264539992204 MAIN: 2026-06-08 19:17:05,769 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:18:05,136 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:18:05,624 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:18:05,800 - INFO - taking picture MAIN: 2026-06-08 19:18:05,800 - INFO - we take 768 photos in this while loop MAIN: 2026-06-08 19:18:05,801 - INFO - /home/pi/Desktop/images/08062026/19/17/image_08062026_19_18_05_60048.jpg MAIN: 2026-06-08 19:18:05,801 - INFO - duration: 0.9020610129955458 MAIN: 2026-06-08 19:18:05,801 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:19:04,669 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:19:04,776 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:19:05,430 - INFO - taking picture MAIN: 2026-06-08 19:19:05,431 - INFO - we take 769 photos in this while loop MAIN: 2026-06-08 19:19:05,431 - INFO - /home/pi/Desktop/images/08062026/19/18/image_08062026_19_19_04_59616.jpg MAIN: 2026-06-08 19:19:05,431 - INFO - duration: 0.9153907389991218 MAIN: 2026-06-08 19:19:05,431 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:20:04,615 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:20:05,039 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:20:05,316 - INFO - taking picture MAIN: 2026-06-08 19:20:05,316 - INFO - we take 770 photos in this while loop MAIN: 2026-06-08 19:20:05,317 - INFO - /home/pi/Desktop/images/08062026/19/19/image_08062026_19_20_04_59869.jpg MAIN: 2026-06-08 19:20:05,317 - INFO - duration: 0.9317214660040918 MAIN: 2026-06-08 19:20:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:21:05,231 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:21:05,550 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:21:06,202 - INFO - taking picture MAIN: 2026-06-08 19:21:06,203 - INFO - we take 771 photos in this while loop MAIN: 2026-06-08 19:21:06,203 - INFO - /home/pi/Desktop/images/08062026/19/20/image_08062026_19_21_05_60953.jpg MAIN: 2026-06-08 19:21:06,203 - INFO - duration: 0.8645523930026684 MAIN: 2026-06-08 19:21:06,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:22:05,121 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:22:05,636 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:22:05,782 - INFO - taking picture MAIN: 2026-06-08 19:22:05,782 - INFO - we take 772 photos in this while loop MAIN: 2026-06-08 19:22:05,782 - INFO - /home/pi/Desktop/images/08062026/19/21/image_08062026_19_22_05_59527.jpg MAIN: 2026-06-08 19:22:05,783 - INFO - duration: 0.9169808380029281 MAIN: 2026-06-08 19:22:05,783 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:23:04,805 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:23:05,447 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:23:05,496 - INFO - taking picture MAIN: 2026-06-08 19:23:05,497 - INFO - we take 773 photos in this while loop MAIN: 2026-06-08 19:23:05,497 - INFO - /home/pi/Desktop/images/08062026/19/22/image_08062026_19_23_04_59713.jpg MAIN: 2026-06-08 19:23:05,497 - INFO - duration: 0.9177704960020492 MAIN: 2026-06-08 19:23:05,497 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/23' MAIN: 2026-06-08 19:24:04,483 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:24:05,194 - INFO - taking picture MAIN: 2026-06-08 19:24:05,194 - INFO - we take 774 photos in this while loop MAIN: 2026-06-08 19:24:05,195 - INFO - /home/pi/Desktop/images/08062026/19/23/image_08062026_19_24_04_59691.jpg MAIN: 2026-06-08 19:24:05,195 - INFO - duration: 0.9244233409990557 MAIN: 2026-06-08 19:24:05,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/24' MAIN: 2026-06-08 19:24:05,796 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:25:04,970 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:25:05,545 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:25:06,210 - INFO - taking picture MAIN: 2026-06-08 19:25:06,211 - INFO - we take 775 photos in this while loop MAIN: 2026-06-08 19:25:06,211 - INFO - /home/pi/Desktop/images/08062026/19/24/image_08062026_19_25_05_61040.jpg MAIN: 2026-06-08 19:25:06,211 - INFO - duration: 0.9003515299991705 MAIN: 2026-06-08 19:25:06,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:26:05,196 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:26:05,206 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:26:05,926 - INFO - taking picture MAIN: 2026-06-08 19:26:05,926 - INFO - we take 776 photos in this while loop MAIN: 2026-06-08 19:26:05,926 - INFO - /home/pi/Desktop/images/08062026/19/25/image_08062026_19_26_05_59623.jpg MAIN: 2026-06-08 19:26:05,926 - INFO - duration: 0.9922365399979753 MAIN: 2026-06-08 19:26:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:27:05,094 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:27:05,315 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:27:05,803 - INFO - taking picture MAIN: 2026-06-08 19:27:05,803 - INFO - we take 777 photos in this while loop MAIN: 2026-06-08 19:27:05,803 - INFO - /home/pi/Desktop/images/08062026/19/26/image_08062026_19_27_05_59868.jpg MAIN: 2026-06-08 19:27:05,803 - INFO - duration: 1.000207461998798 MAIN: 2026-06-08 19:27:05,804 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:28:04,872 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:28:05,523 - INFO - taking picture MAIN: 2026-06-08 19:28:05,524 - INFO - we take 778 photos in this while loop MAIN: 2026-06-08 19:28:05,524 - INFO - /home/pi/Desktop/images/08062026/19/27/image_08062026_19_28_04_59817.jpg MAIN: 2026-06-08 19:28:05,524 - INFO - duration: 0.9031766830012202 MAIN: 2026-06-08 19:28:05,524 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/28' MAIN: 2026-06-08 19:28:05,807 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:29:05,516 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:29:05,622 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:29:06,278 - INFO - taking picture MAIN: 2026-06-08 19:29:06,278 - INFO - we take 779 photos in this while loop MAIN: 2026-06-08 19:29:06,278 - INFO - /home/pi/Desktop/images/08062026/19/28/image_08062026_19_29_05_60722.jpg MAIN: 2026-06-08 19:29:06,278 - INFO - duration: 0.9345291110003018 MAIN: 2026-06-08 19:29:06,278 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:30:05,409 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:30:05,559 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:30:06,227 - INFO - taking picture MAIN: 2026-06-08 19:30:06,227 - INFO - we take 780 photos in this while loop MAIN: 2026-06-08 19:30:06,227 - INFO - /home/pi/Desktop/images/08062026/19/29/image_08062026_19_30_05_59956.jpg MAIN: 2026-06-08 19:30:06,227 - INFO - duration: 0.9267730589999701 MAIN: 2026-06-08 19:30:06,228 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:31:04,819 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:31:05,630 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:31:06,282 - INFO - taking picture MAIN: 2026-06-08 19:31:06,283 - INFO - we take 781 photos in this while loop MAIN: 2026-06-08 19:31:06,283 - INFO - /home/pi/Desktop/images/08062026/19/30/image_08062026_19_31_05_60087.jpg MAIN: 2026-06-08 19:31:06,283 - INFO - duration: 0.8948534180017305 MAIN: 2026-06-08 19:31:06,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:32:05,216 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:32:05,352 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:32:06,011 - INFO - taking picture MAIN: 2026-06-08 19:32:06,012 - INFO - we take 782 photos in this while loop MAIN: 2026-06-08 19:32:06,012 - INFO - /home/pi/Desktop/images/08062026/19/31/image_08062026_19_32_05_59691.jpg MAIN: 2026-06-08 19:32:06,012 - INFO - duration: 0.9322771779989125 MAIN: 2026-06-08 19:32:06,012 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:33:05,169 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:33:05,261 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:33:05,877 - INFO - taking picture MAIN: 2026-06-08 19:33:05,878 - INFO - we take 783 photos in this while loop MAIN: 2026-06-08 19:33:05,878 - INFO - /home/pi/Desktop/images/08062026/19/32/image_08062026_19_33_05_59825.jpg MAIN: 2026-06-08 19:33:05,878 - INFO - duration: 0.9723727000018698 MAIN: 2026-06-08 19:33:05,878 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:34:05,121 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:34:05,621 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:34:05,797 - INFO - taking picture MAIN: 2026-06-08 19:34:05,797 - INFO - we take 784 photos in this while loop MAIN: 2026-06-08 19:34:05,797 - INFO - /home/pi/Desktop/images/08062026/19/33/image_08062026_19_34_05_59942.jpg MAIN: 2026-06-08 19:34:05,797 - INFO - duration: 0.9489553419989534 MAIN: 2026-06-08 19:34:05,797 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/34' MAIN: 2026-06-08 19:35:04,860 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:35:05,554 - INFO - taking picture MAIN: 2026-06-08 19:35:05,555 - INFO - we take 785 photos in this while loop MAIN: 2026-06-08 19:35:05,555 - INFO - /home/pi/Desktop/images/08062026/19/34/image_08062026_19_35_04_59769.jpg MAIN: 2026-06-08 19:35:05,555 - INFO - duration: 0.9373594680000679 MAIN: 2026-06-08 19:35:05,555 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/35' MAIN: 2026-06-08 19:35:05,961 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:36:04,648 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:36:05,001 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:36:05,319 - INFO - taking picture MAIN: 2026-06-08 19:36:05,319 - INFO - we take 786 photos in this while loop MAIN: 2026-06-08 19:36:05,319 - INFO - /home/pi/Desktop/images/08062026/19/35/image_08062026_19_36_04_59751.jpg MAIN: 2026-06-08 19:36:05,319 - INFO - duration: 0.9503890730047715 MAIN: 2026-06-08 19:36:05,319 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:37:04,493 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:37:05,109 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:37:05,202 - INFO - taking picture MAIN: 2026-06-08 19:37:05,202 - INFO - we take 787 photos in this while loop MAIN: 2026-06-08 19:37:05,203 - INFO - /home/pi/Desktop/images/08062026/19/36/image_08062026_19_37_04_59846.jpg MAIN: 2026-06-08 19:37:05,203 - INFO - duration: 0.9880277210031636 MAIN: 2026-06-08 19:37:05,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/37' MAIN: 2026-06-08 19:38:04,468 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:38:05,167 - INFO - taking picture MAIN: 2026-06-08 19:38:05,168 - INFO - we take 788 photos in this while loop MAIN: 2026-06-08 19:38:05,168 - INFO - /home/pi/Desktop/images/08062026/19/37/image_08062026_19_38_04_60038.jpg MAIN: 2026-06-08 19:38:05,168 - INFO - duration: 0.9148407989996485 MAIN: 2026-06-08 19:38:05,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/38' MAIN: 2026-06-08 19:38:05,555 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:39:05,263 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:39:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:39:06,022 - INFO - taking picture MAIN: 2026-06-08 19:39:06,022 - INFO - we take 789 photos in this while loop MAIN: 2026-06-08 19:39:06,023 - INFO - /home/pi/Desktop/images/08062026/19/38/image_08062026_19_39_05_60850.jpg MAIN: 2026-06-08 19:39:06,023 - INFO - duration: 0.9186259759953828 MAIN: 2026-06-08 19:39:06,023 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:40:05,341 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:40:05,945 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:40:06,072 - INFO - taking picture MAIN: 2026-06-08 19:40:06,072 - INFO - we take 790 photos in this while loop MAIN: 2026-06-08 19:40:06,073 - INFO - /home/pi/Desktop/images/08062026/19/39/image_08062026_19_40_05_59984.jpg MAIN: 2026-06-08 19:40:06,073 - INFO - duration: 0.9837417640010244 MAIN: 2026-06-08 19:40:06,073 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:41:05,120 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:41:05,533 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:41:05,787 - INFO - taking picture MAIN: 2026-06-08 19:41:05,787 - INFO - we take 791 photos in this while loop MAIN: 2026-06-08 19:41:05,787 - INFO - /home/pi/Desktop/images/08062026/19/40/image_08062026_19_41_05_59789.jpg MAIN: 2026-06-08 19:41:05,787 - INFO - duration: 0.9093524700001581 MAIN: 2026-06-08 19:41:05,788 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:42:04,984 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:42:05,031 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:42:05,690 - INFO - taking picture MAIN: 2026-06-08 19:42:05,691 - INFO - we take 792 photos in this while loop MAIN: 2026-06-08 19:42:05,691 - INFO - /home/pi/Desktop/images/08062026/19/41/image_08062026_19_42_05_59865.jpg MAIN: 2026-06-08 19:42:05,691 - INFO - duration: 0.9470391170034418 MAIN: 2026-06-08 19:42:05,691 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:43:04,597 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:43:04,696 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:43:05,260 - INFO - taking picture MAIN: 2026-06-08 19:43:05,260 - INFO - we take 793 photos in this while loop MAIN: 2026-06-08 19:43:05,260 - INFO - /home/pi/Desktop/images/08062026/19/42/image_08062026_19_43_04_59583.jpg MAIN: 2026-06-08 19:43:05,260 - INFO - duration: 0.9330155630013905 MAIN: 2026-06-08 19:43:05,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:44:04,529 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:44:05,193 - INFO - taking picture MAIN: 2026-06-08 19:44:05,193 - INFO - we take 794 photos in this while loop MAIN: 2026-06-08 19:44:05,193 - INFO - /home/pi/Desktop/images/08062026/19/43/image_08062026_19_44_04_59964.jpg MAIN: 2026-06-08 19:44:05,193 - INFO - duration: 0.901003689999925 MAIN: 2026-06-08 19:44:05,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/44' MAIN: 2026-06-08 19:44:05,335 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:45:04,432 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:45:05,119 - INFO - taking picture MAIN: 2026-06-08 19:45:05,119 - INFO - we take 795 photos in this while loop MAIN: 2026-06-08 19:45:05,119 - INFO - /home/pi/Desktop/images/08062026/19/44/image_08062026_19_45_04_59914.jpg MAIN: 2026-06-08 19:45:05,119 - INFO - duration: 0.9130755229998613 MAIN: 2026-06-08 19:45:05,120 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/45' MAIN: 2026-06-08 19:45:05,306 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:46:05,422 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:46:05,644 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:46:06,108 - INFO - taking picture MAIN: 2026-06-08 19:46:06,109 - INFO - we take 796 photos in this while loop MAIN: 2026-06-08 19:46:06,109 - INFO - /home/pi/Desktop/images/08062026/19/45/image_08062026_19_46_05_60955.jpg MAIN: 2026-06-08 19:46:06,109 - INFO - duration: 0.9471165680006379 MAIN: 2026-06-08 19:46:06,109 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:47:05,118 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:47:05,551 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:47:05,774 - INFO - taking picture MAIN: 2026-06-08 19:47:05,774 - INFO - we take 797 photos in this while loop MAIN: 2026-06-08 19:47:05,774 - INFO - /home/pi/Desktop/images/08062026/19/46/image_08062026_19_47_05_59711.jpg MAIN: 2026-06-08 19:47:05,774 - INFO - duration: 0.9010206660022959 MAIN: 2026-06-08 19:47:05,774 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:48:04,793 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:48:04,833 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:48:05,488 - INFO - taking picture MAIN: 2026-06-08 19:48:05,488 - INFO - we take 798 photos in this while loop MAIN: 2026-06-08 19:48:05,489 - INFO - /home/pi/Desktop/images/08062026/19/47/image_08062026_19_48_04_59675.jpg MAIN: 2026-06-08 19:48:05,489 - INFO - duration: 0.9396368340021581 MAIN: 2026-06-08 19:48:05,489 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:49:04,733 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:49:04,853 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:49:05,391 - INFO - taking picture MAIN: 2026-06-08 19:49:05,391 - INFO - we take 799 photos in this while loop MAIN: 2026-06-08 19:49:05,391 - INFO - /home/pi/Desktop/images/08062026/19/48/image_08062026_19_49_04_59898.jpg MAIN: 2026-06-08 19:49:05,391 - INFO - duration: 0.9430000119973556 MAIN: 2026-06-08 19:49:05,391 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:50:04,749 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:50:05,431 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:50:05,443 - INFO - taking picture MAIN: 2026-06-08 19:50:05,444 - INFO - we take 800 photos in this while loop MAIN: 2026-06-08 19:50:05,444 - INFO - /home/pi/Desktop/images/08062026/19/49/image_08062026_19_50_04_60079.jpg MAIN: 2026-06-08 19:50:05,444 - INFO - duration: 0.917128966000746 MAIN: 2026-06-08 19:50:05,446 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:51:04,628 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:51:05,246 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:51:05,284 - INFO - taking picture MAIN: 2026-06-08 19:51:05,284 - INFO - we take 801 photos in this while loop MAIN: 2026-06-08 19:51:05,285 - INFO - /home/pi/Desktop/images/08062026/19/50/image_08062026_19_51_04_59845.jpg MAIN: 2026-06-08 19:51:05,285 - INFO - duration: 0.912750187999336 MAIN: 2026-06-08 19:51:05,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:52:05,482 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:52:05,579 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:52:06,286 - INFO - taking picture MAIN: 2026-06-08 19:52:06,287 - INFO - we take 802 photos in this while loop MAIN: 2026-06-08 19:52:06,287 - INFO - /home/pi/Desktop/images/08062026/19/51/image_08062026_19_52_05_60908.jpg MAIN: 2026-06-08 19:52:06,287 - INFO - duration: 1.0066707650039461 MAIN: 2026-06-08 19:52:06,287 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:53:05,481 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:53:05,596 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:53:06,174 - INFO - taking picture MAIN: 2026-06-08 19:53:06,175 - INFO - we take 803 photos in this while loop MAIN: 2026-06-08 19:53:06,175 - INFO - /home/pi/Desktop/images/08062026/19/52/image_08062026_19_53_05_59943.jpg MAIN: 2026-06-08 19:53:06,175 - INFO - duration: 0.9515094319940545 MAIN: 2026-06-08 19:53:06,175 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:54:04,947 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:54:05,545 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:54:06,197 - INFO - taking picture MAIN: 2026-06-08 19:54:06,197 - INFO - we take 804 photos in this while loop MAIN: 2026-06-08 19:54:06,197 - INFO - /home/pi/Desktop/images/08062026/19/53/image_08062026_19_54_05_60105.jpg MAIN: 2026-06-08 19:54:06,197 - INFO - duration: 0.8684302340043359 MAIN: 2026-06-08 19:54:06,198 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:55:05,055 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:55:05,459 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:55:06,161 - INFO - taking picture MAIN: 2026-06-08 19:55:06,161 - INFO - we take 805 photos in this while loop MAIN: 2026-06-08 19:55:06,161 - INFO - /home/pi/Desktop/images/08062026/19/54/image_08062026_19_55_05_59917.jpg MAIN: 2026-06-08 19:55:06,161 - INFO - duration: 0.9151516179990722 MAIN: 2026-06-08 19:55:06,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:56:05,168 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:56:05,585 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:56:06,323 - INFO - taking picture MAIN: 2026-06-08 19:56:06,323 - INFO - we take 806 photos in this while loop MAIN: 2026-06-08 19:56:06,323 - INFO - /home/pi/Desktop/images/08062026/19/55/image_08062026_19_56_05_60112.jpg MAIN: 2026-06-08 19:56:06,323 - INFO - duration: 0.9645374710016767 MAIN: 2026-06-08 19:56:06,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:57:05,104 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:57:05,533 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:57:06,233 - INFO - taking picture MAIN: 2026-06-08 19:57:06,234 - INFO - we take 807 photos in this while loop MAIN: 2026-06-08 19:57:06,234 - INFO - /home/pi/Desktop/images/08062026/19/56/image_08062026_19_57_05_59961.jpg MAIN: 2026-06-08 19:57:06,234 - INFO - duration: 0.9135090299969306 MAIN: 2026-06-08 19:57:06,234 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:58:05,336 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:58:05,573 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 19:58:05,998 - INFO - taking picture MAIN: 2026-06-08 19:58:05,999 - INFO - we take 808 photos in this while loop MAIN: 2026-06-08 19:58:05,999 - INFO - /home/pi/Desktop/images/08062026/19/57/image_08062026_19_58_05_59746.jpg MAIN: 2026-06-08 19:58:05,999 - INFO - duration: 0.931414783000946 MAIN: 2026-06-08 19:58:05,999 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 19:59:04,810 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 19:59:05,492 - INFO - taking picture MAIN: 2026-06-08 19:59:05,492 - INFO - we take 809 photos in this while loop MAIN: 2026-06-08 19:59:05,492 - INFO - /home/pi/Desktop/images/08062026/19/58/image_08062026_19_59_04_59523.jpg MAIN: 2026-06-08 19:59:05,492 - INFO - duration: 0.9015576099991449 MAIN: 2026-06-08 19:59:05,493 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/19/59' MAIN: 2026-06-08 19:59:05,538 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:00:04,678 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:00:05,379 - INFO - taking picture MAIN: 2026-06-08 20:00:05,379 - INFO - we take 810 photos in this while loop MAIN: 2026-06-08 20:00:05,379 - INFO - /home/pi/Desktop/images/08062026/19/59/image_08062026_20_00_04_59841.jpg MAIN: 2026-06-08 20:00:05,379 - INFO - duration: 0.9469307010003831 MAIN: 2026-06-08 20:00:05,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/00' MAIN: 2026-06-08 20:00:05,605 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:01:04,692 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:01:04,931 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:01:05,427 - INFO - taking picture MAIN: 2026-06-08 20:01:05,428 - INFO - we take 811 photos in this while loop MAIN: 2026-06-08 20:01:05,428 - INFO - /home/pi/Desktop/images/08062026/20/00/image_08062026_20_01_04_59993.jpg MAIN: 2026-06-08 20:01:05,428 - INFO - duration: 1.0023872449964983 MAIN: 2026-06-08 20:01:05,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:02:04,734 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:02:05,392 - INFO - taking picture MAIN: 2026-06-08 20:02:05,392 - INFO - we take 812 photos in this while loop MAIN: 2026-06-08 20:02:05,392 - INFO - /home/pi/Desktop/images/08062026/20/01/image_08062026_20_02_04_60048.jpg MAIN: 2026-06-08 20:02:05,392 - INFO - duration: 0.9183674520027125 MAIN: 2026-06-08 20:02:05,392 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/02' MAIN: 2026-06-08 20:02:05,415 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:03:04,635 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:03:05,324 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:03:05,339 - INFO - taking picture MAIN: 2026-06-08 20:03:05,339 - INFO - we take 813 photos in this while loop MAIN: 2026-06-08 20:03:05,339 - INFO - /home/pi/Desktop/images/08062026/20/02/image_08062026_20_03_04_59883.jpg MAIN: 2026-06-08 20:03:05,340 - INFO - duration: 0.9821495259966468 MAIN: 2026-06-08 20:03:05,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/03' MAIN: 2026-06-08 20:04:04,499 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:04:05,151 - INFO - taking picture MAIN: 2026-06-08 20:04:05,151 - INFO - we take 814 photos in this while loop MAIN: 2026-06-08 20:04:05,152 - INFO - /home/pi/Desktop/images/08062026/20/03/image_08062026_20_04_04_59923.jpg MAIN: 2026-06-08 20:04:05,152 - INFO - duration: 0.870848289996502 MAIN: 2026-06-08 20:04:05,152 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/04' MAIN: 2026-06-08 20:04:05,601 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:05:04,966 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:05:05,503 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:05:06,162 - INFO - taking picture MAIN: 2026-06-08 20:05:06,162 - INFO - we take 815 photos in this while loop MAIN: 2026-06-08 20:05:06,162 - INFO - /home/pi/Desktop/images/08062026/20/04/image_08062026_20_05_05_60967.jpg MAIN: 2026-06-08 20:05:06,163 - INFO - duration: 0.913894393001101 MAIN: 2026-06-08 20:05:06,163 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:06:05,243 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:06:05,479 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:06:06,131 - INFO - taking picture MAIN: 2026-06-08 20:06:06,131 - INFO - we take 816 photos in this while loop MAIN: 2026-06-08 20:06:06,131 - INFO - /home/pi/Desktop/images/08062026/20/05/image_08062026_20_06_05_59963.jpg MAIN: 2026-06-08 20:06:06,132 - INFO - duration: 0.9197653160008485 MAIN: 2026-06-08 20:06:06,132 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:07:04,504 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:07:05,019 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:07:05,165 - INFO - taking picture MAIN: 2026-06-08 20:07:05,165 - INFO - we take 817 photos in this while loop MAIN: 2026-06-08 20:07:05,166 - INFO - /home/pi/Desktop/images/08062026/20/06/image_08062026_20_07_04_59029.jpg MAIN: 2026-06-08 20:07:05,166 - INFO - duration: 0.92443103199912 MAIN: 2026-06-08 20:07:05,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:08:05,429 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:08:05,457 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:08:06,123 - INFO - taking picture MAIN: 2026-06-08 20:08:06,123 - INFO - we take 818 photos in this while loop MAIN: 2026-06-08 20:08:06,124 - INFO - /home/pi/Desktop/images/08062026/20/07/image_08062026_20_08_05_60911.jpg MAIN: 2026-06-08 20:08:06,124 - INFO - duration: 0.9705168029977358 MAIN: 2026-06-08 20:08:06,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:09:05,183 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:09:05,269 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:09:05,842 - INFO - taking picture MAIN: 2026-06-08 20:09:05,842 - INFO - we take 819 photos in this while loop MAIN: 2026-06-08 20:09:05,842 - INFO - /home/pi/Desktop/images/08062026/20/08/image_08062026_20_09_05_59761.jpg MAIN: 2026-06-08 20:09:05,842 - INFO - duration: 0.9278467789990827 MAIN: 2026-06-08 20:09:05,842 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:10:05,124 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:10:05,845 - INFO - taking picture MAIN: 2026-06-08 20:10:05,845 - INFO - we take 820 photos in this while loop MAIN: 2026-06-08 20:10:05,845 - INFO - /home/pi/Desktop/images/08062026/20/09/image_08062026_20_10_05_59948.jpg MAIN: 2026-06-08 20:10:05,845 - INFO - duration: 0.9819437779951841 MAIN: 2026-06-08 20:10:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/10' MAIN: 2026-06-08 20:10:05,954 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:11:04,855 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:11:05,553 - INFO - taking picture MAIN: 2026-06-08 20:11:05,553 - INFO - we take 821 photos in this while loop MAIN: 2026-06-08 20:11:05,553 - INFO - /home/pi/Desktop/images/08062026/20/10/image_08062026_20_11_04_59770.jpg MAIN: 2026-06-08 20:11:05,553 - INFO - duration: 0.9192030280028121 MAIN: 2026-06-08 20:11:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/11' MAIN: 2026-06-08 20:11:05,687 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:12:04,725 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:12:04,900 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:12:05,386 - INFO - taking picture MAIN: 2026-06-08 20:12:05,386 - INFO - we take 822 photos in this while loop MAIN: 2026-06-08 20:12:05,386 - INFO - /home/pi/Desktop/images/08062026/20/11/image_08062026_20_12_04_59835.jpg MAIN: 2026-06-08 20:12:05,386 - INFO - duration: 0.9168067450009403 MAIN: 2026-06-08 20:12:05,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:13:04,449 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:13:05,102 - INFO - taking picture MAIN: 2026-06-08 20:13:05,102 - INFO - we take 823 photos in this while loop MAIN: 2026-06-08 20:13:05,102 - INFO - /home/pi/Desktop/images/08062026/20/12/image_08062026_20_13_04_59715.jpg MAIN: 2026-06-08 20:13:05,102 - INFO - duration: 0.9174051890004193 MAIN: 2026-06-08 20:13:05,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/13' MAIN: 2026-06-08 20:13:05,230 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:14:05,323 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:14:05,518 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:14:06,220 - INFO - taking picture MAIN: 2026-06-08 20:14:06,220 - INFO - we take 824 photos in this while loop MAIN: 2026-06-08 20:14:06,220 - INFO - /home/pi/Desktop/images/08062026/20/13/image_08062026_20_14_05_61039.jpg MAIN: 2026-06-08 20:14:06,220 - INFO - duration: 0.9958688070037169 MAIN: 2026-06-08 20:14:06,220 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:15:05,360 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:15:05,833 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:15:06,021 - INFO - taking picture MAIN: 2026-06-08 20:15:06,021 - INFO - we take 825 photos in this while loop MAIN: 2026-06-08 20:15:06,021 - INFO - /home/pi/Desktop/images/08062026/20/14/image_08062026_20_15_05_59918.jpg MAIN: 2026-06-08 20:15:06,021 - INFO - duration: 0.8781129000053625 MAIN: 2026-06-08 20:15:06,021 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/15' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:16:05,113 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:16:05,774 - INFO - taking picture MAIN: 2026-06-08 20:16:05,774 - INFO - we take 826 photos in this while loop MAIN: 2026-06-08 20:16:05,774 - INFO - /home/pi/Desktop/images/08062026/20/15/image_08062026_20_16_05_59731.jpg MAIN: 2026-06-08 20:16:05,774 - INFO - duration: 0.8993652200006181 MAIN: 2026-06-08 20:16:05,775 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/16' MAIN: 2026-06-08 20:16:06,023 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:17:04,668 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:17:05,352 - INFO - taking picture MAIN: 2026-06-08 20:17:05,352 - INFO - we take 827 photos in this while loop MAIN: 2026-06-08 20:17:05,352 - INFO - /home/pi/Desktop/images/08062026/20/16/image_08062026_20_17_04_59580.jpg MAIN: 2026-06-08 20:17:05,352 - INFO - duration: 0.8967906580000999 MAIN: 2026-06-08 20:17:05,352 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/17' MAIN: 2026-06-08 20:17:05,582 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:18:04,505 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:18:05,158 - INFO - taking picture MAIN: 2026-06-08 20:18:05,159 - INFO - we take 828 photos in this while loop MAIN: 2026-06-08 20:18:05,159 - INFO - /home/pi/Desktop/images/08062026/20/17/image_08062026_20_18_04_59808.jpg MAIN: 2026-06-08 20:18:05,159 - INFO - duration: 0.8953458070027409 MAIN: 2026-06-08 20:18:05,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/18' MAIN: 2026-06-08 20:18:05,334 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:19:05,017 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:19:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:19:06,021 - INFO - taking picture MAIN: 2026-06-08 20:19:06,021 - INFO - we take 829 photos in this while loop MAIN: 2026-06-08 20:19:06,021 - INFO - /home/pi/Desktop/images/08062026/20/18/image_08062026_20_19_05_60893.jpg MAIN: 2026-06-08 20:19:06,021 - INFO - duration: 0.8646626769987051 MAIN: 2026-06-08 20:19:06,022 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:20:05,226 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:20:05,576 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:20:05,918 - INFO - taking picture MAIN: 2026-06-08 20:20:05,918 - INFO - we take 830 photos in this while loop MAIN: 2026-06-08 20:20:05,918 - INFO - /home/pi/Desktop/images/08062026/20/19/image_08062026_20_20_05_59843.jpg MAIN: 2026-06-08 20:20:05,918 - INFO - duration: 0.9173466459978954 MAIN: 2026-06-08 20:20:05,918 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:21:05,013 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:21:05,365 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:21:05,676 - INFO - taking picture MAIN: 2026-06-08 20:21:05,676 - INFO - we take 831 photos in this while loop MAIN: 2026-06-08 20:21:05,676 - INFO - /home/pi/Desktop/images/08062026/20/20/image_08062026_20_21_05_59743.jpg MAIN: 2026-06-08 20:21:05,676 - INFO - duration: 0.9318707750062458 MAIN: 2026-06-08 20:21:05,676 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:22:05,025 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:22:05,683 - INFO - taking picture MAIN: 2026-06-08 20:22:05,683 - INFO - we take 832 photos in this while loop MAIN: 2026-06-08 20:22:05,683 - INFO - /home/pi/Desktop/images/08062026/20/21/image_08062026_20_22_05_60045.jpg MAIN: 2026-06-08 20:22:05,683 - INFO - duration: 0.8936048149989801 MAIN: 2026-06-08 20:22:05,684 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/22' MAIN: 2026-06-08 20:22:05,806 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:23:04,724 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:23:05,418 - INFO - taking picture MAIN: 2026-06-08 20:23:05,418 - INFO - we take 833 photos in this while loop MAIN: 2026-06-08 20:23:05,418 - INFO - /home/pi/Desktop/images/08062026/20/22/image_08062026_20_23_04_59722.jpg MAIN: 2026-06-08 20:23:05,418 - INFO - duration: 0.9059326209971914 MAIN: 2026-06-08 20:23:05,419 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/23' MAIN: 2026-06-08 20:23:05,478 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:24:05,152 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:24:05,595 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:24:06,249 - INFO - taking picture MAIN: 2026-06-08 20:24:06,249 - INFO - we take 834 photos in this while loop MAIN: 2026-06-08 20:24:06,249 - INFO - /home/pi/Desktop/images/08062026/20/23/image_08062026_20_24_05_60869.jpg MAIN: 2026-06-08 20:24:06,249 - INFO - duration: 0.867293947005237 MAIN: 2026-06-08 20:24:06,249 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:25:05,022 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:25:05,463 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:25:06,149 - INFO - taking picture MAIN: 2026-06-08 20:25:06,149 - INFO - we take 835 photos in this while loop MAIN: 2026-06-08 20:25:06,149 - INFO - /home/pi/Desktop/images/08062026/20/24/image_08062026_20_25_05_59859.jpg MAIN: 2026-06-08 20:25:06,149 - INFO - duration: 0.9081116540037328 MAIN: 2026-06-08 20:25:06,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:26:05,299 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:26:05,341 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:26:05,999 - INFO - taking picture MAIN: 2026-06-08 20:26:06,000 - INFO - we take 836 photos in this while loop MAIN: 2026-06-08 20:26:06,000 - INFO - /home/pi/Desktop/images/08062026/20/25/image_08062026_20_26_05_59809.jpg MAIN: 2026-06-08 20:26:06,000 - INFO - duration: 0.9486476970050717 MAIN: 2026-06-08 20:26:06,000 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:27:04,889 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:27:05,359 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:27:05,585 - INFO - taking picture MAIN: 2026-06-08 20:27:05,585 - INFO - we take 837 photos in this while loop MAIN: 2026-06-08 20:27:05,585 - INFO - /home/pi/Desktop/images/08062026/20/26/image_08062026_20_27_04_59565.jpg MAIN: 2026-06-08 20:27:05,585 - INFO - duration: 0.9681533080001827 MAIN: 2026-06-08 20:27:05,585 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/27' MAIN: 2026-06-08 20:28:04,603 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:28:05,289 - INFO - taking picture MAIN: 2026-06-08 20:28:05,289 - INFO - we take 838 photos in this while loop MAIN: 2026-06-08 20:28:05,289 - INFO - /home/pi/Desktop/images/08062026/20/27/image_08062026_20_28_04_59768.jpg MAIN: 2026-06-08 20:28:05,289 - INFO - duration: 0.9036196529996232 MAIN: 2026-06-08 20:28:05,290 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/28' MAIN: 2026-06-08 20:28:05,711 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:29:04,914 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:29:05,628 - INFO - taking picture MAIN: 2026-06-08 20:29:05,628 - INFO - we take 839 photos in this while loop MAIN: 2026-06-08 20:29:05,628 - INFO - /home/pi/Desktop/images/08062026/20/28/image_08062026_20_29_04_60269.jpg MAIN: 2026-06-08 20:29:05,628 - INFO - duration: 0.9729781109999749 MAIN: 2026-06-08 20:29:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/29' MAIN: 2026-06-08 20:29:05,722 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:30:05,387 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:30:05,448 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:30:06,105 - INFO - taking picture MAIN: 2026-06-08 20:30:06,106 - INFO - we take 840 photos in this while loop MAIN: 2026-06-08 20:30:06,106 - INFO - /home/pi/Desktop/images/08062026/20/29/image_08062026_20_30_05_60565.jpg MAIN: 2026-06-08 20:30:06,106 - INFO - duration: 0.8848399999988033 MAIN: 2026-06-08 20:30:06,106 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:31:04,505 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:31:04,898 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:31:05,166 - INFO - taking picture MAIN: 2026-06-08 20:31:05,167 - INFO - we take 841 photos in this while loop MAIN: 2026-06-08 20:31:05,167 - INFO - /home/pi/Desktop/images/08062026/20/30/image_08062026_20_31_04_59028.jpg MAIN: 2026-06-08 20:31:05,167 - INFO - duration: 0.9178652839982533 MAIN: 2026-06-08 20:31:05,167 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:32:05,210 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:32:05,529 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:32:06,193 - INFO - taking picture MAIN: 2026-06-08 20:32:06,193 - INFO - we take 842 photos in this while loop MAIN: 2026-06-08 20:32:06,193 - INFO - /home/pi/Desktop/images/08062026/20/31/image_08062026_20_32_05_61011.jpg MAIN: 2026-06-08 20:32:06,193 - INFO - duration: 0.9326379359990824 MAIN: 2026-06-08 20:32:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:33:05,122 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:33:05,250 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:33:05,779 - INFO - taking picture MAIN: 2026-06-08 20:33:05,779 - INFO - we take 843 photos in this while loop MAIN: 2026-06-08 20:33:05,779 - INFO - /home/pi/Desktop/images/08062026/20/32/image_08062026_20_33_05_59593.jpg MAIN: 2026-06-08 20:33:05,779 - INFO - duration: 0.9255251859940472 MAIN: 2026-06-08 20:33:05,779 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:34:05,298 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:34:05,753 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:34:05,964 - INFO - taking picture MAIN: 2026-06-08 20:34:05,964 - INFO - we take 844 photos in this while loop MAIN: 2026-06-08 20:34:05,964 - INFO - /home/pi/Desktop/images/08062026/20/33/image_08062026_20_34_05_60177.jpg MAIN: 2026-06-08 20:34:05,965 - INFO - duration: 0.9330217409951729 MAIN: 2026-06-08 20:34:05,965 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:35:04,818 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:35:05,251 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:35:05,948 - INFO - taking picture MAIN: 2026-06-08 20:35:05,949 - INFO - we take 845 photos in this while loop MAIN: 2026-06-08 20:35:05,949 - INFO - /home/pi/Desktop/images/08062026/20/34/image_08062026_20_35_05_60006.jpg MAIN: 2026-06-08 20:35:05,949 - INFO - duration: 0.9105552129985881 MAIN: 2026-06-08 20:35:05,949 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:36:04,809 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:36:05,010 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:36:05,663 - INFO - taking picture MAIN: 2026-06-08 20:36:05,664 - INFO - we take 846 photos in this while loop MAIN: 2026-06-08 20:36:05,664 - INFO - /home/pi/Desktop/images/08062026/20/35/image_08062026_20_36_05_59691.jpg MAIN: 2026-06-08 20:36:05,664 - INFO - duration: 0.9339849649986718 MAIN: 2026-06-08 20:36:05,664 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:37:04,654 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:37:05,010 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:37:05,326 - INFO - taking picture MAIN: 2026-06-08 20:37:05,327 - INFO - we take 847 photos in this while loop MAIN: 2026-06-08 20:37:05,327 - INFO - /home/pi/Desktop/images/08062026/20/36/image_08062026_20_37_04_59681.jpg MAIN: 2026-06-08 20:37:05,327 - INFO - duration: 0.9160063099989202 MAIN: 2026-06-08 20:37:05,327 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:38:04,676 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:38:05,326 - INFO - taking picture MAIN: 2026-06-08 20:38:05,326 - INFO - we take 848 photos in this while loop MAIN: 2026-06-08 20:38:05,326 - INFO - /home/pi/Desktop/images/08062026/20/37/image_08062026_20_38_04_59990.jpg MAIN: 2026-06-08 20:38:05,327 - INFO - duration: 0.9246987410006113 MAIN: 2026-06-08 20:38:05,327 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/38' MAIN: 2026-06-08 20:38:05,462 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:39:04,738 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:39:05,348 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:39:05,394 - INFO - taking picture MAIN: 2026-06-08 20:39:05,394 - INFO - we take 849 photos in this while loop MAIN: 2026-06-08 20:39:05,394 - INFO - /home/pi/Desktop/images/08062026/20/38/image_08062026_20_39_04_60074.jpg MAIN: 2026-06-08 20:39:05,394 - INFO - duration: 0.9179829120039358 MAIN: 2026-06-08 20:39:05,395 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/39' MAIN: 2026-06-08 20:40:04,482 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:40:05,240 - INFO - taking picture MAIN: 2026-06-08 20:40:05,240 - INFO - we take 850 photos in this while loop MAIN: 2026-06-08 20:40:05,241 - INFO - /home/pi/Desktop/images/08062026/20/39/image_08062026_20_40_04_59735.jpg MAIN: 2026-06-08 20:40:05,241 - INFO - duration: 1.0286073919996852 MAIN: 2026-06-08 20:40:05,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/40' MAIN: 2026-06-08 20:40:06,040 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:41:05,419 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:41:05,613 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:41:06,114 - INFO - taking picture MAIN: 2026-06-08 20:41:06,114 - INFO - we take 851 photos in this while loop MAIN: 2026-06-08 20:41:06,114 - INFO - /home/pi/Desktop/images/08062026/20/40/image_08062026_20_41_05_60939.jpg MAIN: 2026-06-08 20:41:06,114 - INFO - duration: 0.9626000019998173 MAIN: 2026-06-08 20:41:06,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:42:04,976 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:42:05,238 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:42:05,890 - INFO - taking picture MAIN: 2026-06-08 20:42:05,890 - INFO - we take 852 photos in this while loop MAIN: 2026-06-08 20:42:05,890 - INFO - /home/pi/Desktop/images/08062026/20/41/image_08062026_20_42_05_59834.jpg MAIN: 2026-06-08 20:42:05,890 - INFO - duration: 0.9036436750029679 MAIN: 2026-06-08 20:42:05,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:43:04,794 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:43:04,937 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:43:05,590 - INFO - taking picture MAIN: 2026-06-08 20:43:05,590 - INFO - we take 853 photos in this while loop MAIN: 2026-06-08 20:43:05,590 - INFO - /home/pi/Desktop/images/08062026/20/42/image_08062026_20_43_04_59681.jpg MAIN: 2026-06-08 20:43:05,591 - INFO - duration: 0.92274127699784 MAIN: 2026-06-08 20:43:05,591 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:44:04,669 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:44:05,292 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:44:05,323 - INFO - taking picture MAIN: 2026-06-08 20:44:05,323 - INFO - we take 854 photos in this while loop MAIN: 2026-06-08 20:44:05,323 - INFO - /home/pi/Desktop/images/08062026/20/43/image_08062026_20_44_04_59740.jpg MAIN: 2026-06-08 20:44:05,324 - INFO - duration: 0.9153115630033426 MAIN: 2026-06-08 20:44:05,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:45:04,613 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:45:05,299 - INFO - taking picture MAIN: 2026-06-08 20:45:05,300 - INFO - we take 855 photos in this while loop MAIN: 2026-06-08 20:45:05,300 - INFO - /home/pi/Desktop/images/08062026/20/44/image_08062026_20_45_04_59965.jpg MAIN: 2026-06-08 20:45:05,300 - INFO - duration: 0.9258447350002825 MAIN: 2026-06-08 20:45:05,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/45' MAIN: 2026-06-08 20:45:05,538 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:46:05,499 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:46:05,550 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:46:06,257 - INFO - taking picture MAIN: 2026-06-08 20:46:06,258 - INFO - we take 856 photos in this while loop MAIN: 2026-06-08 20:46:06,258 - INFO - /home/pi/Desktop/images/08062026/20/45/image_08062026_20_46_05_60897.jpg MAIN: 2026-06-08 20:46:06,258 - INFO - duration: 0.9863422839989653 MAIN: 2026-06-08 20:46:06,258 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:47:05,406 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:47:05,512 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:47:06,113 - INFO - taking picture MAIN: 2026-06-08 20:47:06,113 - INFO - we take 857 photos in this while loop MAIN: 2026-06-08 20:47:06,113 - INFO - /home/pi/Desktop/images/08062026/20/46/image_08062026_20_47_05_59851.jpg MAIN: 2026-06-08 20:47:06,114 - INFO - duration: 0.9905555970035493 MAIN: 2026-06-08 20:47:06,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:48:04,979 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:48:05,328 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:48:06,030 - INFO - taking picture MAIN: 2026-06-08 20:48:06,030 - INFO - we take 858 photos in this while loop MAIN: 2026-06-08 20:48:06,030 - INFO - /home/pi/Desktop/images/08062026/20/47/image_08062026_20_48_05_59952.jpg MAIN: 2026-06-08 20:48:06,030 - INFO - duration: 0.9541163690009853 MAIN: 2026-06-08 20:48:06,030 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:49:04,663 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:49:04,988 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:49:05,642 - INFO - taking picture MAIN: 2026-06-08 20:49:05,642 - INFO - we take 859 photos in this while loop MAIN: 2026-06-08 20:49:05,642 - INFO - /home/pi/Desktop/images/08062026/20/48/image_08062026_20_49_04_59689.jpg MAIN: 2026-06-08 20:49:05,643 - INFO - duration: 0.8773774020010023 MAIN: 2026-06-08 20:49:05,643 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:50:04,754 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:50:05,330 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:50:05,415 - INFO - taking picture MAIN: 2026-06-08 20:50:05,416 - INFO - we take 860 photos in this while loop MAIN: 2026-06-08 20:50:05,416 - INFO - /home/pi/Desktop/images/08062026/20/49/image_08062026_20_50_04_59770.jpg MAIN: 2026-06-08 20:50:05,416 - INFO - duration: 0.8798033529965323 MAIN: 2026-06-08 20:50:05,416 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/50' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:51:04,580 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:51:05,232 - INFO - taking picture MAIN: 2026-06-08 20:51:05,232 - INFO - we take 861 photos in this while loop MAIN: 2026-06-08 20:51:05,232 - INFO - /home/pi/Desktop/images/08062026/20/50/image_08062026_20_51_04_59789.jpg MAIN: 2026-06-08 20:51:05,232 - INFO - duration: 0.9064797510000062 MAIN: 2026-06-08 20:51:05,233 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/51' MAIN: 2026-06-08 20:51:05,366 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:52:05,460 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:52:05,729 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:52:06,152 - INFO - taking picture MAIN: 2026-06-08 20:52:06,152 - INFO - we take 862 photos in this while loop MAIN: 2026-06-08 20:52:06,152 - INFO - /home/pi/Desktop/images/08062026/20/51/image_08062026_20_52_05_60867.jpg MAIN: 2026-06-08 20:52:06,152 - INFO - duration: 0.9585103259960306 MAIN: 2026-06-08 20:52:06,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:53:04,908 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:53:05,469 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:53:06,164 - INFO - taking picture MAIN: 2026-06-08 20:53:06,164 - INFO - we take 863 photos in this while loop MAIN: 2026-06-08 20:53:06,164 - INFO - /home/pi/Desktop/images/08062026/20/52/image_08062026_20_53_05_60054.jpg MAIN: 2026-06-08 20:53:06,165 - INFO - duration: 0.9165509169979487 MAIN: 2026-06-08 20:53:06,165 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:54:05,049 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:54:05,356 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:54:06,009 - INFO - taking picture MAIN: 2026-06-08 20:54:06,009 - INFO - we take 864 photos in this while loop MAIN: 2026-06-08 20:54:06,009 - INFO - /home/pi/Desktop/images/08062026/20/53/image_08062026_20_54_05_59875.jpg MAIN: 2026-06-08 20:54:06,010 - INFO - duration: 0.8856683030026034 MAIN: 2026-06-08 20:54:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/54' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:55:05,037 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:55:05,201 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:55:05,745 - INFO - taking picture MAIN: 2026-06-08 20:55:05,745 - INFO - we take 865 photos in this while loop MAIN: 2026-06-08 20:55:05,745 - INFO - /home/pi/Desktop/images/08062026/20/54/image_08062026_20_55_05_59681.jpg MAIN: 2026-06-08 20:55:05,745 - INFO - duration: 0.9401268579968018 MAIN: 2026-06-08 20:55:05,745 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:56:05,062 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:56:05,434 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:56:05,770 - INFO - taking picture MAIN: 2026-06-08 20:56:05,770 - INFO - we take 866 photos in this while loop MAIN: 2026-06-08 20:56:05,770 - INFO - /home/pi/Desktop/images/08062026/20/55/image_08062026_20_56_05_59992.jpg MAIN: 2026-06-08 20:56:05,770 - INFO - duration: 0.9729822930021328 MAIN: 2026-06-08 20:56:05,771 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:57:04,957 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:57:05,342 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:57:05,621 - INFO - taking picture MAIN: 2026-06-08 20:57:05,621 - INFO - we take 867 photos in this while loop MAIN: 2026-06-08 20:57:05,622 - INFO - /home/pi/Desktop/images/08062026/20/56/image_08062026_20_57_04_59903.jpg MAIN: 2026-06-08 20:57:05,622 - INFO - duration: 0.9208444879986928 MAIN: 2026-06-08 20:57:05,622 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:58:04,718 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:58:05,029 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:58:05,431 - INFO - taking picture MAIN: 2026-06-08 20:58:05,431 - INFO - we take 868 photos in this while loop MAIN: 2026-06-08 20:58:05,431 - INFO - /home/pi/Desktop/images/08062026/20/57/image_08062026_20_58_04_59732.jpg MAIN: 2026-06-08 20:58:05,431 - INFO - duration: 0.9979422199976398 MAIN: 2026-06-08 20:58:05,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 20:59:04,711 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 20:59:04,960 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 20:59:05,611 - INFO - taking picture MAIN: 2026-06-08 20:59:05,611 - INFO - we take 869 photos in this while loop MAIN: 2026-06-08 20:59:05,611 - INFO - /home/pi/Desktop/images/08062026/20/58/image_08062026_20_59_04_60263.jpg MAIN: 2026-06-08 20:59:05,612 - INFO - duration: 0.9142805579976994 MAIN: 2026-06-08 20:59:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/20/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:00:04,749 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:00:05,334 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:00:05,441 - INFO - taking picture MAIN: 2026-06-08 21:00:05,441 - INFO - we take 870 photos in this while loop MAIN: 2026-06-08 21:00:05,441 - INFO - /home/pi/Desktop/images/08062026/20/59/image_08062026_21_00_04_59811.jpg MAIN: 2026-06-08 21:00:05,441 - INFO - duration: 0.9322694279981079 MAIN: 2026-06-08 21:00:05,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/00' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:01:04,541 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:01:05,205 - INFO - taking picture MAIN: 2026-06-08 21:01:05,206 - INFO - we take 871 photos in this while loop MAIN: 2026-06-08 21:01:05,206 - INFO - /home/pi/Desktop/images/08062026/21/00/image_08062026_21_01_04_59790.jpg MAIN: 2026-06-08 21:01:05,206 - INFO - duration: 0.9059051039948827 MAIN: 2026-06-08 21:01:05,206 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/01' MAIN: 2026-06-08 21:01:05,375 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:02:05,305 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:02:05,471 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:02:06,006 - INFO - taking picture MAIN: 2026-06-08 21:02:06,006 - INFO - we take 872 photos in this while loop MAIN: 2026-06-08 21:02:06,006 - INFO - /home/pi/Desktop/images/08062026/21/01/image_08062026_21_02_05_60747.jpg MAIN: 2026-06-08 21:02:06,006 - INFO - duration: 0.9585757830063812 MAIN: 2026-06-08 21:02:06,007 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/02' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:03:05,309 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:03:05,516 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:03:05,971 - INFO - taking picture MAIN: 2026-06-08 21:03:05,971 - INFO - we take 873 photos in this while loop MAIN: 2026-06-08 21:03:05,971 - INFO - /home/pi/Desktop/images/08062026/21/02/image_08062026_21_03_05_59996.jpg MAIN: 2026-06-08 21:03:05,972 - INFO - duration: 0.927162515996315 MAIN: 2026-06-08 21:03:05,972 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:04:04,953 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:04:05,695 - INFO - taking picture MAIN: 2026-06-08 21:04:05,696 - INFO - we take 874 photos in this while loop MAIN: 2026-06-08 21:04:05,697 - INFO - /home/pi/Desktop/images/08062026/21/03/image_08062026_21_04_04_59693.jpg MAIN: 2026-06-08 21:04:05,697 - INFO - duration: 0.9587795460029156 MAIN: 2026-06-08 21:04:05,697 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/04' MAIN: 2026-06-08 21:04:05,949 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:05:04,765 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:05:05,011 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:05:05,442 - INFO - taking picture MAIN: 2026-06-08 21:05:05,442 - INFO - we take 875 photos in this while loop MAIN: 2026-06-08 21:05:05,442 - INFO - /home/pi/Desktop/images/08062026/21/04/image_08062026_21_05_04_59801.jpg MAIN: 2026-06-08 21:05:05,442 - INFO - duration: 0.9026157659973251 MAIN: 2026-06-08 21:05:05,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/05' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:06:05,333 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:06:05,628 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:06:06,276 - INFO - taking picture MAIN: 2026-06-08 21:06:06,276 - INFO - we take 876 photos in this while loop MAIN: 2026-06-08 21:06:06,276 - INFO - /home/pi/Desktop/images/08062026/21/05/image_08062026_21_06_05_60842.jpg MAIN: 2026-06-08 21:06:06,276 - INFO - duration: 0.8940726950022508 MAIN: 2026-06-08 21:06:06,277 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:07:05,109 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:07:05,305 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:07:05,957 - INFO - taking picture MAIN: 2026-06-08 21:07:05,957 - INFO - we take 877 photos in this while loop MAIN: 2026-06-08 21:07:05,957 - INFO - /home/pi/Desktop/images/08062026/21/06/image_08062026_21_07_05_59661.jpg MAIN: 2026-06-08 21:07:05,958 - INFO - duration: 0.9134185770017211 MAIN: 2026-06-08 21:07:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/07' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:08:05,212 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:08:05,490 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:08:05,873 - INFO - taking picture MAIN: 2026-06-08 21:08:05,874 - INFO - we take 878 photos in this while loop MAIN: 2026-06-08 21:08:05,874 - INFO - /home/pi/Desktop/images/08062026/21/07/image_08062026_21_08_05_59889.jpg MAIN: 2026-06-08 21:08:05,874 - INFO - duration: 0.9406953230063664 MAIN: 2026-06-08 21:08:05,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/08' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:09:04,926 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:09:05,493 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:09:05,598 - INFO - taking picture MAIN: 2026-06-08 21:09:05,599 - INFO - we take 879 photos in this while loop MAIN: 2026-06-08 21:09:05,599 - INFO - /home/pi/Desktop/images/08062026/21/08/image_08062026_21_09_04_59720.jpg MAIN: 2026-06-08 21:09:05,599 - INFO - duration: 0.9454535490003764 MAIN: 2026-06-08 21:09:05,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/09' MAIN: 2026-06-08 21:10:05,189 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:10:05,879 - INFO - taking picture MAIN: 2026-06-08 21:10:05,879 - INFO - we take 880 photos in this while loop MAIN: 2026-06-08 21:10:05,879 - INFO - /home/pi/Desktop/images/08062026/21/09/image_08062026_21_10_05_60300.jpg MAIN: 2026-06-08 21:10:05,880 - INFO - duration: 0.9249838239993551 MAIN: 2026-06-08 21:10:05,880 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/10' MAIN: 2026-06-08 21:10:06,355 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:11:04,758 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:11:04,782 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:11:05,439 - INFO - taking picture MAIN: 2026-06-08 21:11:05,439 - INFO - we take 881 photos in this while loop MAIN: 2026-06-08 21:11:05,439 - INFO - /home/pi/Desktop/images/08062026/21/10/image_08062026_21_11_04_59557.jpg MAIN: 2026-06-08 21:11:05,439 - INFO - duration: 0.9271098770041135 MAIN: 2026-06-08 21:11:05,440 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:12:04,696 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:12:04,955 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:12:05,362 - INFO - taking picture MAIN: 2026-06-08 21:12:05,362 - INFO - we take 882 photos in this while loop MAIN: 2026-06-08 21:12:05,362 - INFO - /home/pi/Desktop/images/08062026/21/11/image_08062026_21_12_04_59909.jpg MAIN: 2026-06-08 21:12:05,363 - INFO - duration: 0.9410223230006522 MAIN: 2026-06-08 21:12:05,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:13:04,462 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:13:04,966 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:13:05,157 - INFO - taking picture MAIN: 2026-06-08 21:13:05,157 - INFO - we take 883 photos in this while loop MAIN: 2026-06-08 21:13:05,157 - INFO - /home/pi/Desktop/images/08062026/21/12/image_08062026_21_13_04_59778.jpg MAIN: 2026-06-08 21:13:05,158 - INFO - duration: 0.9579739149994566 MAIN: 2026-06-08 21:13:05,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:14:05,482 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:14:05,571 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:14:06,271 - INFO - taking picture MAIN: 2026-06-08 21:14:06,271 - INFO - we take 884 photos in this while loop MAIN: 2026-06-08 21:14:06,271 - INFO - /home/pi/Desktop/images/08062026/21/13/image_08062026_21_14_05_61102.jpg MAIN: 2026-06-08 21:14:06,272 - INFO - duration: 0.9692186329994001 MAIN: 2026-06-08 21:14:06,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/14' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:15:04,886 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:15:05,615 - INFO - taking picture MAIN: 2026-06-08 21:15:05,615 - INFO - we take 885 photos in this while loop MAIN: 2026-06-08 21:15:05,615 - INFO - /home/pi/Desktop/images/08062026/21/14/image_08062026_21_15_04_59319.jpg MAIN: 2026-06-08 21:15:05,615 - INFO - duration: 0.994042463004007 MAIN: 2026-06-08 21:15:05,616 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/15' MAIN: 2026-06-08 21:15:05,759 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:16:04,893 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:16:05,563 - INFO - taking picture MAIN: 2026-06-08 21:16:05,563 - INFO - we take 886 photos in this while loop MAIN: 2026-06-08 21:16:05,563 - INFO - /home/pi/Desktop/images/08062026/21/15/image_08062026_21_16_04_60028.jpg MAIN: 2026-06-08 21:16:05,563 - INFO - duration: 0.9130997710017255 MAIN: 2026-06-08 21:16:05,563 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/16' MAIN: 2026-06-08 21:16:05,858 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:17:04,610 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:17:04,748 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:17:05,271 - INFO - taking picture MAIN: 2026-06-08 21:17:05,271 - INFO - we take 887 photos in this while loop MAIN: 2026-06-08 21:17:05,271 - INFO - /home/pi/Desktop/images/08062026/21/16/image_08062026_21_17_04_59699.jpg MAIN: 2026-06-08 21:17:05,271 - INFO - duration: 0.9222233469990897 MAIN: 2026-06-08 21:17:05,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:18:04,446 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:18:05,105 - INFO - taking picture MAIN: 2026-06-08 21:18:05,105 - INFO - we take 888 photos in this while loop MAIN: 2026-06-08 21:18:05,106 - INFO - /home/pi/Desktop/images/08062026/21/17/image_08062026_21_18_04_59846.jpg MAIN: 2026-06-08 21:18:05,106 - INFO - duration: 0.910454346005281 MAIN: 2026-06-08 21:18:05,106 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/18' MAIN: 2026-06-08 21:18:05,271 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:19:04,987 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:19:05,261 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:19:05,913 - INFO - taking picture MAIN: 2026-06-08 21:19:05,913 - INFO - we take 889 photos in this while loop MAIN: 2026-06-08 21:19:05,913 - INFO - /home/pi/Desktop/images/08062026/21/18/image_08062026_21_19_05_60790.jpg MAIN: 2026-06-08 21:19:05,913 - INFO - duration: 0.9271695819988963 MAIN: 2026-06-08 21:19:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:20:05,028 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:20:05,689 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:20:05,697 - INFO - taking picture MAIN: 2026-06-08 21:20:05,697 - INFO - we take 890 photos in this while loop MAIN: 2026-06-08 21:20:05,697 - INFO - /home/pi/Desktop/images/08062026/21/19/image_08062026_21_20_05_59809.jpg MAIN: 2026-06-08 21:20:05,698 - INFO - duration: 0.902173201997357 MAIN: 2026-06-08 21:20:05,699 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/20' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:21:04,794 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:21:05,443 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:21:05,453 - INFO - taking picture MAIN: 2026-06-08 21:21:05,453 - INFO - we take 891 photos in this while loop MAIN: 2026-06-08 21:21:05,453 - INFO - /home/pi/Desktop/images/08062026/21/20/image_08062026_21_21_04_59732.jpg MAIN: 2026-06-08 21:21:05,454 - INFO - duration: 0.9252989099986735 MAIN: 2026-06-08 21:21:05,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/21' MAIN: 2026-06-08 21:22:04,532 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:22:05,186 - INFO - taking picture MAIN: 2026-06-08 21:22:05,186 - INFO - we take 892 photos in this while loop MAIN: 2026-06-08 21:22:05,187 - INFO - /home/pi/Desktop/images/08062026/21/21/image_08062026_21_22_04_59786.jpg MAIN: 2026-06-08 21:22:05,187 - INFO - duration: 0.8715914730055374 MAIN: 2026-06-08 21:22:05,187 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/22' MAIN: 2026-06-08 21:22:05,697 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:23:04,717 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:23:05,533 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:23:06,187 - INFO - taking picture MAIN: 2026-06-08 21:23:06,188 - INFO - we take 893 photos in this while loop MAIN: 2026-06-08 21:23:06,188 - INFO - /home/pi/Desktop/images/08062026/21/22/image_08062026_21_23_05_60946.jpg MAIN: 2026-06-08 21:23:06,188 - INFO - duration: 0.9267499549969216 MAIN: 2026-06-08 21:23:06,188 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:24:05,110 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:24:05,373 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:24:06,028 - INFO - taking picture MAIN: 2026-06-08 21:24:06,028 - INFO - we take 894 photos in this while loop MAIN: 2026-06-08 21:24:06,028 - INFO - /home/pi/Desktop/images/08062026/21/23/image_08062026_21_24_05_59849.jpg MAIN: 2026-06-08 21:24:06,028 - INFO - duration: 0.9180304199981038 MAIN: 2026-06-08 21:24:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:25:05,170 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:25:05,411 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:25:06,097 - INFO - taking picture MAIN: 2026-06-08 21:25:06,098 - INFO - we take 895 photos in this while loop MAIN: 2026-06-08 21:25:06,098 - INFO - /home/pi/Desktop/images/08062026/21/24/image_08062026_21_25_05_60087.jpg MAIN: 2026-06-08 21:25:06,098 - INFO - duration: 0.8998901680024574 MAIN: 2026-06-08 21:25:06,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:26:05,162 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:26:05,281 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:26:05,877 - INFO - taking picture MAIN: 2026-06-08 21:26:05,878 - INFO - we take 896 photos in this while loop MAIN: 2026-06-08 21:26:05,878 - INFO - /home/pi/Desktop/images/08062026/21/25/image_08062026_21_26_05_59688.jpg MAIN: 2026-06-08 21:26:05,878 - INFO - duration: 0.9916527719979058 MAIN: 2026-06-08 21:26:05,878 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:27:04,911 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:27:05,439 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:27:05,627 - INFO - taking picture MAIN: 2026-06-08 21:27:05,628 - INFO - we take 897 photos in this while loop MAIN: 2026-06-08 21:27:05,628 - INFO - /home/pi/Desktop/images/08062026/21/26/image_08062026_21_27_04_59732.jpg MAIN: 2026-06-08 21:27:05,628 - INFO - duration: 1.0085621409962187 MAIN: 2026-06-08 21:27:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:28:04,898 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:28:05,550 - INFO - taking picture MAIN: 2026-06-08 21:28:05,550 - INFO - we take 898 photos in this while loop MAIN: 2026-06-08 21:28:05,550 - INFO - /home/pi/Desktop/images/08062026/21/27/image_08062026_21_28_04_60031.jpg MAIN: 2026-06-08 21:28:05,550 - INFO - duration: 0.9000764049997088 MAIN: 2026-06-08 21:28:05,551 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/28' MAIN: 2026-06-08 21:28:05,712 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:29:04,505 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:29:04,701 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:29:05,204 - INFO - taking picture MAIN: 2026-06-08 21:29:05,204 - INFO - we take 899 photos in this while loop MAIN: 2026-06-08 21:29:05,205 - INFO - /home/pi/Desktop/images/08062026/21/28/image_08062026_21_29_04_59583.jpg MAIN: 2026-06-08 21:29:05,205 - INFO - duration: 0.9712320170001476 MAIN: 2026-06-08 21:29:05,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:30:04,705 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:30:05,352 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:30:05,442 - INFO - taking picture MAIN: 2026-06-08 21:30:05,442 - INFO - we take 900 photos in this while loop MAIN: 2026-06-08 21:30:05,442 - INFO - /home/pi/Desktop/images/08062026/21/29/image_08062026_21_30_04_60232.jpg MAIN: 2026-06-08 21:30:05,442 - INFO - duration: 0.9764750870017451 MAIN: 2026-06-08 21:30:05,443 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:31:04,605 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:31:04,839 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:31:05,270 - INFO - taking picture MAIN: 2026-06-08 21:31:05,271 - INFO - we take 901 photos in this while loop MAIN: 2026-06-08 21:31:05,271 - INFO - /home/pi/Desktop/images/08062026/21/30/image_08062026_21_31_04_59877.jpg MAIN: 2026-06-08 21:31:05,271 - INFO - duration: 0.9276272549977875 MAIN: 2026-06-08 21:31:05,271 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:32:05,369 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:32:05,596 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:32:06,247 - INFO - taking picture MAIN: 2026-06-08 21:32:06,247 - INFO - we take 902 photos in this while loop MAIN: 2026-06-08 21:32:06,247 - INFO - /home/pi/Desktop/images/08062026/21/31/image_08062026_21_32_05_61008.jpg MAIN: 2026-06-08 21:32:06,247 - INFO - duration: 0.8960547550013871 MAIN: 2026-06-08 21:32:06,248 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/32' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:33:05,256 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:33:05,459 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:33:05,963 - INFO - taking picture MAIN: 2026-06-08 21:33:05,964 - INFO - we take 903 photos in this while loop MAIN: 2026-06-08 21:33:05,964 - INFO - /home/pi/Desktop/images/08062026/21/32/image_08062026_21_33_05_59617.jpg MAIN: 2026-06-08 21:33:05,964 - INFO - duration: 0.9947266669987584 MAIN: 2026-06-08 21:33:05,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:34:05,380 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:34:05,659 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:34:06,071 - INFO - taking picture MAIN: 2026-06-08 21:34:06,071 - INFO - we take 904 photos in this while loop MAIN: 2026-06-08 21:34:06,072 - INFO - /home/pi/Desktop/images/08062026/21/33/image_08062026_21_34_05_60159.jpg MAIN: 2026-06-08 21:34:06,072 - INFO - duration: 0.9428440800038516 MAIN: 2026-06-08 21:34:06,072 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:35:05,197 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:35:05,799 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:35:05,937 - INFO - taking picture MAIN: 2026-06-08 21:35:05,937 - INFO - we take 905 photos in this while loop MAIN: 2026-06-08 21:35:05,937 - INFO - /home/pi/Desktop/images/08062026/21/34/image_08062026_21_35_05_59823.jpg MAIN: 2026-06-08 21:35:05,937 - INFO - duration: 0.9848872119982843 MAIN: 2026-06-08 21:35:05,938 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:36:04,857 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:36:04,974 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:36:05,630 - INFO - taking picture MAIN: 2026-06-08 21:36:05,631 - INFO - we take 906 photos in this while loop MAIN: 2026-06-08 21:36:05,631 - INFO - /home/pi/Desktop/images/08062026/21/35/image_08062026_21_36_04_59743.jpg MAIN: 2026-06-08 21:36:05,631 - INFO - duration: 0.9351768620035728 MAIN: 2026-06-08 21:36:05,631 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:37:04,723 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:37:04,896 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:37:05,384 - INFO - taking picture MAIN: 2026-06-08 21:37:05,385 - INFO - we take 907 photos in this while loop MAIN: 2026-06-08 21:37:05,385 - INFO - /home/pi/Desktop/images/08062026/21/36/image_08062026_21_37_04_59781.jpg MAIN: 2026-06-08 21:37:05,385 - INFO - duration: 0.9074271170029533 MAIN: 2026-06-08 21:37:05,385 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:38:04,489 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:38:05,140 - INFO - taking picture MAIN: 2026-06-08 21:38:05,141 - INFO - we take 908 photos in this while loop MAIN: 2026-06-08 21:38:05,141 - INFO - /home/pi/Desktop/images/08062026/21/37/image_08062026_21_38_04_59760.jpg MAIN: 2026-06-08 21:38:05,141 - INFO - duration: 0.9025076899997657 MAIN: 2026-06-08 21:38:05,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/38' MAIN: 2026-06-08 21:38:05,430 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:39:05,439 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:39:05,462 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:39:06,117 - INFO - taking picture MAIN: 2026-06-08 21:39:06,117 - INFO - we take 909 photos in this while loop MAIN: 2026-06-08 21:39:06,117 - INFO - /home/pi/Desktop/images/08062026/21/38/image_08062026_21_39_05_60941.jpg MAIN: 2026-06-08 21:39:06,118 - INFO - duration: 0.9372672829995281 MAIN: 2026-06-08 21:39:06,118 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:40:05,397 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:40:06,088 - INFO - taking picture MAIN: 2026-06-08 21:40:06,088 - INFO - we take 910 photos in this while loop MAIN: 2026-06-08 21:40:06,088 - INFO - /home/pi/Desktop/images/08062026/21/39/image_08062026_21_40_05_59945.jpg MAIN: 2026-06-08 21:40:06,089 - INFO - duration: 0.9628875240014168 MAIN: 2026-06-08 21:40:06,089 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/40' MAIN: 2026-06-08 21:40:06,153 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:41:04,897 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:41:05,127 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:41:05,804 - INFO - taking picture MAIN: 2026-06-08 21:41:05,805 - INFO - we take 911 photos in this while loop MAIN: 2026-06-08 21:41:05,805 - INFO - /home/pi/Desktop/images/08062026/21/40/image_08062026_21_41_05_59737.jpg MAIN: 2026-06-08 21:41:05,805 - INFO - duration: 0.9413071890012361 MAIN: 2026-06-08 21:41:05,805 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:42:05,027 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:42:05,179 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:42:05,744 - INFO - taking picture MAIN: 2026-06-08 21:42:05,744 - INFO - we take 912 photos in this while loop MAIN: 2026-06-08 21:42:05,744 - INFO - /home/pi/Desktop/images/08062026/21/41/image_08062026_21_42_05_59895.jpg MAIN: 2026-06-08 21:42:05,745 - INFO - duration: 0.9857645349984523 MAIN: 2026-06-08 21:42:05,745 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:43:04,919 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:43:05,366 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:43:06,018 - INFO - taking picture MAIN: 2026-06-08 21:43:06,018 - INFO - we take 913 photos in this while loop MAIN: 2026-06-08 21:43:06,018 - INFO - /home/pi/Desktop/images/08062026/21/42/image_08062026_21_43_05_60395.jpg MAIN: 2026-06-08 21:43:06,018 - INFO - duration: 0.8640612669987604 MAIN: 2026-06-08 21:43:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/43' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:44:05,105 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:44:05,551 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:44:05,803 - INFO - taking picture MAIN: 2026-06-08 21:44:05,803 - INFO - we take 914 photos in this while loop MAIN: 2026-06-08 21:44:05,803 - INFO - /home/pi/Desktop/images/08062026/21/43/image_08062026_21_44_05_59673.jpg MAIN: 2026-06-08 21:44:05,803 - INFO - duration: 0.9760656840007869 MAIN: 2026-06-08 21:44:05,804 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:45:05,111 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:45:05,774 - INFO - taking picture MAIN: 2026-06-08 21:45:05,774 - INFO - we take 915 photos in this while loop MAIN: 2026-06-08 21:45:05,774 - INFO - /home/pi/Desktop/images/08062026/21/44/image_08062026_21_45_05_60058.jpg MAIN: 2026-06-08 21:45:05,774 - INFO - duration: 0.8885742610000307 MAIN: 2026-06-08 21:45:05,774 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/45' MAIN: 2026-06-08 21:45:05,899 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:46:04,961 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:46:05,624 - INFO - taking picture MAIN: 2026-06-08 21:46:05,624 - INFO - we take 916 photos in this while loop MAIN: 2026-06-08 21:46:05,624 - INFO - /home/pi/Desktop/images/08062026/21/45/image_08062026_21_46_04_59807.jpg MAIN: 2026-06-08 21:46:05,624 - INFO - duration: 0.9315352749981685 MAIN: 2026-06-08 21:46:05,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/46' MAIN: 2026-06-08 21:46:05,737 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:47:04,600 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:47:04,691 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:47:05,261 - INFO - taking picture MAIN: 2026-06-08 21:47:05,261 - INFO - we take 917 photos in this while loop MAIN: 2026-06-08 21:47:05,261 - INFO - /home/pi/Desktop/images/08062026/21/46/image_08062026_21_47_04_59666.jpg MAIN: 2026-06-08 21:47:05,261 - INFO - duration: 0.9023113309958717 MAIN: 2026-06-08 21:47:05,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:48:05,272 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:48:05,612 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:48:06,268 - INFO - taking picture MAIN: 2026-06-08 21:48:06,268 - INFO - we take 918 photos in this while loop MAIN: 2026-06-08 21:48:06,268 - INFO - /home/pi/Desktop/images/08062026/21/47/image_08062026_21_48_05_61035.jpg MAIN: 2026-06-08 21:48:06,269 - INFO - duration: 0.8734464580047643 MAIN: 2026-06-08 21:48:06,269 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:49:04,786 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:49:05,303 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:49:05,987 - INFO - taking picture MAIN: 2026-06-08 21:49:05,987 - INFO - we take 919 photos in this while loop MAIN: 2026-06-08 21:49:05,988 - INFO - /home/pi/Desktop/images/08062026/21/48/image_08062026_21_49_05_59696.jpg MAIN: 2026-06-08 21:49:05,988 - INFO - duration: 0.8960624969986384 MAIN: 2026-06-08 21:49:05,988 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:50:05,198 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:50:05,900 - INFO - taking picture MAIN: 2026-06-08 21:50:05,900 - INFO - we take 920 photos in this while loop MAIN: 2026-06-08 21:50:05,900 - INFO - /home/pi/Desktop/images/08062026/21/49/image_08062026_21_50_05_59866.jpg MAIN: 2026-06-08 21:50:05,900 - INFO - duration: 0.9422254719975172 MAIN: 2026-06-08 21:50:05,900 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/50' MAIN: 2026-06-08 21:50:05,903 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:51:05,039 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:51:05,397 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:51:05,704 - INFO - taking picture MAIN: 2026-06-08 21:51:05,704 - INFO - we take 921 photos in this while loop MAIN: 2026-06-08 21:51:05,704 - INFO - /home/pi/Desktop/images/08062026/21/50/image_08062026_21_51_05_59824.jpg MAIN: 2026-06-08 21:51:05,704 - INFO - duration: 0.9223559530000784 MAIN: 2026-06-08 21:51:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:52:04,837 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:52:05,489 - INFO - taking picture MAIN: 2026-06-08 21:52:05,490 - INFO - we take 922 photos in this while loop MAIN: 2026-06-08 21:52:05,490 - INFO - /home/pi/Desktop/images/08062026/21/51/image_08062026_21_52_04_59841.jpg MAIN: 2026-06-08 21:52:05,490 - INFO - duration: 0.8668108670026413 MAIN: 2026-06-08 21:52:05,490 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/52' MAIN: 2026-06-08 21:52:05,666 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:53:04,494 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:53:04,879 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:53:05,158 - INFO - taking picture MAIN: 2026-06-08 21:53:05,158 - INFO - we take 923 photos in this while loop MAIN: 2026-06-08 21:53:05,158 - INFO - /home/pi/Desktop/images/08062026/21/52/image_08062026_21_53_04_59604.jpg MAIN: 2026-06-08 21:53:05,158 - INFO - duration: 0.9307093130046269 MAIN: 2026-06-08 21:53:05,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/53' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:54:04,484 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:54:05,136 - INFO - taking picture MAIN: 2026-06-08 21:54:05,136 - INFO - we take 924 photos in this while loop MAIN: 2026-06-08 21:54:05,137 - INFO - /home/pi/Desktop/images/08062026/21/53/image_08062026_21_54_04_59989.jpg MAIN: 2026-06-08 21:54:05,137 - INFO - duration: 0.9201286070019705 MAIN: 2026-06-08 21:54:05,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/54' MAIN: 2026-06-08 21:54:05,404 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:55:05,129 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:55:05,563 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:55:06,262 - INFO - taking picture MAIN: 2026-06-08 21:55:06,263 - INFO - we take 925 photos in this while loop MAIN: 2026-06-08 21:55:06,263 - INFO - /home/pi/Desktop/images/08062026/21/54/image_08062026_21_55_05_61134.jpg MAIN: 2026-06-08 21:55:06,263 - INFO - duration: 0.9114394890057156 MAIN: 2026-06-08 21:55:06,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/55' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:56:05,289 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:56:05,392 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:56:05,947 - INFO - taking picture MAIN: 2026-06-08 21:56:05,947 - INFO - we take 926 photos in this while loop MAIN: 2026-06-08 21:56:05,947 - INFO - /home/pi/Desktop/images/08062026/21/55/image_08062026_21_56_05_59675.jpg MAIN: 2026-06-08 21:56:05,948 - INFO - duration: 0.9202489380040788 MAIN: 2026-06-08 21:56:05,948 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:57:05,216 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:57:05,257 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:57:05,874 - INFO - taking picture MAIN: 2026-06-08 21:57:05,874 - INFO - we take 927 photos in this while loop MAIN: 2026-06-08 21:57:05,874 - INFO - /home/pi/Desktop/images/08062026/21/56/image_08062026_21_57_05_59925.jpg MAIN: 2026-06-08 21:57:05,875 - INFO - duration: 0.9217816589953145 MAIN: 2026-06-08 21:57:05,875 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:58:05,161 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:58:05,813 - INFO - taking picture MAIN: 2026-06-08 21:58:05,814 - INFO - we take 928 photos in this while loop MAIN: 2026-06-08 21:58:05,814 - INFO - /home/pi/Desktop/images/08062026/21/57/image_08062026_21_58_05_59956.jpg MAIN: 2026-06-08 21:58:05,814 - INFO - duration: 0.904364333000558 MAIN: 2026-06-08 21:58:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/58' MAIN: 2026-06-08 21:58:05,843 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 21:59:04,876 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 21:59:05,462 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 21:59:05,565 - INFO - taking picture MAIN: 2026-06-08 21:59:05,566 - INFO - we take 929 photos in this while loop MAIN: 2026-06-08 21:59:05,566 - INFO - /home/pi/Desktop/images/08062026/21/58/image_08062026_21_59_04_59739.jpg MAIN: 2026-06-08 21:59:05,566 - INFO - duration: 0.9172831010000664 MAIN: 2026-06-08 21:59:05,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/21/59' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:00:04,828 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:00:05,503 - INFO - taking picture MAIN: 2026-06-08 22:00:05,503 - INFO - we take 930 photos in this while loop MAIN: 2026-06-08 22:00:05,504 - INFO - /home/pi/Desktop/images/08062026/21/59/image_08062026_22_00_04_59953.jpg MAIN: 2026-06-08 22:00:05,504 - INFO - duration: 0.9018043629985186 MAIN: 2026-06-08 22:00:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/00' MAIN: 2026-06-08 22:00:05,533 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:01:04,619 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:01:05,106 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:01:05,314 - INFO - taking picture MAIN: 2026-06-08 22:01:05,314 - INFO - we take 931 photos in this while loop MAIN: 2026-06-08 22:01:05,314 - INFO - /home/pi/Desktop/images/08062026/22/00/image_08062026_22_01_04_59748.jpg MAIN: 2026-06-08 22:01:05,314 - INFO - duration: 0.9644664539955556 MAIN: 2026-06-08 22:01:05,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/01' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:02:04,679 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:02:05,330 - INFO - taking picture MAIN: 2026-06-08 22:02:05,330 - INFO - we take 932 photos in this while loop MAIN: 2026-06-08 22:02:05,330 - INFO - /home/pi/Desktop/images/08062026/22/01/image_08062026_22_02_04_60081.jpg MAIN: 2026-06-08 22:02:05,330 - INFO - duration: 0.898723603997496 MAIN: 2026-06-08 22:02:05,331 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/02' MAIN: 2026-06-08 22:02:05,349 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:03:05,211 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:03:05,438 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:03:06,136 - INFO - taking picture MAIN: 2026-06-08 22:03:06,136 - INFO - we take 933 photos in this while loop MAIN: 2026-06-08 22:03:06,136 - INFO - /home/pi/Desktop/images/08062026/22/02/image_08062026_22_03_05_60716.jpg MAIN: 2026-06-08 22:03:06,137 - INFO - duration: 0.9879415020041051 MAIN: 2026-06-08 22:03:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/03' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:04:05,290 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:04:05,869 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:04:05,955 - INFO - taking picture MAIN: 2026-06-08 22:04:05,956 - INFO - we take 934 photos in this while loop MAIN: 2026-06-08 22:04:05,956 - INFO - /home/pi/Desktop/images/08062026/22/03/image_08062026_22_04_05_59868.jpg MAIN: 2026-06-08 22:04:05,957 - INFO - duration: 0.9393145180001738 MAIN: 2026-06-08 22:04:05,957 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/04' MAIN: 2026-06-08 22:05:05,126 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:05:05,803 - INFO - taking picture MAIN: 2026-06-08 22:05:05,804 - INFO - we take 935 photos in this while loop MAIN: 2026-06-08 22:05:05,804 - INFO - /home/pi/Desktop/images/08062026/22/04/image_08062026_22_05_05_59865.jpg MAIN: 2026-06-08 22:05:05,804 - INFO - duration: 0.9214469200014719 MAIN: 2026-06-08 22:05:05,804 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/05' MAIN: 2026-06-08 22:05:06,226 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:06:04,841 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:06:05,091 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:06:05,502 - INFO - taking picture MAIN: 2026-06-08 22:06:05,503 - INFO - we take 936 photos in this while loop MAIN: 2026-06-08 22:06:05,503 - INFO - /home/pi/Desktop/images/08062026/22/05/image_08062026_22_06_04_59689.jpg MAIN: 2026-06-08 22:06:05,503 - INFO - duration: 0.9310585979983443 MAIN: 2026-06-08 22:06:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/06' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:07:04,629 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:07:05,277 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:07:05,281 - INFO - taking picture MAIN: 2026-06-08 22:07:05,281 - INFO - we take 937 photos in this while loop MAIN: 2026-06-08 22:07:05,281 - INFO - /home/pi/Desktop/images/08062026/22/06/image_08062026_22_07_04_59808.jpg MAIN: 2026-06-08 22:07:05,281 - INFO - duration: 0.901403088006191 MAIN: 2026-06-08 22:07:05,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/07' MAIN: 2026-06-08 22:08:04,400 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:08:05,053 - INFO - taking picture MAIN: 2026-06-08 22:08:05,054 - INFO - we take 938 photos in this while loop MAIN: 2026-06-08 22:08:05,054 - INFO - /home/pi/Desktop/images/08062026/22/07/image_08062026_22_08_04_59806.jpg MAIN: 2026-06-08 22:08:05,054 - INFO - duration: 0.8671355789992958 MAIN: 2026-06-08 22:08:05,054 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/08' MAIN: 2026-06-08 22:08:05,569 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:09:05,369 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:09:05,729 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:09:06,075 - INFO - taking picture MAIN: 2026-06-08 22:09:06,075 - INFO - we take 939 photos in this while loop MAIN: 2026-06-08 22:09:06,075 - INFO - /home/pi/Desktop/images/08062026/22/08/image_08062026_22_09_05_60915.jpg MAIN: 2026-06-08 22:09:06,076 - INFO - duration: 0.9735177859984105 MAIN: 2026-06-08 22:09:06,076 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/09' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:10:05,260 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:10:05,286 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:10:05,919 - INFO - taking picture MAIN: 2026-06-08 22:10:05,920 - INFO - we take 940 photos in this while loop MAIN: 2026-06-08 22:10:05,920 - INFO - /home/pi/Desktop/images/08062026/22/09/image_08062026_22_10_05_59934.jpg MAIN: 2026-06-08 22:10:05,920 - INFO - duration: 0.8827131490033935 MAIN: 2026-06-08 22:10:05,920 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/10' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:11:04,884 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:11:05,005 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:11:05,704 - INFO - taking picture MAIN: 2026-06-08 22:11:05,705 - INFO - we take 941 photos in this while loop MAIN: 2026-06-08 22:11:05,705 - INFO - /home/pi/Desktop/images/08062026/22/10/image_08062026_22_11_05_59672.jpg MAIN: 2026-06-08 22:11:05,705 - INFO - duration: 0.9953384840046056 MAIN: 2026-06-08 22:11:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/11' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:12:04,904 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:12:05,375 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:12:05,622 - INFO - taking picture MAIN: 2026-06-08 22:12:05,622 - INFO - we take 942 photos in this while loop MAIN: 2026-06-08 22:12:05,622 - INFO - /home/pi/Desktop/images/08062026/22/11/image_08062026_22_12_04_59941.jpg MAIN: 2026-06-08 22:12:05,623 - INFO - duration: 0.9709735569995246 MAIN: 2026-06-08 22:12:05,623 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/12' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:13:04,818 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:13:05,361 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:13:05,524 - INFO - taking picture MAIN: 2026-06-08 22:13:05,524 - INFO - we take 943 photos in this while loop MAIN: 2026-06-08 22:13:05,524 - INFO - /home/pi/Desktop/images/08062026/22/12/image_08062026_22_13_04_59882.jpg MAIN: 2026-06-08 22:13:05,524 - INFO - duration: 0.9897198850012501 MAIN: 2026-06-08 22:13:05,524 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/13' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:14:04,880 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:14:05,560 - INFO - taking picture MAIN: 2026-06-08 22:14:05,560 - INFO - we take 944 photos in this while loop MAIN: 2026-06-08 22:14:05,560 - INFO - /home/pi/Desktop/images/08062026/22/13/image_08062026_22_14_04_60082.jpg MAIN: 2026-06-08 22:14:05,561 - INFO - duration: 0.9440852359985001 MAIN: 2026-06-08 22:14:05,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/14' MAIN: 2026-06-08 22:14:05,724 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:15:05,014 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:15:05,708 - INFO - taking picture MAIN: 2026-06-08 22:15:05,708 - INFO - we take 945 photos in this while loop MAIN: 2026-06-08 22:15:05,708 - INFO - /home/pi/Desktop/images/08062026/22/14/image_08062026_22_15_05_60170.jpg MAIN: 2026-06-08 22:15:05,708 - INFO - duration: 0.9216198240028461 MAIN: 2026-06-08 22:15:05,708 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/15' MAIN: 2026-06-08 22:15:05,781 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:16:04,674 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:16:05,022 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:16:05,355 - INFO - taking picture MAIN: 2026-06-08 22:16:05,355 - INFO - we take 946 photos in this while loop MAIN: 2026-06-08 22:16:05,355 - INFO - /home/pi/Desktop/images/08062026/22/15/image_08062026_22_16_04_59617.jpg MAIN: 2026-06-08 22:16:05,355 - INFO - duration: 0.9509083939992706 MAIN: 2026-06-08 22:16:05,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/16' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:17:04,460 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:17:04,936 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:17:05,127 - INFO - taking picture MAIN: 2026-06-08 22:17:05,127 - INFO - we take 947 photos in this while loop MAIN: 2026-06-08 22:17:05,127 - INFO - /home/pi/Desktop/images/08062026/22/16/image_08062026_22_17_04_59808.jpg MAIN: 2026-06-08 22:17:05,127 - INFO - duration: 0.9148188319959445 MAIN: 2026-06-08 22:17:05,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/17' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:18:04,535 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:18:05,059 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:18:05,211 - INFO - taking picture MAIN: 2026-06-08 22:18:05,211 - INFO - we take 948 photos in this while loop MAIN: 2026-06-08 22:18:05,211 - INFO - /home/pi/Desktop/images/08062026/22/17/image_08062026_22_18_04_60076.jpg MAIN: 2026-06-08 22:18:05,212 - INFO - duration: 0.9221392249964993 MAIN: 2026-06-08 22:18:05,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/18' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:19:04,760 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:19:05,071 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:19:05,459 - INFO - taking picture MAIN: 2026-06-08 22:19:05,459 - INFO - we take 949 photos in this while loop MAIN: 2026-06-08 22:19:05,459 - INFO - /home/pi/Desktop/images/08062026/22/18/image_08062026_22_19_04_60191.jpg MAIN: 2026-06-08 22:19:05,459 - INFO - duration: 0.9784428919956554 MAIN: 2026-06-08 22:19:05,460 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/19' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:20:05,068 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:20:05,777 - INFO - taking picture MAIN: 2026-06-08 22:20:05,777 - INFO - we take 950 photos in this while loop MAIN: 2026-06-08 22:20:05,777 - INFO - /home/pi/Desktop/images/08062026/22/19/image_08062026_22_20_05_60343.jpg MAIN: 2026-06-08 22:20:05,777 - INFO - duration: 0.9527480190008646 MAIN: 2026-06-08 22:20:05,777 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/20' MAIN: 2026-06-08 22:20:06,009 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:21:04,869 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:21:05,462 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:21:05,559 - INFO - taking picture MAIN: 2026-06-08 22:21:05,559 - INFO - we take 951 photos in this while loop MAIN: 2026-06-08 22:21:05,559 - INFO - /home/pi/Desktop/images/08062026/22/20/image_08062026_22_21_04_59811.jpg MAIN: 2026-06-08 22:21:05,559 - INFO - duration: 0.9232410440017702 MAIN: 2026-06-08 22:21:05,559 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/21' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:22:04,555 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:22:05,138 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:22:05,215 - INFO - taking picture MAIN: 2026-06-08 22:22:05,215 - INFO - we take 952 photos in this while loop MAIN: 2026-06-08 22:22:05,215 - INFO - /home/pi/Desktop/images/08062026/22/21/image_08062026_22_22_04_59671.jpg MAIN: 2026-06-08 22:22:05,216 - INFO - duration: 0.9085147599980701 MAIN: 2026-06-08 22:22:05,216 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/22' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:23:04,916 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:23:05,577 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:23:06,230 - INFO - taking picture MAIN: 2026-06-08 22:23:06,230 - INFO - we take 953 photos in this while loop MAIN: 2026-06-08 22:23:06,231 - INFO - /home/pi/Desktop/images/08062026/22/22/image_08062026_22_23_05_61019.jpg MAIN: 2026-06-08 22:23:06,231 - INFO - duration: 0.9038662610037136 MAIN: 2026-06-08 22:23:06,231 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/23' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:24:05,164 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:24:05,195 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:24:05,884 - INFO - taking picture MAIN: 2026-06-08 22:24:05,885 - INFO - we take 954 photos in this while loop MAIN: 2026-06-08 22:24:05,885 - INFO - /home/pi/Desktop/images/08062026/22/23/image_08062026_22_24_05_59566.jpg MAIN: 2026-06-08 22:24:05,885 - INFO - duration: 0.9911329969982035 MAIN: 2026-06-08 22:24:05,885 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/24' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:25:05,102 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:25:05,532 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:25:05,785 - INFO - taking picture MAIN: 2026-06-08 22:25:05,785 - INFO - we take 955 photos in this while loop MAIN: 2026-06-08 22:25:05,785 - INFO - /home/pi/Desktop/images/08062026/22/24/image_08062026_22_25_05_59980.jpg MAIN: 2026-06-08 22:25:05,785 - INFO - duration: 0.9111135429993737 MAIN: 2026-06-08 22:25:05,786 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/25' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:26:04,958 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:26:05,411 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:26:05,623 - INFO - taking picture MAIN: 2026-06-08 22:26:05,623 - INFO - we take 956 photos in this while loop MAIN: 2026-06-08 22:26:05,623 - INFO - /home/pi/Desktop/images/08062026/22/25/image_08062026_22_26_04_59836.jpg MAIN: 2026-06-08 22:26:05,623 - INFO - duration: 0.912460961000761 MAIN: 2026-06-08 22:26:05,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/26' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:27:04,489 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:27:04,676 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:27:05,328 - INFO - taking picture MAIN: 2026-06-08 22:27:05,329 - INFO - we take 957 photos in this while loop MAIN: 2026-06-08 22:27:05,329 - INFO - /home/pi/Desktop/images/08062026/22/26/image_08062026_22_27_04_59692.jpg MAIN: 2026-06-08 22:27:05,329 - INFO - duration: 0.9255117159991642 MAIN: 2026-06-08 22:27:05,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/27' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:28:04,387 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:28:05,039 - INFO - taking picture MAIN: 2026-06-08 22:28:05,039 - INFO - we take 958 photos in this while loop MAIN: 2026-06-08 22:28:05,039 - INFO - /home/pi/Desktop/images/08062026/22/27/image_08062026_22_28_04_59771.jpg MAIN: 2026-06-08 22:28:05,040 - INFO - duration: 0.8648593659963808 MAIN: 2026-06-08 22:28:05,040 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/28' MAIN: 2026-06-08 22:28:05,151 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:29:04,858 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:29:05,274 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:29:05,926 - INFO - taking picture MAIN: 2026-06-08 22:29:05,926 - INFO - we take 959 photos in this while loop MAIN: 2026-06-08 22:29:05,926 - INFO - /home/pi/Desktop/images/08062026/22/28/image_08062026_22_29_05_60887.jpg MAIN: 2026-06-08 22:29:05,927 - INFO - duration: 0.8641990100004477 MAIN: 2026-06-08 22:29:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/29' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:30:04,947 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:30:05,535 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:30:05,615 - INFO - taking picture MAIN: 2026-06-08 22:30:05,615 - INFO - we take 960 photos in this while loop MAIN: 2026-06-08 22:30:05,615 - INFO - /home/pi/Desktop/images/08062026/22/29/image_08062026_22_30_04_59653.jpg MAIN: 2026-06-08 22:30:05,616 - INFO - duration: 0.9000826890041935 MAIN: 2026-06-08 22:30:05,616 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/30' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:31:04,784 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:31:05,308 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:31:05,447 - INFO - taking picture MAIN: 2026-06-08 22:31:05,447 - INFO - we take 961 photos in this while loop MAIN: 2026-06-08 22:31:05,447 - INFO - /home/pi/Desktop/images/08062026/22/30/image_08062026_22_31_04_59798.jpg MAIN: 2026-06-08 22:31:05,447 - INFO - duration: 0.9336483369988855 MAIN: 2026-06-08 22:31:05,448 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/31' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:32:05,180 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:32:05,831 - INFO - taking picture MAIN: 2026-06-08 22:32:05,831 - INFO - we take 962 photos in this while loop MAIN: 2026-06-08 22:32:05,831 - INFO - /home/pi/Desktop/images/08062026/22/31/image_08062026_22_32_05_60405.jpg MAIN: 2026-06-08 22:32:05,832 - INFO - duration: 0.9120932500009076 MAIN: 2026-06-08 22:32:05,832 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/32' MAIN: 2026-06-08 22:32:05,909 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:33:04,752 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:33:04,835 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:33:05,416 - INFO - taking picture MAIN: 2026-06-08 22:33:05,416 - INFO - we take 963 photos in this while loop MAIN: 2026-06-08 22:33:05,416 - INFO - /home/pi/Desktop/images/08062026/22/32/image_08062026_22_33_04_59591.jpg MAIN: 2026-06-08 22:33:05,416 - INFO - duration: 0.905179693007085 MAIN: 2026-06-08 22:33:05,417 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/33' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:34:04,501 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:34:04,961 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:34:05,179 - INFO - taking picture MAIN: 2026-06-08 22:34:05,179 - INFO - we take 964 photos in this while loop MAIN: 2026-06-08 22:34:05,179 - INFO - /home/pi/Desktop/images/08062026/22/33/image_08062026_22_34_04_59726.jpg MAIN: 2026-06-08 22:34:05,179 - INFO - duration: 0.9416242500010412 MAIN: 2026-06-08 22:34:05,179 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/34' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:35:05,433 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:35:05,586 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:35:06,279 - INFO - taking picture MAIN: 2026-06-08 22:35:06,280 - INFO - we take 965 photos in this while loop MAIN: 2026-06-08 22:35:06,280 - INFO - /home/pi/Desktop/images/08062026/22/34/image_08062026_22_35_05_61118.jpg MAIN: 2026-06-08 22:35:06,280 - INFO - duration: 0.924018050005543 MAIN: 2026-06-08 22:35:06,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/35' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:36:05,261 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:36:05,384 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:36:05,924 - INFO - taking picture MAIN: 2026-06-08 22:36:05,924 - INFO - we take 966 photos in this while loop MAIN: 2026-06-08 22:36:05,924 - INFO - /home/pi/Desktop/images/08062026/22/35/image_08062026_22_36_05_59655.jpg MAIN: 2026-06-08 22:36:05,924 - INFO - duration: 0.9127550310004153 MAIN: 2026-06-08 22:36:05,924 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/36' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:37:05,025 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:37:05,393 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:37:05,689 - INFO - taking picture MAIN: 2026-06-08 22:37:05,689 - INFO - we take 967 photos in this while loop MAIN: 2026-06-08 22:37:05,690 - INFO - /home/pi/Desktop/images/08062026/22/36/image_08062026_22_37_05_59744.jpg MAIN: 2026-06-08 22:37:05,690 - INFO - duration: 0.933629048995499 MAIN: 2026-06-08 22:37:05,690 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/37' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:38:04,772 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:38:05,455 - INFO - taking picture MAIN: 2026-06-08 22:38:05,455 - INFO - we take 968 photos in this while loop MAIN: 2026-06-08 22:38:05,455 - INFO - /home/pi/Desktop/images/08062026/22/37/image_08062026_22_38_04_59783.jpg MAIN: 2026-06-08 22:38:05,455 - INFO - duration: 0.9161957320029614 MAIN: 2026-06-08 22:38:05,456 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/38' MAIN: 2026-06-08 22:38:05,724 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:39:04,812 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:39:05,640 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:39:06,293 - INFO - taking picture MAIN: 2026-06-08 22:39:06,293 - INFO - we take 969 photos in this while loop MAIN: 2026-06-08 22:39:06,294 - INFO - /home/pi/Desktop/images/08062026/22/38/image_08062026_22_39_05_60831.jpg MAIN: 2026-06-08 22:39:06,294 - INFO - duration: 0.9226629639961175 MAIN: 2026-06-08 22:39:06,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/39' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:40:05,474 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:40:05,507 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:40:06,136 - INFO - taking picture MAIN: 2026-06-08 22:40:06,137 - INFO - we take 970 photos in this while loop MAIN: 2026-06-08 22:40:06,137 - INFO - /home/pi/Desktop/images/08062026/22/39/image_08062026_22_40_05_59878.jpg MAIN: 2026-06-08 22:40:06,137 - INFO - duration: 0.8873449180027819 MAIN: 2026-06-08 22:40:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/40' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:41:05,190 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:41:05,295 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:41:05,884 - INFO - taking picture MAIN: 2026-06-08 22:41:05,884 - INFO - we take 971 photos in this while loop MAIN: 2026-06-08 22:41:05,884 - INFO - /home/pi/Desktop/images/08062026/22/40/image_08062026_22_41_05_59668.jpg MAIN: 2026-06-08 22:41:05,885 - INFO - duration: 0.9661656720054452 MAIN: 2026-06-08 22:41:05,885 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/41' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:42:05,061 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:42:05,559 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:42:05,767 - INFO - taking picture MAIN: 2026-06-08 22:42:05,767 - INFO - we take 972 photos in this while loop MAIN: 2026-06-08 22:42:05,767 - INFO - /home/pi/Desktop/images/08062026/22/41/image_08062026_22_42_05_59859.jpg MAIN: 2026-06-08 22:42:05,767 - INFO - duration: 0.9889494579983875 MAIN: 2026-06-08 22:42:05,767 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/42' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:43:04,808 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:43:05,461 - INFO - taking picture MAIN: 2026-06-08 22:43:05,461 - INFO - we take 973 photos in this while loop MAIN: 2026-06-08 22:43:05,461 - INFO - /home/pi/Desktop/images/08062026/22/42/image_08062026_22_43_04_59772.jpg MAIN: 2026-06-08 22:43:05,462 - INFO - duration: 0.9104893820040161 MAIN: 2026-06-08 22:43:05,462 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/43' MAIN: 2026-06-08 22:43:05,568 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:44:05,600 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:44:05,654 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:44:06,266 - INFO - taking picture MAIN: 2026-06-08 22:44:06,267 - INFO - we take 974 photos in this while loop MAIN: 2026-06-08 22:44:06,267 - INFO - /home/pi/Desktop/images/08062026/22/43/image_08062026_22_44_05_60778.jpg MAIN: 2026-06-08 22:44:06,267 - INFO - duration: 0.9369530680123717 MAIN: 2026-06-08 22:44:06,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/44' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:45:04,459 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:45:05,117 - INFO - taking picture MAIN: 2026-06-08 22:45:05,117 - INFO - we take 975 photos in this while loop MAIN: 2026-06-08 22:45:05,118 - INFO - /home/pi/Desktop/images/08062026/22/44/image_08062026_22_45_04_58879.jpg MAIN: 2026-06-08 22:45:05,118 - INFO - duration: 0.9077386680000927 MAIN: 2026-06-08 22:45:05,118 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/45' MAIN: 2026-06-08 22:45:05,351 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:46:05,015 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:46:05,366 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:46:06,019 - INFO - taking picture MAIN: 2026-06-08 22:46:06,019 - INFO - we take 976 photos in this while loop MAIN: 2026-06-08 22:46:06,020 - INFO - /home/pi/Desktop/images/08062026/22/45/image_08062026_22_46_05_60936.jpg MAIN: 2026-06-08 22:46:06,020 - INFO - duration: 0.8733439219940919 MAIN: 2026-06-08 22:46:06,020 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/46' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:47:05,002 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:47:05,657 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:47:06,309 - INFO - taking picture MAIN: 2026-06-08 22:47:06,309 - INFO - we take 977 photos in this while loop MAIN: 2026-06-08 22:47:06,310 - INFO - /home/pi/Desktop/images/08062026/22/46/image_08062026_22_47_05_60237.jpg MAIN: 2026-06-08 22:47:06,310 - INFO - duration: 0.9257023090030998 MAIN: 2026-06-08 22:47:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/47' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:48:05,443 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:48:05,534 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:48:06,156 - INFO - taking picture MAIN: 2026-06-08 22:48:06,156 - INFO - we take 978 photos in this while loop MAIN: 2026-06-08 22:48:06,156 - INFO - /home/pi/Desktop/images/08062026/22/47/image_08062026_22_48_05_59788.jpg MAIN: 2026-06-08 22:48:06,157 - INFO - duration: 0.984172597003635 MAIN: 2026-06-08 22:48:06,157 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/48' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:49:05,346 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:49:05,645 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:49:06,009 - INFO - taking picture MAIN: 2026-06-08 22:49:06,009 - INFO - we take 979 photos in this while loop MAIN: 2026-06-08 22:49:06,009 - INFO - /home/pi/Desktop/images/08062026/22/48/image_08062026_22_49_05_59899.jpg MAIN: 2026-06-08 22:49:06,009 - INFO - duration: 0.9377430869935779 MAIN: 2026-06-08 22:49:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/49' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:50:05,388 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:50:06,069 - INFO - taking picture MAIN: 2026-06-08 22:50:06,069 - INFO - we take 980 photos in this while loop MAIN: 2026-06-08 22:50:06,069 - INFO - /home/pi/Desktop/images/08062026/22/49/image_08062026_22_50_05_60071.jpg MAIN: 2026-06-08 22:50:06,069 - INFO - duration: 0.9257876019983087 MAIN: 2026-06-08 22:50:06,070 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/50' MAIN: 2026-06-08 22:50:06,223 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:51:04,799 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:51:05,297 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:51:05,949 - INFO - taking picture MAIN: 2026-06-08 22:51:05,949 - INFO - we take 981 photos in this while loop MAIN: 2026-06-08 22:51:05,949 - INFO - /home/pi/Desktop/images/08062026/22/50/image_08062026_22_51_05_59940.jpg MAIN: 2026-06-08 22:51:05,950 - INFO - duration: 0.8660347359982552 MAIN: 2026-06-08 22:51:05,950 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/51' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:52:05,063 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:52:05,188 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:52:05,721 - INFO - taking picture MAIN: 2026-06-08 22:52:05,721 - INFO - we take 982 photos in this while loop MAIN: 2026-06-08 22:52:05,722 - INFO - /home/pi/Desktop/images/08062026/22/51/image_08062026_22_52_05_59702.jpg MAIN: 2026-06-08 22:52:05,722 - INFO - duration: 0.9360247189906659 MAIN: 2026-06-08 22:52:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/52' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:53:04,794 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:53:05,149 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:53:05,454 - INFO - taking picture MAIN: 2026-06-08 22:53:05,454 - INFO - we take 983 photos in this while loop MAIN: 2026-06-08 22:53:05,454 - INFO - /home/pi/Desktop/images/08062026/22/52/image_08062026_22_53_04_59739.jpg MAIN: 2026-06-08 22:53:05,455 - INFO - duration: 0.9295910250075394 MAIN: 2026-06-08 22:53:05,455 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/53' MAIN: 2026-06-08 22:54:04,596 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:54:05,319 - INFO - taking picture MAIN: 2026-06-08 22:54:05,319 - INFO - we take 984 photos in this while loop MAIN: 2026-06-08 22:54:05,319 - INFO - /home/pi/Desktop/images/08062026/22/53/image_08062026_22_54_04_59835.jpg MAIN: 2026-06-08 22:54:05,319 - INFO - duration: 0.9584561510127969 MAIN: 2026-06-08 22:54:05,320 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/54' MAIN: 2026-06-08 22:54:05,618 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:55:04,623 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:55:05,382 - INFO - taking picture MAIN: 2026-06-08 22:55:05,383 - INFO - we take 985 photos in this while loop MAIN: 2026-06-08 22:55:05,383 - INFO - /home/pi/Desktop/images/08062026/22/54/image_08062026_22_55_04_59990.jpg MAIN: 2026-06-08 22:55:05,383 - INFO - duration: 1.0317113310011337 MAIN: 2026-06-08 22:55:05,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/55' MAIN: 2026-06-08 22:55:05,743 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:56:04,520 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:56:04,868 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:56:05,188 - INFO - taking picture MAIN: 2026-06-08 22:56:05,188 - INFO - we take 986 photos in this while loop MAIN: 2026-06-08 22:56:05,188 - INFO - /home/pi/Desktop/images/08062026/22/55/image_08062026_22_56_04_59905.jpg MAIN: 2026-06-08 22:56:05,188 - INFO - duration: 0.9309606640017591 MAIN: 2026-06-08 22:56:05,188 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/56' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:57:04,779 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:57:05,493 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:57:06,146 - INFO - taking picture MAIN: 2026-06-08 22:57:06,146 - INFO - we take 987 photos in this while loop MAIN: 2026-06-08 22:57:06,146 - INFO - /home/pi/Desktop/images/08062026/22/56/image_08062026_22_57_05_60970.jpg MAIN: 2026-06-08 22:57:06,146 - INFO - duration: 0.9184078379912535 MAIN: 2026-06-08 22:57:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/57' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:58:05,154 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:58:05,334 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:58:05,823 - INFO - taking picture MAIN: 2026-06-08 22:58:05,823 - INFO - we take 988 photos in this while loop MAIN: 2026-06-08 22:58:05,823 - INFO - /home/pi/Desktop/images/08062026/22/57/image_08062026_22_58_05_59665.jpg MAIN: 2026-06-08 22:58:05,823 - INFO - duration: 0.9297067019942915 MAIN: 2026-06-08 22:58:05,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/58' [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-06-08 22:59:04,946 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 22:59:05,176 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-06-08 22:59:05,643 - INFO - taking picture MAIN: 2026-06-08 22:59:05,643 - INFO - we take 989 photos in this while loop MAIN: 2026-06-08 22:59:05,643 - INFO - /home/pi/Desktop/images/08062026/22/58/image_08062026_22_59_04_59766.jpg MAIN: 2026-06-08 22:59:05,643 - INFO - duration: 0.9835285559965996 MAIN: 2026-06-08 22:59:05,644 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/08062026/22/59' MAIN: 2026-06-08 23:00:05,133 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:00:05,791 - INFO - taking picture MAIN: 2026-06-08 23:00:05,791 - INFO - we take 990 photos in this while loop MAIN: 2026-06-08 23:00:05,791 - INFO - /home/pi/Desktop/images/08062026/22/59/image_08062026_23_00_05_60230.jpg MAIN: 2026-06-08 23:00:05,791 - INFO - duration: 0.9011406100034947 MAIN: 2026-06-08 23:01:04,822 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:01:05,474 - INFO - taking picture MAIN: 2026-06-08 23:01:05,475 - INFO - we take 991 photos in this while loop MAIN: 2026-06-08 23:01:05,475 - INFO - /home/pi/Desktop/images/08062026/23/00/image_08062026_23_01_04_59675.jpg MAIN: 2026-06-08 23:01:05,475 - INFO - duration: 0.909424735000357 MAIN: 2026-06-08 23:02:05,452 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:02:06,128 - INFO - taking picture MAIN: 2026-06-08 23:02:06,129 - INFO - we take 992 photos in this while loop MAIN: 2026-06-08 23:02:06,129 - INFO - /home/pi/Desktop/images/08062026/23/01/image_08062026_23_02_05_60638.jpg MAIN: 2026-06-08 23:02:06,129 - INFO - duration: 0.9252068979985779 MAIN: 2026-06-08 23:03:04,518 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:03:05,170 - INFO - taking picture MAIN: 2026-06-08 23:03:05,170 - INFO - we take 993 photos in this while loop MAIN: 2026-06-08 23:03:05,170 - INFO - /home/pi/Desktop/images/08062026/23/02/image_08062026_23_03_04_59040.jpg MAIN: 2026-06-08 23:03:05,170 - INFO - duration: 0.9264682729990454 MAIN: 2026-06-08 23:04:05,562 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:04:06,272 - INFO - taking picture MAIN: 2026-06-08 23:04:06,272 - INFO - we take 994 photos in this while loop MAIN: 2026-06-08 23:04:06,272 - INFO - /home/pi/Desktop/images/08062026/23/03/image_08062026_23_04_05_61030.jpg MAIN: 2026-06-08 23:04:06,272 - INFO - duration: 0.9973010980029358 MAIN: 2026-06-08 23:05:04,551 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:05:05,216 - INFO - taking picture MAIN: 2026-06-08 23:05:05,216 - INFO - we take 995 photos in this while loop MAIN: 2026-06-08 23:05:05,216 - INFO - /home/pi/Desktop/images/08062026/23/04/image_08062026_23_05_04_59045.jpg MAIN: 2026-06-08 23:05:05,216 - INFO - duration: 0.8958400020055706 MAIN: 2026-06-08 23:06:05,411 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:06:06,064 - INFO - taking picture MAIN: 2026-06-08 23:06:06,064 - INFO - we take 996 photos in this while loop MAIN: 2026-06-08 23:06:06,064 - INFO - /home/pi/Desktop/images/08062026/23/05/image_08062026_23_06_05_60829.jpg MAIN: 2026-06-08 23:06:06,065 - INFO - duration: 0.914813037001295 MAIN: 2026-06-08 23:07:05,034 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:07:05,687 - INFO - taking picture MAIN: 2026-06-08 23:07:05,687 - INFO - we take 997 photos in this while loop MAIN: 2026-06-08 23:07:05,688 - INFO - /home/pi/Desktop/images/08062026/23/06/image_08062026_23_07_05_59609.jpg MAIN: 2026-06-08 23:07:05,688 - INFO - duration: 0.9282800020009745 MAIN: 2026-06-08 23:08:04,679 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:08:05,376 - INFO - taking picture MAIN: 2026-06-08 23:08:05,376 - INFO - we take 998 photos in this while loop MAIN: 2026-06-08 23:08:05,376 - INFO - /home/pi/Desktop/images/08062026/23/07/image_08062026_23_08_04_59694.jpg MAIN: 2026-06-08 23:08:05,376 - INFO - duration: 0.92270327899314 MAIN: 2026-06-08 23:09:05,471 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:09:06,124 - INFO - taking picture MAIN: 2026-06-08 23:09:06,125 - INFO - we take 999 photos in this while loop MAIN: 2026-06-08 23:09:06,125 - INFO - /home/pi/Desktop/images/08062026/23/08/image_08062026_23_09_05_60750.jpg MAIN: 2026-06-08 23:09:06,125 - INFO - duration: 0.9208151479979279 MAIN: 2026-06-08 23:10:05,213 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:10:05,867 - INFO - taking picture MAIN: 2026-06-08 23:10:05,868 - INFO - we take 1000 photos in this while loop MAIN: 2026-06-08 23:10:05,868 - INFO - /home/pi/Desktop/images/08062026/23/09/image_08062026_23_10_05_59796.jpg MAIN: 2026-06-08 23:10:05,868 - INFO - duration: 0.8669959399994696 MAIN: 2026-06-08 23:11:04,763 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:11:05,415 - INFO - taking picture MAIN: 2026-06-08 23:11:05,416 - INFO - we take 1001 photos in this while loop MAIN: 2026-06-08 23:11:05,416 - INFO - /home/pi/Desktop/images/08062026/23/10/image_08062026_23_11_04_59490.jpg MAIN: 2026-06-08 23:11:05,416 - INFO - duration: 0.9244576979981503 MAIN: 2026-06-08 23:12:04,949 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:12:05,602 - INFO - taking picture MAIN: 2026-06-08 23:12:05,602 - INFO - we take 1002 photos in this while loop MAIN: 2026-06-08 23:12:05,602 - INFO - /home/pi/Desktop/images/08062026/23/11/image_08062026_23_12_04_60196.jpg MAIN: 2026-06-08 23:12:05,603 - INFO - duration: 0.9142309149901848 MAIN: 2026-06-08 23:13:04,582 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:13:05,281 - INFO - taking picture MAIN: 2026-06-08 23:13:05,281 - INFO - we take 1003 photos in this while loop MAIN: 2026-06-08 23:13:05,281 - INFO - /home/pi/Desktop/images/08062026/23/12/image_08062026_23_13_04_59681.jpg MAIN: 2026-06-08 23:13:05,282 - INFO - duration: 0.9121835389960324 MAIN: 2026-06-08 23:14:05,546 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:14:06,246 - INFO - taking picture MAIN: 2026-06-08 23:14:06,246 - INFO - we take 1004 photos in this while loop MAIN: 2026-06-08 23:14:06,246 - INFO - /home/pi/Desktop/images/08062026/23/13/image_08062026_23_14_05_60912.jpg MAIN: 2026-06-08 23:14:06,247 - INFO - duration: 0.9643699600128457 MAIN: 2026-06-08 23:15:05,560 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:15:06,211 - INFO - taking picture MAIN: 2026-06-08 23:15:06,212 - INFO - we take 1005 photos in this while loop MAIN: 2026-06-08 23:15:06,212 - INFO - /home/pi/Desktop/images/08062026/23/14/image_08062026_23_15_05_60013.jpg MAIN: 2026-06-08 23:15:06,212 - INFO - duration: 0.9164312579960097 MAIN: 2026-06-08 23:16:05,201 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:16:05,856 - INFO - taking picture MAIN: 2026-06-08 23:16:05,856 - INFO - we take 1006 photos in this while loop MAIN: 2026-06-08 23:16:05,856 - INFO - /home/pi/Desktop/images/08062026/23/15/image_08062026_23_16_05_59656.jpg MAIN: 2026-06-08 23:16:05,856 - INFO - duration: 0.9048871900013182 MAIN: 2026-06-08 23:17:04,643 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:17:05,334 - INFO - taking picture MAIN: 2026-06-08 23:17:05,334 - INFO - we take 1007 photos in this while loop MAIN: 2026-06-08 23:17:05,334 - INFO - /home/pi/Desktop/images/08062026/23/16/image_08062026_23_17_04_59478.jpg MAIN: 2026-06-08 23:17:05,334 - INFO - duration: 0.9038820999994641 MAIN: 2026-06-08 23:18:04,391 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:18:05,141 - INFO - taking picture MAIN: 2026-06-08 23:18:05,141 - INFO - we take 1008 photos in this while loop MAIN: 2026-06-08 23:18:05,141 - INFO - /home/pi/Desktop/images/08062026/23/17/image_08062026_23_18_04_59749.jpg MAIN: 2026-06-08 23:18:05,141 - INFO - duration: 0.9609795949945692 MAIN: 2026-06-08 23:19:05,318 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:19:05,969 - INFO - taking picture MAIN: 2026-06-08 23:19:05,969 - INFO - we take 1009 photos in this while loop MAIN: 2026-06-08 23:19:05,969 - INFO - /home/pi/Desktop/images/08062026/23/18/image_08062026_23_19_05_60883.jpg MAIN: 2026-06-08 23:19:05,970 - INFO - duration: 0.9054343239986338 MAIN: 2026-06-08 23:20:05,151 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:20:05,879 - INFO - taking picture MAIN: 2026-06-08 23:20:05,880 - INFO - we take 1010 photos in this while loop MAIN: 2026-06-08 23:20:05,880 - INFO - /home/pi/Desktop/images/08062026/23/19/image_08062026_23_20_05_59834.jpg MAIN: 2026-06-08 23:20:05,880 - INFO - duration: 0.9814900269993814 MAIN: 2026-06-08 23:21:05,387 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:21:06,041 - INFO - taking picture MAIN: 2026-06-08 23:21:06,041 - INFO - we take 1011 photos in this while loop MAIN: 2026-06-08 23:21:06,041 - INFO - /home/pi/Desktop/images/08062026/23/20/image_08062026_23_21_05_60216.jpg MAIN: 2026-06-08 23:21:06,042 - INFO - duration: 0.9262031770049362 MAIN: 2026-06-08 23:22:04,976 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:22:05,626 - INFO - taking picture MAIN: 2026-06-08 23:22:05,626 - INFO - we take 1012 photos in this while loop MAIN: 2026-06-08 23:22:05,626 - INFO - /home/pi/Desktop/images/08062026/23/21/image_08062026_23_22_04_59609.jpg MAIN: 2026-06-08 23:22:05,627 - INFO - duration: 0.9016168039961485 MAIN: 2026-06-08 23:23:04,644 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:23:05,296 - INFO - taking picture MAIN: 2026-06-08 23:23:05,296 - INFO - we take 1013 photos in this while loop MAIN: 2026-06-08 23:23:05,296 - INFO - /home/pi/Desktop/images/08062026/23/22/image_08062026_23_23_04_59647.jpg MAIN: 2026-06-08 23:23:05,296 - INFO - duration: 0.923300921000191 MAIN: 2026-06-08 23:24:05,574 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:24:06,226 - INFO - taking picture MAIN: 2026-06-08 23:24:06,226 - INFO - we take 1014 photos in this while loop MAIN: 2026-06-08 23:24:06,226 - INFO - /home/pi/Desktop/images/08062026/23/23/image_08062026_23_24_05_60936.jpg MAIN: 2026-06-08 23:24:06,226 - INFO - duration: 0.9169171160028782 MAIN: 2026-06-08 23:25:05,266 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:25:05,920 - INFO - taking picture MAIN: 2026-06-08 23:25:05,920 - INFO - we take 1015 photos in this while loop MAIN: 2026-06-08 23:25:05,920 - INFO - /home/pi/Desktop/images/08062026/23/24/image_08062026_23_25_05_59730.jpg MAIN: 2026-06-08 23:25:05,920 - INFO - duration: 0.8800395150028635 MAIN: 2026-06-08 23:26:05,294 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:26:05,947 - INFO - taking picture MAIN: 2026-06-08 23:26:05,948 - INFO - we take 1016 photos in this while loop MAIN: 2026-06-08 23:26:05,948 - INFO - /home/pi/Desktop/images/08062026/23/25/image_08062026_23_26_05_59987.jpg MAIN: 2026-06-08 23:26:05,948 - INFO - duration: 0.9201281220011879 MAIN: 2026-06-08 23:27:04,971 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:27:05,669 - INFO - taking picture MAIN: 2026-06-08 23:27:05,670 - INFO - we take 1017 photos in this while loop MAIN: 2026-06-08 23:27:05,670 - INFO - /home/pi/Desktop/images/08062026/23/26/image_08062026_23_27_04_59653.jpg MAIN: 2026-06-08 23:27:05,670 - INFO - duration: 0.9892615459975787 MAIN: 2026-06-08 23:28:04,889 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:28:05,541 - INFO - taking picture MAIN: 2026-06-08 23:28:05,541 - INFO - we take 1018 photos in this while loop MAIN: 2026-06-08 23:28:05,542 - INFO - /home/pi/Desktop/images/08062026/23/27/image_08062026_23_28_04_59966.jpg MAIN: 2026-06-08 23:28:05,542 - INFO - duration: 0.8944453940057429 MAIN: 2026-06-08 23:29:04,487 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:29:05,138 - INFO - taking picture MAIN: 2026-06-08 23:29:05,138 - INFO - we take 1019 photos in this while loop MAIN: 2026-06-08 23:29:05,138 - INFO - /home/pi/Desktop/images/08062026/23/28/image_08062026_23_29_04_59570.jpg MAIN: 2026-06-08 23:29:05,138 - INFO - duration: 0.920293640010641 MAIN: 2026-06-08 23:30:05,442 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:30:06,133 - INFO - taking picture MAIN: 2026-06-08 23:30:06,133 - INFO - we take 1020 photos in this while loop MAIN: 2026-06-08 23:30:06,134 - INFO - /home/pi/Desktop/images/08062026/23/29/image_08062026_23_30_05_61013.jpg MAIN: 2026-06-08 23:30:06,134 - INFO - duration: 0.9025178779993439 MAIN: 2026-06-08 23:31:05,016 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:31:05,718 - INFO - taking picture MAIN: 2026-06-08 23:31:05,718 - INFO - we take 1021 photos in this while loop MAIN: 2026-06-08 23:31:05,718 - INFO - /home/pi/Desktop/images/08062026/23/30/image_08062026_23_31_05_59496.jpg MAIN: 2026-06-08 23:31:05,718 - INFO - duration: 0.9908371089986758 MAIN: 2026-06-08 23:32:04,835 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:32:05,533 - INFO - taking picture MAIN: 2026-06-08 23:32:05,533 - INFO - we take 1022 photos in this while loop MAIN: 2026-06-08 23:32:05,533 - INFO - /home/pi/Desktop/images/08062026/23/31/image_08062026_23_32_04_59827.jpg MAIN: 2026-06-08 23:32:05,534 - INFO - duration: 0.9784669690125156 MAIN: 2026-06-08 23:33:05,620 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:33:06,320 - INFO - taking picture MAIN: 2026-06-08 23:33:06,320 - INFO - we take 1023 photos in this while loop MAIN: 2026-06-08 23:33:06,320 - INFO - /home/pi/Desktop/images/08062026/23/32/image_08062026_23_33_05_60785.jpg MAIN: 2026-06-08 23:33:06,320 - INFO - duration: 0.9798329409968574 MAIN: 2026-06-08 23:34:05,503 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:34:06,158 - INFO - taking picture MAIN: 2026-06-08 23:34:06,159 - INFO - we take 1024 photos in this while loop MAIN: 2026-06-08 23:34:06,159 - INFO - /home/pi/Desktop/images/08062026/23/33/image_08062026_23_34_05_59897.jpg MAIN: 2026-06-08 23:34:06,159 - INFO - duration: 0.9205995990050724 MAIN: 2026-06-08 23:35:05,104 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:35:05,804 - INFO - taking picture MAIN: 2026-06-08 23:35:05,804 - INFO - we take 1025 photos in this while loop MAIN: 2026-06-08 23:35:05,804 - INFO - /home/pi/Desktop/images/08062026/23/34/image_08062026_23_35_05_59631.jpg MAIN: 2026-06-08 23:35:05,804 - INFO - duration: 0.9342001960030757 MAIN: 2026-06-08 23:36:04,896 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:36:05,547 - INFO - taking picture MAIN: 2026-06-08 23:36:05,547 - INFO - we take 1026 photos in this while loop MAIN: 2026-06-08 23:36:05,547 - INFO - /home/pi/Desktop/images/08062026/23/35/image_08062026_23_36_04_59769.jpg MAIN: 2026-06-08 23:36:05,548 - INFO - duration: 0.9082483959937235 MAIN: 2026-06-08 23:37:04,414 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:37:05,108 - INFO - taking picture MAIN: 2026-06-08 23:37:05,108 - INFO - we take 1027 photos in this while loop MAIN: 2026-06-08 23:37:05,109 - INFO - /home/pi/Desktop/images/08062026/23/36/image_08062026_23_37_04_59560.jpg MAIN: 2026-06-08 23:37:05,109 - INFO - duration: 0.9088430679985322 MAIN: 2026-06-08 23:38:05,278 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:38:05,930 - INFO - taking picture MAIN: 2026-06-08 23:38:05,930 - INFO - we take 1028 photos in this while loop MAIN: 2026-06-08 23:38:05,930 - INFO - /home/pi/Desktop/images/08062026/23/37/image_08062026_23_38_05_60848.jpg MAIN: 2026-06-08 23:38:05,931 - INFO - duration: 0.882427482996718 MAIN: 2026-06-08 23:39:04,996 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:39:05,647 - INFO - taking picture MAIN: 2026-06-08 23:39:05,647 - INFO - we take 1029 photos in this while loop MAIN: 2026-06-08 23:39:05,647 - INFO - /home/pi/Desktop/images/08062026/23/38/image_08062026_23_39_04_59675.jpg MAIN: 2026-06-08 23:39:05,647 - INFO - duration: 0.9240428290067939 MAIN: 2026-06-08 23:40:04,905 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:40:05,595 - INFO - taking picture MAIN: 2026-06-08 23:40:05,595 - INFO - we take 1030 photos in this while loop MAIN: 2026-06-08 23:40:05,595 - INFO - /home/pi/Desktop/images/08062026/23/39/image_08062026_23_40_04_59949.jpg MAIN: 2026-06-08 23:40:05,596 - INFO - duration: 0.9221224970096955 MAIN: 2026-06-08 23:41:04,460 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:41:05,113 - INFO - taking picture MAIN: 2026-06-08 23:41:05,113 - INFO - we take 1031 photos in this while loop MAIN: 2026-06-08 23:41:05,113 - INFO - /home/pi/Desktop/images/08062026/23/40/image_08062026_23_41_04_59516.jpg MAIN: 2026-06-08 23:41:05,113 - INFO - duration: 0.9230818600044586 MAIN: 2026-06-08 23:42:05,332 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:42:05,989 - INFO - taking picture MAIN: 2026-06-08 23:42:05,989 - INFO - we take 1032 photos in this while loop MAIN: 2026-06-08 23:42:05,989 - INFO - /home/pi/Desktop/images/08062026/23/41/image_08062026_23_42_05_60890.jpg MAIN: 2026-06-08 23:42:05,989 - INFO - duration: 0.9088880909985164 MAIN: 2026-06-08 23:43:04,846 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:43:05,499 - INFO - taking picture MAIN: 2026-06-08 23:43:05,499 - INFO - we take 1033 photos in this while loop MAIN: 2026-06-08 23:43:05,499 - INFO - /home/pi/Desktop/images/08062026/23/42/image_08062026_23_43_04_59500.jpg MAIN: 2026-06-08 23:43:05,500 - INFO - duration: 0.918182349007111 MAIN: 2026-06-08 23:44:04,558 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:44:05,220 - INFO - taking picture MAIN: 2026-06-08 23:44:05,221 - INFO - we take 1034 photos in this while loop MAIN: 2026-06-08 23:44:05,221 - INFO - /home/pi/Desktop/images/08062026/23/43/image_08062026_23_44_04_59727.jpg MAIN: 2026-06-08 23:44:05,221 - INFO - duration: 0.9121831060037948 MAIN: 2026-06-08 23:45:05,362 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:45:06,058 - INFO - taking picture MAIN: 2026-06-08 23:45:06,059 - INFO - we take 1035 photos in this while loop MAIN: 2026-06-08 23:45:06,059 - INFO - /home/pi/Desktop/images/08062026/23/44/image_08062026_23_45_05_60818.jpg MAIN: 2026-06-08 23:45:06,059 - INFO - duration: 0.9319877660018392 MAIN: 2026-06-08 23:46:05,261 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:46:05,957 - INFO - taking picture MAIN: 2026-06-08 23:46:05,958 - INFO - we take 1036 photos in this while loop MAIN: 2026-06-08 23:46:05,958 - INFO - /home/pi/Desktop/images/08062026/23/45/image_08062026_23_46_05_59863.jpg MAIN: 2026-06-08 23:46:05,958 - INFO - duration: 0.9677959969994845 MAIN: 2026-06-08 23:47:04,998 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:47:05,694 - INFO - taking picture MAIN: 2026-06-08 23:47:05,695 - INFO - we take 1037 photos in this while loop MAIN: 2026-06-08 23:47:05,695 - INFO - /home/pi/Desktop/images/08062026/23/46/image_08062026_23_47_04_59739.jpg MAIN: 2026-06-08 23:47:05,695 - INFO - duration: 0.9656130160001339 MAIN: 2026-06-08 23:48:04,685 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:48:05,338 - INFO - taking picture MAIN: 2026-06-08 23:48:05,338 - INFO - we take 1038 photos in this while loop MAIN: 2026-06-08 23:48:05,338 - INFO - /home/pi/Desktop/images/08062026/23/47/image_08062026_23_48_04_59687.jpg MAIN: 2026-06-08 23:48:05,339 - INFO - duration: 0.9217271439993056 MAIN: 2026-06-08 23:49:05,486 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:49:06,137 - INFO - taking picture MAIN: 2026-06-08 23:49:06,137 - INFO - we take 1039 photos in this while loop MAIN: 2026-06-08 23:49:06,138 - INFO - /home/pi/Desktop/images/08062026/23/48/image_08062026_23_49_05_60823.jpg MAIN: 2026-06-08 23:49:06,138 - INFO - duration: 0.8978950569871813 MAIN: 2026-06-08 23:50:05,189 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:50:05,856 - INFO - taking picture MAIN: 2026-06-08 23:50:05,856 - INFO - we take 1040 photos in this while loop MAIN: 2026-06-08 23:50:05,856 - INFO - /home/pi/Desktop/images/08062026/23/49/image_08062026_23_50_05_59706.jpg MAIN: 2026-06-08 23:50:05,856 - INFO - duration: 0.9097471760032931 MAIN: 2026-06-08 23:51:04,980 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:51:05,630 - INFO - taking picture MAIN: 2026-06-08 23:51:05,631 - INFO - we take 1041 photos in this while loop MAIN: 2026-06-08 23:51:05,631 - INFO - /home/pi/Desktop/images/08062026/23/50/image_08062026_23_51_04_59763.jpg MAIN: 2026-06-08 23:51:05,631 - INFO - duration: 0.9209731549926801 MAIN: 2026-06-08 23:52:04,458 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:52:05,160 - INFO - taking picture MAIN: 2026-06-08 23:52:05,160 - INFO - we take 1042 photos in this while loop MAIN: 2026-06-08 23:52:05,161 - INFO - /home/pi/Desktop/images/08062026/23/51/image_08062026_23_52_04_59498.jpg MAIN: 2026-06-08 23:52:05,161 - INFO - duration: 0.95220193300338 MAIN: 2026-06-08 23:53:05,488 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:53:06,142 - INFO - taking picture MAIN: 2026-06-08 23:53:06,143 - INFO - we take 1043 photos in this while loop MAIN: 2026-06-08 23:53:06,143 - INFO - /home/pi/Desktop/images/08062026/23/52/image_08062026_23_53_05_61022.jpg MAIN: 2026-06-08 23:53:06,143 - INFO - duration: 0.9116407959954813 MAIN: 2026-06-08 23:54:04,958 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:54:05,679 - INFO - taking picture MAIN: 2026-06-08 23:54:05,679 - INFO - we take 1044 photos in this while loop MAIN: 2026-06-08 23:54:05,679 - INFO - /home/pi/Desktop/images/08062026/23/53/image_08062026_23_54_04_59453.jpg MAIN: 2026-06-08 23:54:05,679 - INFO - duration: 0.9940087389986729 MAIN: 2026-06-08 23:55:04,892 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:55:05,545 - INFO - taking picture MAIN: 2026-06-08 23:55:05,546 - INFO - we take 1045 photos in this while loop MAIN: 2026-06-08 23:55:05,546 - INFO - /home/pi/Desktop/images/08062026/23/54/image_08062026_23_55_04_59981.jpg MAIN: 2026-06-08 23:55:05,546 - INFO - duration: 0.8794693289964925 MAIN: 2026-06-08 23:56:04,469 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:56:05,154 - INFO - taking picture MAIN: 2026-06-08 23:56:05,154 - INFO - we take 1046 photos in this while loop MAIN: 2026-06-08 23:56:05,155 - INFO - /home/pi/Desktop/images/08062026/23/55/image_08062026_23_56_04_59589.jpg MAIN: 2026-06-08 23:56:05,155 - INFO - duration: 0.8989211599982809 MAIN: 2026-06-08 23:57:05,301 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:57:05,953 - INFO - taking picture MAIN: 2026-06-08 23:57:05,954 - INFO - we take 1047 photos in this while loop MAIN: 2026-06-08 23:57:05,954 - INFO - /home/pi/Desktop/images/08062026/23/56/image_08062026_23_57_05_60775.jpg MAIN: 2026-06-08 23:57:05,954 - INFO - duration: 0.9226876989996526 MAIN: 2026-06-08 23:58:05,076 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:58:05,785 - INFO - taking picture MAIN: 2026-06-08 23:58:05,785 - INFO - we take 1048 photos in this while loop MAIN: 2026-06-08 23:58:05,785 - INFO - /home/pi/Desktop/images/08062026/23/57/image_08062026_23_58_05_59764.jpg MAIN: 2026-06-08 23:58:05,785 - INFO - duration: 0.9896052179974504 MAIN: 2026-06-08 23:59:04,551 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-06-08 23:59:05,251 - INFO - taking picture MAIN: 2026-06-08 23:59:05,251 - INFO - we take 1049 photos in this while loop MAIN: 2026-06-08 23:59:05,251 - INFO - /home/pi/Desktop/images/08062026/23/58/image_08062026_23_59_04_59472.jpg MAIN: 2026-06-08 23:59:05,252 - INFO - duration: 0.9839278180006659