Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:31: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-05-18 06:31:05,682 - INFO - taking picture MAIN: 2026-05-18 06:31:05,683 - INFO - we take 1 photos in this while loop MAIN: 2026-05-18 06:31:05,683 - INFO - /home/pi/Desktop/images/18052026/06/30/image_18052026_06_31_04_60335.jpg MAIN: 2026-05-18 06:31:05,683 - INFO - duration: 1.021149186999537 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 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-05-18 06:32:05,829 - INFO - taking picture MAIN: 2026-05-18 06:32:05,829 - INFO - we take 2 photos in this while loop MAIN: 2026-05-18 06:32:05,829 - INFO - /home/pi/Desktop/images/18052026/06/31/image_18052026_06_32_05_60178.jpg MAIN: 2026-05-18 06:32:05,829 - INFO - duration: 0.9894986179997431 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:33: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-05-18 06:33:05,977 - INFO - taking picture MAIN: 2026-05-18 06:33:05,977 - INFO - we take 3 photos in this while loop MAIN: 2026-05-18 06:33:05,977 - INFO - /home/pi/Desktop/images/18052026/06/32/image_18052026_06_33_05_60061.jpg MAIN: 2026-05-18 06:33:05,977 - INFO - duration: 1.075855455999772 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:34: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-05-18 06:34:06,112 - INFO - taking picture MAIN: 2026-05-18 06:34:06,113 - INFO - we take 4 photos in this while loop MAIN: 2026-05-18 06:34:06,113 - INFO - /home/pi/Desktop/images/18052026/06/33/image_18052026_06_34_05_60209.jpg MAIN: 2026-05-18 06:34:06,113 - INFO - duration: 1.0015795249992152 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:35: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-05-18 06:35:06,353 - INFO - taking picture MAIN: 2026-05-18 06:35:06,353 - INFO - we take 5 photos in this while loop MAIN: 2026-05-18 06:35:06,353 - INFO - /home/pi/Desktop/images/18052026/06/34/image_18052026_06_35_05_60279.jpg MAIN: 2026-05-18 06:35:06,353 - INFO - duration: 0.9625948399998379 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:36:05,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-05-18 06:36:06,478 - INFO - taking picture MAIN: 2026-05-18 06:36:06,478 - INFO - we take 6 photos in this while loop MAIN: 2026-05-18 06:36:06,478 - INFO - /home/pi/Desktop/images/18052026/06/35/image_18052026_06_36_05_60113.jpg MAIN: 2026-05-18 06:36:06,479 - INFO - duration: 0.9741637590004757 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:37: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-05-18 06:37:05,384 - INFO - taking picture MAIN: 2026-05-18 06:37:05,384 - INFO - we take 7 photos in this while loop MAIN: 2026-05-18 06:37:05,384 - INFO - /home/pi/Desktop/images/18052026/06/36/image_18052026_06_37_04_58874.jpg MAIN: 2026-05-18 06:37:05,384 - INFO - duration: 1.0050167540002803 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:38:04,767 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:38:05,558 - INFO - taking picture MAIN: 2026-05-18 06:38:05,558 - INFO - we take 8 photos in this while loop MAIN: 2026-05-18 06:38:05,558 - INFO - /home/pi/Desktop/images/18052026/06/37/image_18052026_06_38_04_60106.jpg MAIN: 2026-05-18 06:38:05,559 - INFO - duration: 1.072859822999817 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:39:05,066 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:39:05,777 - INFO - taking picture MAIN: 2026-05-18 06:39:05,777 - INFO - we take 9 photos in this while loop MAIN: 2026-05-18 06:39:05,777 - INFO - /home/pi/Desktop/images/18052026/06/38/image_18052026_06_39_05_60323.jpg MAIN: 2026-05-18 06:39:05,777 - INFO - duration: 0.9675444570002583 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:40: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-05-18 06:40:06,065 - INFO - taking picture MAIN: 2026-05-18 06:40:06,065 - INFO - we take 10 photos in this while loop MAIN: 2026-05-18 06:40:06,065 - INFO - /home/pi/Desktop/images/18052026/06/39/image_18052026_06_40_05_60270.jpg MAIN: 2026-05-18 06:40:06,065 - INFO - duration: 0.9853506009994817 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:41:05,258 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:41:05,965 - INFO - taking picture MAIN: 2026-05-18 06:41:05,966 - INFO - we take 11 photos in this while loop MAIN: 2026-05-18 06:41:05,966 - INFO - /home/pi/Desktop/images/18052026/06/40/image_18052026_06_41_05_59917.jpg MAIN: 2026-05-18 06:41:05,966 - INFO - duration: 0.9682404259992836 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:42:05,337 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:42:06,046 - INFO - taking picture MAIN: 2026-05-18 06:42:06,046 - INFO - we take 12 photos in this while loop MAIN: 2026-05-18 06:42:06,046 - INFO - /home/pi/Desktop/images/18052026/06/41/image_18052026_06_42_05_60053.jpg MAIN: 2026-05-18 06:42:06,046 - INFO - duration: 0.9950882630000706 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:43: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-05-18 06:43:06,123 - INFO - taking picture MAIN: 2026-05-18 06:43:06,124 - INFO - we take 13 photos in this while loop MAIN: 2026-05-18 06:43:06,124 - INFO - /home/pi/Desktop/images/18052026/06/42/image_18052026_06_43_05_60085.jpg MAIN: 2026-05-18 06:43:06,124 - INFO - duration: 0.9876925509997818 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:44:05,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 MAIN: 2026-05-18 06:44:06,204 - INFO - taking picture MAIN: 2026-05-18 06:44:06,204 - INFO - we take 14 photos in this while loop MAIN: 2026-05-18 06:44:06,204 - INFO - /home/pi/Desktop/images/18052026/06/43/image_18052026_06_44_05_60104.jpg MAIN: 2026-05-18 06:44:06,204 - INFO - duration: 0.9638384899999437 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:45:05,795 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:45:06,497 - INFO - taking picture MAIN: 2026-05-18 06:45:06,497 - INFO - we take 15 photos in this while loop MAIN: 2026-05-18 06:45:06,497 - INFO - /home/pi/Desktop/images/18052026/06/44/image_18052026_06_45_05_60275.jpg MAIN: 2026-05-18 06:45:06,497 - INFO - duration: 0.9814895079998678 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:46:04,594 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:46:05,296 - INFO - taking picture MAIN: 2026-05-18 06:46:05,296 - INFO - we take 16 photos in this while loop MAIN: 2026-05-18 06:46:05,296 - INFO - /home/pi/Desktop/images/18052026/06/45/image_18052026_06_46_04_58829.jpg MAIN: 2026-05-18 06:46:05,296 - INFO - duration: 0.9511233749999519 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:47: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-05-18 06:47:05,521 - INFO - taking picture MAIN: 2026-05-18 06:47:05,521 - INFO - we take 17 photos in this while loop MAIN: 2026-05-18 06:47:05,521 - INFO - /home/pi/Desktop/images/18052026/06/46/image_18052026_06_47_04_60196.jpg MAIN: 2026-05-18 06:47:05,521 - INFO - duration: 0.9794855379986984 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:48:04,881 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:48:05,636 - INFO - taking picture MAIN: 2026-05-18 06:48:05,636 - INFO - we take 18 photos in this while loop MAIN: 2026-05-18 06:48:05,637 - INFO - /home/pi/Desktop/images/18052026/06/47/image_18052026_06_48_04_60053.jpg MAIN: 2026-05-18 06:48:05,637 - INFO - duration: 1.0415408280005067 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:49: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-05-18 06:49:05,673 - INFO - taking picture MAIN: 2026-05-18 06:49:05,674 - INFO - we take 19 photos in this while loop MAIN: 2026-05-18 06:49:05,674 - INFO - /home/pi/Desktop/images/18052026/06/48/image_18052026_06_49_04_60097.jpg MAIN: 2026-05-18 06:49:05,674 - INFO - duration: 0.9812462179997965 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:50:04,757 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:50:05,509 - INFO - taking picture MAIN: 2026-05-18 06:50:05,509 - INFO - we take 20 photos in this while loop MAIN: 2026-05-18 06:50:05,510 - INFO - /home/pi/Desktop/images/18052026/06/49/image_18052026_06_50_04_59838.jpg MAIN: 2026-05-18 06:50:05,510 - INFO - duration: 0.9790185560013924 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:51:05,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-05-18 06:51:06,553 - INFO - taking picture MAIN: 2026-05-18 06:51:06,553 - INFO - we take 21 photos in this while loop MAIN: 2026-05-18 06:51:06,553 - INFO - /home/pi/Desktop/images/18052026/06/50/image_18052026_06_51_05_61016.jpg MAIN: 2026-05-18 06:51:06,553 - INFO - duration: 1.0063679089998914 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:52:05,464 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:52:06,228 - INFO - taking picture MAIN: 2026-05-18 06:52:06,228 - INFO - we take 22 photos in this while loop MAIN: 2026-05-18 06:52:06,228 - INFO - /home/pi/Desktop/images/18052026/06/51/image_18052026_06_52_05_59605.jpg MAIN: 2026-05-18 06:52:06,228 - INFO - duration: 1.0760571589999017 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:53:04,842 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:53:05,546 - INFO - taking picture MAIN: 2026-05-18 06:53:05,546 - INFO - we take 23 photos in this while loop MAIN: 2026-05-18 06:53:05,546 - INFO - /home/pi/Desktop/images/18052026/06/52/image_18052026_06_53_04_59423.jpg MAIN: 2026-05-18 06:53:05,546 - INFO - duration: 0.9700584590009385 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:54:04,900 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:54:05,628 - INFO - taking picture MAIN: 2026-05-18 06:54:05,628 - INFO - we take 24 photos in this while loop MAIN: 2026-05-18 06:54:05,628 - INFO - /home/pi/Desktop/images/18052026/06/53/image_18052026_06_54_04_60097.jpg MAIN: 2026-05-18 06:54:05,628 - INFO - duration: 0.9542999459990824 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:55:04,992 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:55:05,687 - INFO - taking picture MAIN: 2026-05-18 06:55:05,687 - INFO - we take 25 photos in this while loop MAIN: 2026-05-18 06:55:05,687 - INFO - /home/pi/Desktop/images/18052026/06/54/image_18052026_06_55_04_60064.jpg MAIN: 2026-05-18 06:55:05,687 - INFO - duration: 0.948601176000011 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:56: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-05-18 06:56:05,587 - INFO - taking picture MAIN: 2026-05-18 06:56:05,587 - INFO - we take 26 photos in this while loop MAIN: 2026-05-18 06:56:05,587 - INFO - /home/pi/Desktop/images/18052026/06/55/image_18052026_06_56_04_59811.jpg MAIN: 2026-05-18 06:56:05,587 - INFO - duration: 1.0376179680006317 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:57: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-05-18 06:57:05,310 - INFO - taking picture MAIN: 2026-05-18 06:57:05,310 - INFO - we take 27 photos in this while loop MAIN: 2026-05-18 06:57:05,310 - INFO - /home/pi/Desktop/images/18052026/06/56/image_18052026_06_57_04_59796.jpg MAIN: 2026-05-18 06:57:05,310 - INFO - duration: 0.9639248629991926 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:58: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-05-18 06:58:05,451 - INFO - taking picture MAIN: 2026-05-18 06:58:05,451 - INFO - we take 28 photos in this while loop MAIN: 2026-05-18 06:58:05,452 - INFO - /home/pi/Desktop/images/18052026/06/57/image_18052026_06_58_04_60121.jpg MAIN: 2026-05-18 06:58:05,452 - INFO - duration: 0.9834671820008225 Will output and maybe also write in take_pic/pic_log.txt MAIN: 2026-05-18 06:59:05,252 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 06:59:05,962 - INFO - taking picture MAIN: 2026-05-18 06:59:05,963 - INFO - we take 29 photos in this while loop MAIN: 2026-05-18 06:59:05,963 - INFO - /home/pi/Desktop/images/18052026/06/58/image_18052026_06_59_05_60500.jpg MAIN: 2026-05-18 06:59:05,963 - INFO - duration: 0.994152656998267 MAIN: 2026-05-18 07:00:04,852 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 07:00:05,588 - INFO - taking picture MAIN: 2026-05-18 07:00:05,588 - INFO - we take 30 photos in this while loop MAIN: 2026-05-18 07:00:05,588 - INFO - /home/pi/Desktop/images/18052026/06/59/image_18052026_07_00_04_59645.jpg MAIN: 2026-05-18 07:00:05,588 - INFO - duration: 0.9744333010003174 MAIN: 2026-05-18 07:00:05,589 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/00' MAIN: 2026-05-18 07:00: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-05-18 07:01:05,001 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:01: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-05-18 07:01:05,700 - INFO - taking picture MAIN: 2026-05-18 07:01:05,700 - INFO - we take 31 photos in this while loop MAIN: 2026-05-18 07:01:05,700 - INFO - /home/pi/Desktop/images/18052026/07/00/image_18052026_07_01_05_60114.jpg MAIN: 2026-05-18 07:01:05,700 - INFO - duration: 0.9717575250015216 MAIN: 2026-05-18 07:01:05,700 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:02:05,078 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:02:05,763 - INFO - taking picture MAIN: 2026-05-18 07:02:05,763 - INFO - we take 32 photos in this while loop MAIN: 2026-05-18 07:02:05,763 - INFO - /home/pi/Desktop/images/18052026/07/01/image_18052026_07_02_05_60084.jpg MAIN: 2026-05-18 07:02:05,763 - INFO - duration: 0.9498996499987697 MAIN: 2026-05-18 07:02:05,763 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/02' MAIN: 2026-05-18 07:02:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 07:03: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-05-18 07:03:04,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 ! MAIN: 2026-05-18 07:03:05,340 - INFO - taking picture MAIN: 2026-05-18 07:03:05,340 - INFO - we take 33 photos in this while loop MAIN: 2026-05-18 07:03:05,340 - INFO - /home/pi/Desktop/images/18052026/07/02/image_18052026_07_03_04_59561.jpg MAIN: 2026-05-18 07:03:05,340 - INFO - duration: 0.9660109199994622 MAIN: 2026-05-18 07:03:05,341 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:04: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-05-18 07:04:05,205 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:04:05,910 - INFO - taking picture MAIN: 2026-05-18 07:04:05,910 - INFO - we take 34 photos in this while loop MAIN: 2026-05-18 07:04:05,910 - INFO - /home/pi/Desktop/images/18052026/07/03/image_18052026_07_04_05_60545.jpg MAIN: 2026-05-18 07:04:05,910 - INFO - duration: 0.9900806230016315 MAIN: 2026-05-18 07:04:05,911 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:05: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-05-18 07:05:05,476 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:05:05,668 - INFO - taking picture MAIN: 2026-05-18 07:05:05,668 - INFO - we take 35 photos in this while loop MAIN: 2026-05-18 07:05:05,668 - INFO - /home/pi/Desktop/images/18052026/07/04/image_18052026_07_05_04_59737.jpg MAIN: 2026-05-18 07:05:05,668 - INFO - duration: 1.010434907000672 MAIN: 2026-05-18 07:05:05,668 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:06: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-05-18 07:06: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-05-18 07:06:06,261 - INFO - taking picture MAIN: 2026-05-18 07:06:06,261 - INFO - we take 36 photos in this while loop MAIN: 2026-05-18 07:06:06,262 - INFO - /home/pi/Desktop/images/18052026/07/05/image_18052026_07_06_05_60618.jpg MAIN: 2026-05-18 07:06:06,262 - INFO - duration: 0.9849357919993054 MAIN: 2026-05-18 07:06:06,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:07:04,737 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:07: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-05-18 07:07:05,473 - INFO - taking picture MAIN: 2026-05-18 07:07:05,473 - INFO - we take 37 photos in this while loop MAIN: 2026-05-18 07:07:05,473 - INFO - /home/pi/Desktop/images/18052026/07/06/image_18052026_07_07_04_59222.jpg MAIN: 2026-05-18 07:07:05,473 - INFO - duration: 0.9741956489997392 MAIN: 2026-05-18 07:07:05,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:08:04,932 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:08:05,100 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:08:05,706 - INFO - taking picture MAIN: 2026-05-18 07:08:05,706 - INFO - we take 38 photos in this while loop MAIN: 2026-05-18 07:08:05,707 - INFO - /home/pi/Desktop/images/18052026/07/07/image_18052026_07_08_04_60169.jpg MAIN: 2026-05-18 07:08:05,707 - INFO - duration: 1.0382344179997745 MAIN: 2026-05-18 07:08:05,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:09:04,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 ! MAIN: 2026-05-18 07:09:05,066 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:09:05,831 - INFO - taking picture MAIN: 2026-05-18 07:09:05,832 - INFO - we take 39 photos in this while loop MAIN: 2026-05-18 07:09:05,832 - INFO - /home/pi/Desktop/images/18052026/07/08/image_18052026_07_09_05_60077.jpg MAIN: 2026-05-18 07:09:05,832 - INFO - duration: 1.0857569620002323 MAIN: 2026-05-18 07:09:05,832 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:10: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-05-18 07:10:05,492 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:10:05,881 - INFO - taking picture MAIN: 2026-05-18 07:10:05,881 - INFO - we take 40 photos in this while loop MAIN: 2026-05-18 07:10:05,881 - INFO - /home/pi/Desktop/images/18052026/07/09/image_18052026_07_10_05_60162.jpg MAIN: 2026-05-18 07:10:05,881 - INFO - duration: 0.9724951509997481 MAIN: 2026-05-18 07:10:05,882 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:11: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-05-18 07:11:05,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-05-18 07:11:06,085 - INFO - taking picture MAIN: 2026-05-18 07:11:06,085 - INFO - we take 41 photos in this while loop MAIN: 2026-05-18 07:11:06,085 - INFO - /home/pi/Desktop/images/18052026/07/10/image_18052026_07_11_05_60214.jpg MAIN: 2026-05-18 07:11:06,085 - INFO - duration: 0.9617213120000088 MAIN: 2026-05-18 07:11:06,085 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:12: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-05-18 07:12:05,713 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:12:06,235 - INFO - taking picture MAIN: 2026-05-18 07:12:06,235 - INFO - we take 42 photos in this while loop MAIN: 2026-05-18 07:12:06,235 - INFO - /home/pi/Desktop/images/18052026/07/11/image_18052026_07_12_05_60161.jpg MAIN: 2026-05-18 07:12:06,236 - INFO - duration: 0.9510199200012721 MAIN: 2026-05-18 07:12:06,236 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:13:04,675 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:13:05,694 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:13:06,457 - INFO - taking picture MAIN: 2026-05-18 07:13:06,457 - INFO - we take 43 photos in this while loop MAIN: 2026-05-18 07:13:06,457 - INFO - /home/pi/Desktop/images/18052026/07/12/image_18052026_07_13_05_60096.jpg MAIN: 2026-05-18 07:13:06,457 - INFO - duration: 1.0758656619982503 MAIN: 2026-05-18 07:13:06,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:14: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-05-18 07:14: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-05-18 07:14:05,636 - INFO - taking picture MAIN: 2026-05-18 07:14:05,636 - INFO - we take 44 photos in this while loop MAIN: 2026-05-18 07:14:05,636 - INFO - /home/pi/Desktop/images/18052026/07/13/image_18052026_07_14_04_59279.jpg MAIN: 2026-05-18 07:14:05,636 - INFO - duration: 0.975648772000568 MAIN: 2026-05-18 07:14:05,637 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:15: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-05-18 07:15: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-05-18 07:15:05,669 - INFO - taking picture MAIN: 2026-05-18 07:15:05,669 - INFO - we take 45 photos in this while loop MAIN: 2026-05-18 07:15:05,669 - INFO - /home/pi/Desktop/images/18052026/07/14/image_18052026_07_15_04_60009.jpg MAIN: 2026-05-18 07:15:05,669 - INFO - duration: 0.9995064409995393 MAIN: 2026-05-18 07:15:05,670 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07: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-05-18 07:16: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-05-18 07:16:05,938 - INFO - taking picture MAIN: 2026-05-18 07:16:05,939 - INFO - we take 46 photos in this while loop MAIN: 2026-05-18 07:16:05,939 - INFO - /home/pi/Desktop/images/18052026/07/15/image_18052026_07_16_05_60269.jpg MAIN: 2026-05-18 07:16:05,939 - INFO - duration: 0.9988889209998888 MAIN: 2026-05-18 07:16:05,939 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:17: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-05-18 07:17: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-05-18 07:17:06,039 - INFO - taking picture MAIN: 2026-05-18 07:17:06,040 - INFO - we take 47 photos in this while loop MAIN: 2026-05-18 07:17:06,040 - INFO - /home/pi/Desktop/images/18052026/07/16/image_18052026_07_17_05_60136.jpg MAIN: 2026-05-18 07:17:06,040 - INFO - duration: 0.9638627510012157 MAIN: 2026-05-18 07:17:06,040 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:18:05,337 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:18:05,874 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:18:06,107 - INFO - taking picture MAIN: 2026-05-18 07:18:06,107 - INFO - we take 48 photos in this while loop MAIN: 2026-05-18 07:18:06,108 - INFO - /home/pi/Desktop/images/18052026/07/17/image_18052026_07_18_05_59989.jpg MAIN: 2026-05-18 07:18:06,108 - INFO - duration: 1.0422123480002483 MAIN: 2026-05-18 07:18:06,108 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:19: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-05-18 07:19:05,456 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:19:06,250 - INFO - taking picture MAIN: 2026-05-18 07:19:06,250 - INFO - we take 49 photos in this while loop MAIN: 2026-05-18 07:19:06,250 - INFO - /home/pi/Desktop/images/18052026/07/18/image_18052026_07_19_05_60169.jpg MAIN: 2026-05-18 07:19:06,251 - INFO - duration: 1.0152321260011377 MAIN: 2026-05-18 07:19:06,251 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:20: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-05-18 07:20: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-05-18 07:20:05,676 - INFO - taking picture MAIN: 2026-05-18 07:20:05,676 - INFO - we take 50 photos in this while loop MAIN: 2026-05-18 07:20:05,676 - INFO - /home/pi/Desktop/images/18052026/07/19/image_18052026_07_20_04_59473.jpg MAIN: 2026-05-18 07:20:05,677 - INFO - duration: 0.967583655999988 MAIN: 2026-05-18 07:20:05,677 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:21: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-05-18 07:21: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-05-18 07:21:06,089 - INFO - taking picture MAIN: 2026-05-18 07:21:06,089 - INFO - we take 51 photos in this while loop MAIN: 2026-05-18 07:21:06,089 - INFO - /home/pi/Desktop/images/18052026/07/20/image_18052026_07_21_05_60376.jpg MAIN: 2026-05-18 07:21:06,089 - INFO - duration: 1.0035575759993662 MAIN: 2026-05-18 07:21:06,089 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:22: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-05-18 07:22:05,697 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:22:06,466 - INFO - taking picture MAIN: 2026-05-18 07:22:06,466 - INFO - we take 52 photos in this while loop MAIN: 2026-05-18 07:22:06,466 - INFO - /home/pi/Desktop/images/18052026/07/21/image_18052026_07_22_05_60384.jpg MAIN: 2026-05-18 07:22:06,466 - INFO - duration: 0.995704160999594 MAIN: 2026-05-18 07:22:06,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:23: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-05-18 07:23:05,343 - INFO - taking picture MAIN: 2026-05-18 07:23:05,344 - INFO - we take 53 photos in this while loop MAIN: 2026-05-18 07:23:05,344 - INFO - /home/pi/Desktop/images/18052026/07/22/image_18052026_07_23_04_58910.jpg MAIN: 2026-05-18 07:23:05,344 - INFO - duration: 0.9633083589997113 MAIN: 2026-05-18 07:23:05,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/23' MAIN: 2026-05-18 07:23: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-05-18 07:24:04,662 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 07:24:05,396 - INFO - taking picture MAIN: 2026-05-18 07:24:05,396 - INFO - we take 54 photos in this while loop MAIN: 2026-05-18 07:24:05,396 - INFO - /home/pi/Desktop/images/18052026/07/23/image_18052026_07_24_04_60058.jpg MAIN: 2026-05-18 07:24:05,397 - INFO - duration: 0.9569767820012203 MAIN: 2026-05-18 07:24:05,397 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/24' MAIN: 2026-05-18 07:24:05,890 - 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-05-18 07:25: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-05-18 07:25: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-05-18 07:25:05,425 - INFO - taking picture MAIN: 2026-05-18 07:25:05,425 - INFO - we take 55 photos in this while loop MAIN: 2026-05-18 07:25:05,425 - INFO - /home/pi/Desktop/images/18052026/07/24/image_18052026_07_25_04_59992.jpg MAIN: 2026-05-18 07:25:05,425 - INFO - duration: 0.9934715559993492 MAIN: 2026-05-18 07:25:05,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:26: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-05-18 07:26:05,255 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:26:05,456 - INFO - taking picture MAIN: 2026-05-18 07:26:05,457 - INFO - we take 56 photos in this while loop MAIN: 2026-05-18 07:26:05,457 - INFO - /home/pi/Desktop/images/18052026/07/25/image_18052026_07_26_04_60041.jpg MAIN: 2026-05-18 07:26:05,457 - INFO - duration: 0.9837544420006452 MAIN: 2026-05-18 07:26:05,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:27: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-05-18 07:27:05,150 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:27:05,635 - INFO - taking picture MAIN: 2026-05-18 07:27:05,635 - INFO - we take 57 photos in this while loop MAIN: 2026-05-18 07:27:05,635 - INFO - /home/pi/Desktop/images/18052026/07/26/image_18052026_07_27_04_60170.jpg MAIN: 2026-05-18 07:27:05,635 - INFO - duration: 0.9915834949988493 MAIN: 2026-05-18 07:27:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:28:04,995 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:28:05,241 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:28:05,775 - INFO - taking picture MAIN: 2026-05-18 07:28:05,775 - INFO - we take 58 photos in this while loop MAIN: 2026-05-18 07:28:05,775 - INFO - /home/pi/Desktop/images/18052026/07/27/image_18052026_07_28_04_60050.jpg MAIN: 2026-05-18 07:28:05,775 - INFO - duration: 1.0810661390005407 MAIN: 2026-05-18 07:28:05,776 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:29: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-05-18 07:29:05,184 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:29:05,873 - INFO - taking picture MAIN: 2026-05-18 07:29:05,873 - INFO - we take 59 photos in this while loop MAIN: 2026-05-18 07:29:05,873 - INFO - /home/pi/Desktop/images/18052026/07/28/image_18052026_07_29_05_60192.jpg MAIN: 2026-05-18 07:29:05,874 - INFO - duration: 0.9865578829994774 MAIN: 2026-05-18 07:29:05,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:30: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-05-18 07:30:05,852 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:30:06,052 - INFO - taking picture MAIN: 2026-05-18 07:30:06,052 - INFO - we take 60 photos in this while loop MAIN: 2026-05-18 07:30:06,053 - INFO - /home/pi/Desktop/images/18052026/07/29/image_18052026_07_30_05_60191.jpg MAIN: 2026-05-18 07:30:06,053 - INFO - duration: 0.9737454790010815 MAIN: 2026-05-18 07:30:06,053 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:31:05,293 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:31: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-05-18 07:31:06,044 - INFO - taking picture MAIN: 2026-05-18 07:31:06,044 - INFO - we take 61 photos in this while loop MAIN: 2026-05-18 07:31:06,044 - INFO - /home/pi/Desktop/images/18052026/07/30/image_18052026_07_31_05_59937.jpg MAIN: 2026-05-18 07:31:06,045 - INFO - duration: 1.028452059999836 MAIN: 2026-05-18 07:31:06,045 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:32:05,604 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:32:05,905 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:32:06,295 - INFO - taking picture MAIN: 2026-05-18 07:32:06,296 - INFO - we take 62 photos in this while loop MAIN: 2026-05-18 07:32:06,296 - INFO - /home/pi/Desktop/images/18052026/07/31/image_18052026_07_32_05_60312.jpg MAIN: 2026-05-18 07:32:06,296 - INFO - duration: 0.9671008339992113 MAIN: 2026-05-18 07:32:06,296 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:33:04,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-05-18 07:33: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-05-18 07:33:05,464 - INFO - taking picture MAIN: 2026-05-18 07:33:05,464 - INFO - we take 63 photos in this while loop MAIN: 2026-05-18 07:33:05,464 - INFO - /home/pi/Desktop/images/18052026/07/32/image_18052026_07_33_04_59105.jpg MAIN: 2026-05-18 07:33:05,464 - INFO - duration: 1.0303243039998051 MAIN: 2026-05-18 07:33:05,465 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:34:05,008 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:34: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-05-18 07:34:05,893 - INFO - taking picture MAIN: 2026-05-18 07:34:05,894 - INFO - we take 64 photos in this while loop MAIN: 2026-05-18 07:34:05,894 - INFO - /home/pi/Desktop/images/18052026/07/33/image_18052026_07_34_05_60371.jpg MAIN: 2026-05-18 07:34:05,894 - INFO - duration: 1.0880262710015813 MAIN: 2026-05-18 07:34:05,894 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:35: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-05-18 07:35: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-05-18 07:35:05,679 - INFO - taking picture MAIN: 2026-05-18 07:35:05,680 - INFO - we take 65 photos in this while loop MAIN: 2026-05-18 07:35:05,680 - INFO - /home/pi/Desktop/images/18052026/07/34/image_18052026_07_35_04_59899.jpg MAIN: 2026-05-18 07:35:05,680 - INFO - duration: 0.9744791940011055 MAIN: 2026-05-18 07:35:05,680 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:36: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-05-18 07:36:05,515 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:36:05,882 - INFO - taking picture MAIN: 2026-05-18 07:36:05,882 - INFO - we take 66 photos in this while loop MAIN: 2026-05-18 07:36:05,882 - INFO - /home/pi/Desktop/images/18052026/07/35/image_18052026_07_36_05_60206.jpg MAIN: 2026-05-18 07:36:05,882 - INFO - duration: 0.9707475889990747 MAIN: 2026-05-18 07:36:05,882 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:37:05,287 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:37:05,380 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:37:05,973 - INFO - taking picture MAIN: 2026-05-18 07:37:05,974 - INFO - we take 67 photos in this while loop MAIN: 2026-05-18 07:37:05,974 - INFO - /home/pi/Desktop/images/18052026/07/36/image_18052026_07_37_05_60099.jpg MAIN: 2026-05-18 07:37:05,974 - INFO - duration: 0.9626150540007075 MAIN: 2026-05-18 07:37:05,974 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:38: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-05-18 07:38:05,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-05-18 07:38:06,103 - INFO - taking picture MAIN: 2026-05-18 07:38:06,103 - INFO - we take 68 photos in this while loop MAIN: 2026-05-18 07:38:06,103 - INFO - /home/pi/Desktop/images/18052026/07/37/image_18052026_07_38_05_60145.jpg MAIN: 2026-05-18 07:38:06,103 - INFO - duration: 0.9460435019991564 MAIN: 2026-05-18 07:38:06,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:39:04,629 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:39:05,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-05-18 07:39:06,242 - INFO - taking picture MAIN: 2026-05-18 07:39:06,242 - INFO - we take 69 photos in this while loop MAIN: 2026-05-18 07:39:06,243 - INFO - /home/pi/Desktop/images/18052026/07/38/image_18052026_07_39_05_60041.jpg MAIN: 2026-05-18 07:39:06,243 - INFO - duration: 1.0439081790009368 MAIN: 2026-05-18 07:39:06,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:40:05,272 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:40:05,372 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:40:05,962 - INFO - taking picture MAIN: 2026-05-18 07:40:05,962 - INFO - we take 70 photos in this while loop MAIN: 2026-05-18 07:40:05,962 - INFO - /home/pi/Desktop/images/18052026/07/39/image_18052026_07_40_05_59825.jpg MAIN: 2026-05-18 07:40:05,963 - INFO - duration: 0.9380054099983681 MAIN: 2026-05-18 07:40:05,963 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:41:04,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 ! MAIN: 2026-05-18 07:41: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-05-18 07:41:05,830 - INFO - taking picture MAIN: 2026-05-18 07:41:05,831 - INFO - we take 71 photos in this while loop MAIN: 2026-05-18 07:41:05,831 - INFO - /home/pi/Desktop/images/18052026/07/40/image_18052026_07_41_05_59850.jpg MAIN: 2026-05-18 07:41:05,831 - INFO - duration: 0.9563189289983711 MAIN: 2026-05-18 07:41:05,831 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:42: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-05-18 07:42: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-05-18 07:42:05,840 - INFO - taking picture MAIN: 2026-05-18 07:42:05,841 - INFO - we take 72 photos in this while loop MAIN: 2026-05-18 07:42:05,841 - INFO - /home/pi/Desktop/images/18052026/07/41/image_18052026_07_42_05_60025.jpg MAIN: 2026-05-18 07:42:05,841 - INFO - duration: 0.94096675199944 MAIN: 2026-05-18 07:42:05,841 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:43: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-05-18 07:43: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-05-18 07:43:05,910 - INFO - taking picture MAIN: 2026-05-18 07:43:05,910 - INFO - we take 73 photos in this while loop MAIN: 2026-05-18 07:43:05,910 - INFO - /home/pi/Desktop/images/18052026/07/42/image_18052026_07_43_05_59970.jpg MAIN: 2026-05-18 07:43:05,910 - INFO - duration: 1.0396980149998853 MAIN: 2026-05-18 07:43:05,911 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:44:05,454 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:44: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-05-18 07:44:06,138 - INFO - taking picture MAIN: 2026-05-18 07:44:06,138 - INFO - we take 74 photos in this while loop MAIN: 2026-05-18 07:44:06,138 - INFO - /home/pi/Desktop/images/18052026/07/43/image_18052026_07_44_05_60333.jpg MAIN: 2026-05-18 07:44:06,138 - INFO - duration: 0.9344990940007847 MAIN: 2026-05-18 07:44:06,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/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-05-18 07:45: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-05-18 07:45:05,995 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:45:06,260 - INFO - taking picture MAIN: 2026-05-18 07:45:06,260 - INFO - we take 75 photos in this while loop MAIN: 2026-05-18 07:45:06,261 - INFO - /home/pi/Desktop/images/18052026/07/44/image_18052026_07_45_05_60090.jpg MAIN: 2026-05-18 07:45:06,261 - INFO - duration: 0.9664527550012281 MAIN: 2026-05-18 07:45:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:46:04,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 ! MAIN: 2026-05-18 07:46: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-05-18 07:46:06,296 - INFO - taking picture MAIN: 2026-05-18 07:46:06,297 - INFO - we take 76 photos in this while loop MAIN: 2026-05-18 07:46:06,297 - INFO - /home/pi/Desktop/images/18052026/07/45/image_18052026_07_46_05_60068.jpg MAIN: 2026-05-18 07:46:06,297 - INFO - duration: 0.9341614170007233 MAIN: 2026-05-18 07:46:06,297 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:47:04,894 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:47:05,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-05-18 07:47:06,399 - INFO - taking picture MAIN: 2026-05-18 07:47:06,399 - INFO - we take 77 photos in this while loop MAIN: 2026-05-18 07:47:06,399 - INFO - /home/pi/Desktop/images/18052026/07/46/image_18052026_07_47_05_60073.jpg MAIN: 2026-05-18 07:47:06,399 - INFO - duration: 0.9630557430009503 MAIN: 2026-05-18 07:47:06,400 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:48: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-05-18 07: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-05-18 07:48:05,388 - INFO - taking picture MAIN: 2026-05-18 07:48:05,389 - INFO - we take 78 photos in this while loop MAIN: 2026-05-18 07:48:05,389 - INFO - /home/pi/Desktop/images/18052026/07/47/image_18052026_07_48_04_58999.jpg MAIN: 2026-05-18 07:48:05,389 - INFO - duration: 0.9528055259997927 MAIN: 2026-05-18 07:48:05,389 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:49:04,699 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:49: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-05-18 07:49:05,380 - INFO - taking picture MAIN: 2026-05-18 07:49:05,380 - INFO - we take 79 photos in this while loop MAIN: 2026-05-18 07:49:05,381 - INFO - /home/pi/Desktop/images/18052026/07/48/image_18052026_07_49_04_59988.jpg MAIN: 2026-05-18 07:49:05,381 - INFO - duration: 0.9564645680002286 MAIN: 2026-05-18 07:49:05,382 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/49' MAIN: 2026-05-18 07:50:04,856 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 07:50:05,535 - INFO - taking picture MAIN: 2026-05-18 07:50:05,535 - INFO - we take 80 photos in this while loop MAIN: 2026-05-18 07:50:05,535 - INFO - /home/pi/Desktop/images/18052026/07/49/image_18052026_07_50_04_60201.jpg MAIN: 2026-05-18 07:50:05,535 - INFO - duration: 0.9091485289991397 MAIN: 2026-05-18 07:50:05,536 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/07/50' MAIN: 2026-05-18 07:50:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 07:51:04,994 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:51:05,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-05-18 07:51:05,751 - INFO - taking picture MAIN: 2026-05-18 07:51:05,751 - INFO - we take 81 photos in this while loop MAIN: 2026-05-18 07:51:05,751 - INFO - /home/pi/Desktop/images/18052026/07/50/image_18052026_07_51_04_60091.jpg MAIN: 2026-05-18 07:51:05,752 - INFO - duration: 1.0339182740008255 MAIN: 2026-05-18 07:51:05,752 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:52: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-05-18 07:52:05,312 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 07:52:05,993 - INFO - taking picture MAIN: 2026-05-18 07:52:05,993 - INFO - we take 82 photos in this while loop MAIN: 2026-05-18 07:52:05,994 - INFO - /home/pi/Desktop/images/18052026/07/51/image_18052026_07_52_05_60317.jpg MAIN: 2026-05-18 07:52:05,994 - INFO - duration: 0.9587834800004202 MAIN: 2026-05-18 07:52:05,994 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:53: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-05-18 07:53: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-05-18 07:53:06,022 - INFO - taking picture MAIN: 2026-05-18 07:53:06,022 - INFO - we take 83 photos in this while loop MAIN: 2026-05-18 07:53:06,022 - INFO - /home/pi/Desktop/images/18052026/07/52/image_18052026_07_53_05_60042.jpg MAIN: 2026-05-18 07:53:06,023 - INFO - duration: 0.9446735129986337 MAIN: 2026-05-18 07:53:06,023 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:54:05,256 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:54: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-05-18 07:54:06,318 - INFO - taking picture MAIN: 2026-05-18 07:54:06,318 - INFO - we take 84 photos in this while loop MAIN: 2026-05-18 07:54:06,318 - INFO - /home/pi/Desktop/images/18052026/07/53/image_18052026_07_54_05_60197.jpg MAIN: 2026-05-18 07:54:06,318 - INFO - duration: 1.0429091730002256 MAIN: 2026-05-18 07:54:06,319 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:55: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-05-18 07:55:05,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-05-18 07:55:06,305 - INFO - taking picture MAIN: 2026-05-18 07:55:06,305 - INFO - we take 85 photos in this while loop MAIN: 2026-05-18 07:55:06,305 - INFO - /home/pi/Desktop/images/18052026/07/54/image_18052026_07_55_05_60104.jpg MAIN: 2026-05-18 07:55:06,306 - INFO - duration: 0.9258225199992012 MAIN: 2026-05-18 07:55:06,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:56:05,539 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:56: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-05-18 07:56:06,336 - INFO - taking picture MAIN: 2026-05-18 07:56:06,337 - INFO - we take 86 photos in this while loop MAIN: 2026-05-18 07:56:06,337 - INFO - /home/pi/Desktop/images/18052026/07/55/image_18052026_07_56_05_59990.jpg MAIN: 2026-05-18 07:56:06,337 - INFO - duration: 0.9669427159988118 MAIN: 2026-05-18 07:56:06,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:57:04,542 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:57:05,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-05-18 07:57:06,579 - INFO - taking picture MAIN: 2026-05-18 07:57:06,580 - INFO - we take 87 photos in this while loop MAIN: 2026-05-18 07:57:06,580 - INFO - /home/pi/Desktop/images/18052026/07/56/image_18052026_07_57_05_60203.jpg MAIN: 2026-05-18 07:57:06,580 - INFO - duration: 1.0062012390008022 MAIN: 2026-05-18 07:57:06,580 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:58: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-05-18 07:58:05,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-05-18 07:58:06,198 - INFO - taking picture MAIN: 2026-05-18 07:58:06,198 - INFO - we take 88 photos in this while loop MAIN: 2026-05-18 07:58:06,199 - INFO - /home/pi/Desktop/images/18052026/07/57/image_18052026_07_58_05_59586.jpg MAIN: 2026-05-18 07:58:06,199 - INFO - duration: 1.0382187119994342 MAIN: 2026-05-18 07:58:06,199 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 07:59:05,122 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 07:59: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-05-18 07:59:05,869 - INFO - taking picture MAIN: 2026-05-18 07:59:05,869 - INFO - we take 89 photos in this while loop MAIN: 2026-05-18 07:59:05,869 - INFO - /home/pi/Desktop/images/18052026/07/58/image_18052026_07_59_05_59745.jpg MAIN: 2026-05-18 07:59:05,869 - INFO - duration: 0.9629279499986296 MAIN: 2026-05-18 07:59:05,870 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:00:05,049 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:00:05,724 - INFO - taking picture MAIN: 2026-05-18 08:00:05,724 - INFO - we take 90 photos in this while loop MAIN: 2026-05-18 08:00:05,724 - INFO - /home/pi/Desktop/images/18052026/07/59/image_18052026_08_00_05_59914.jpg MAIN: 2026-05-18 08:00:05,725 - INFO - duration: 0.903238462000445 MAIN: 2026-05-18 08:00:05,725 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/00' MAIN: 2026-05-18 08:00:05,874 - 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-05-18 08:01: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-05-18 08:01: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-05-18 08:01:05,615 - INFO - taking picture MAIN: 2026-05-18 08:01:05,615 - INFO - we take 91 photos in this while loop MAIN: 2026-05-18 08:01:05,615 - INFO - /home/pi/Desktop/images/18052026/08/00/image_18052026_08_01_04_59831.jpg MAIN: 2026-05-18 08:01:05,615 - INFO - duration: 0.9627723129997321 MAIN: 2026-05-18 08:01:05,615 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:02: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-05-18 08:02:05,068 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:02:05,536 - INFO - taking picture MAIN: 2026-05-18 08:02:05,536 - INFO - we take 92 photos in this while loop MAIN: 2026-05-18 08:02:05,536 - INFO - /home/pi/Desktop/images/18052026/08/01/image_18052026_08_02_04_59935.jpg MAIN: 2026-05-18 08:02:05,536 - INFO - duration: 0.9485880799984443 MAIN: 2026-05-18 08:02:05,537 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:03: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 MAIN: 2026-05-18 08:03: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-05-18 08:03:05,334 - INFO - taking picture MAIN: 2026-05-18 08:03:05,335 - INFO - we take 93 photos in this while loop MAIN: 2026-05-18 08:03:05,335 - INFO - /home/pi/Desktop/images/18052026/08/02/image_18052026_08_03_04_59745.jpg MAIN: 2026-05-18 08:03:05,335 - INFO - duration: 1.001367355000184 MAIN: 2026-05-18 08:03:05,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:04: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-05-18 08:04:05,227 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:04:05,362 - INFO - taking picture MAIN: 2026-05-18 08:04:05,362 - INFO - we take 94 photos in this while loop MAIN: 2026-05-18 08:04:05,362 - INFO - /home/pi/Desktop/images/18052026/08/03/image_18052026_08_04_04_60092.jpg MAIN: 2026-05-18 08:04:05,362 - INFO - duration: 0.9362315719990875 MAIN: 2026-05-18 08:04:05,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:05: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-05-18 08:05:05,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 MAIN: 2026-05-18 08:05:06,351 - INFO - taking picture MAIN: 2026-05-18 08:05:06,351 - INFO - we take 95 photos in this while loop MAIN: 2026-05-18 08:05:06,351 - INFO - /home/pi/Desktop/images/18052026/08/04/image_18052026_08_05_05_60880.jpg MAIN: 2026-05-18 08:05:06,351 - INFO - duration: 1.0447509300011006 MAIN: 2026-05-18 08:05:06,352 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:06:04,611 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:06: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-05-18 08:06:06,145 - INFO - taking picture MAIN: 2026-05-18 08:06:06,145 - INFO - we take 96 photos in this while loop MAIN: 2026-05-18 08:06:06,145 - INFO - /home/pi/Desktop/images/18052026/08/05/image_18052026_08_06_05_59902.jpg MAIN: 2026-05-18 08:06:06,145 - INFO - duration: 0.9360569150012452 MAIN: 2026-05-18 08:06:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:07:04,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 ! MAIN: 2026-05-18 08:07:05,211 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:07:05,882 - INFO - taking picture MAIN: 2026-05-18 08:07:05,883 - INFO - we take 97 photos in this while loop MAIN: 2026-05-18 08:07:05,883 - INFO - /home/pi/Desktop/images/18052026/08/06/image_18052026_08_07_05_59768.jpg MAIN: 2026-05-18 08:07:05,883 - INFO - duration: 0.904866000999391 MAIN: 2026-05-18 08:07:05,883 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08: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-05-18 08:08:05,263 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:08:05,945 - INFO - taking picture MAIN: 2026-05-18 08:08:05,945 - INFO - we take 98 photos in this while loop MAIN: 2026-05-18 08:08:05,946 - INFO - /home/pi/Desktop/images/18052026/08/07/image_18052026_08_08_05_60013.jpg MAIN: 2026-05-18 08:08:05,946 - INFO - duration: 0.9538181259995326 MAIN: 2026-05-18 08:08:05,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:09:04,946 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:09:05,315 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:09:06,054 - INFO - taking picture MAIN: 2026-05-18 08:09:06,054 - INFO - we take 99 photos in this while loop MAIN: 2026-05-18 08:09:06,054 - INFO - /home/pi/Desktop/images/18052026/08/08/image_18052026_08_09_05_60052.jpg MAIN: 2026-05-18 08:09:06,055 - INFO - duration: 1.0098378760012565 MAIN: 2026-05-18 08:09:06,055 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:10:05,288 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:10:05,958 - INFO - taking picture MAIN: 2026-05-18 08:10:05,959 - INFO - we take 100 photos in this while loop MAIN: 2026-05-18 08:10:05,959 - INFO - /home/pi/Desktop/images/18052026/08/09/image_18052026_08_10_05_59989.jpg MAIN: 2026-05-18 08:10:05,959 - INFO - duration: 0.9246629009994649 MAIN: 2026-05-18 08:10:05,959 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/10' MAIN: 2026-05-18 08:10:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:11: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-05-18 08:11:05,570 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:11:05,577 - INFO - taking picture MAIN: 2026-05-18 08:11:05,578 - INFO - we take 101 photos in this while loop MAIN: 2026-05-18 08:11:05,578 - INFO - /home/pi/Desktop/images/18052026/08/10/image_18052026_08_11_04_59575.jpg MAIN: 2026-05-18 08:11:05,578 - INFO - duration: 0.9687830950006173 MAIN: 2026-05-18 08:11:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:12: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-05-18 08:12:04,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 ! MAIN: 2026-05-18 08:12:05,316 - INFO - taking picture MAIN: 2026-05-18 08:12:05,316 - INFO - we take 102 photos in this while loop MAIN: 2026-05-18 08:12:05,317 - INFO - /home/pi/Desktop/images/18052026/08/11/image_18052026_08_12_04_59781.jpg MAIN: 2026-05-18 08:12:05,317 - INFO - duration: 0.9259008349999931 MAIN: 2026-05-18 08:12:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:13: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-05-18 08:13:05,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-05-18 08:13:06,370 - INFO - taking picture MAIN: 2026-05-18 08:13:06,370 - INFO - we take 103 photos in this while loop MAIN: 2026-05-18 08:13:06,370 - INFO - /home/pi/Desktop/images/18052026/08/12/image_18052026_08_13_05_61049.jpg MAIN: 2026-05-18 08:13:06,370 - INFO - duration: 0.9299096529994131 MAIN: 2026-05-18 08:13:06,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:14:05,345 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:14: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-05-18 08:14:06,157 - INFO - taking picture MAIN: 2026-05-18 08:14:06,157 - INFO - we take 104 photos in this while loop MAIN: 2026-05-18 08:14:06,157 - INFO - /home/pi/Desktop/images/18052026/08/13/image_18052026_08_14_05_59770.jpg MAIN: 2026-05-18 08:14:06,157 - INFO - duration: 0.9464402569992671 MAIN: 2026-05-18 08:14:06,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:15:05,152 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:15: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-05-18 08:15:05,830 - INFO - taking picture MAIN: 2026-05-18 08:15:05,831 - INFO - we take 105 photos in this while loop MAIN: 2026-05-18 08:15:05,831 - INFO - /home/pi/Desktop/images/18052026/08/14/image_18052026_08_15_05_59681.jpg MAIN: 2026-05-18 08:15:05,831 - INFO - duration: 0.9381277819993556 MAIN: 2026-05-18 08:15:05,831 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:16: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-05-18 08:16:05,737 - INFO - taking picture MAIN: 2026-05-18 08:16:05,737 - INFO - we take 106 photos in this while loop MAIN: 2026-05-18 08:16:05,737 - INFO - /home/pi/Desktop/images/18052026/08/15/image_18052026_08_16_05_59931.jpg MAIN: 2026-05-18 08:16:05,738 - INFO - duration: 0.9136651489989163 MAIN: 2026-05-18 08:16:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/16' MAIN: 2026-05-18 08:16:05,773 - 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-05-18 08:17:04,993 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:17:05,657 - INFO - taking picture MAIN: 2026-05-18 08:17:05,658 - INFO - we take 107 photos in this while loop MAIN: 2026-05-18 08:17:05,658 - INFO - /home/pi/Desktop/images/18052026/08/16/image_18052026_08_17_04_59901.jpg MAIN: 2026-05-18 08:17:05,658 - INFO - duration: 0.9323157470007573 MAIN: 2026-05-18 08:17:05,658 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/17' MAIN: 2026-05-18 08:17:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:18: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-05-18 08:18: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-05-18 08:18:05,568 - INFO - taking picture MAIN: 2026-05-18 08:18:05,568 - INFO - we take 108 photos in this while loop MAIN: 2026-05-18 08:18:05,568 - INFO - /home/pi/Desktop/images/18052026/08/17/image_18052026_08_18_04_59852.jpg MAIN: 2026-05-18 08:18:05,569 - INFO - duration: 0.9905358199994225 MAIN: 2026-05-18 08:18:05,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:19: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-05-18 08:19: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-05-18 08:19:05,534 - INFO - taking picture MAIN: 2026-05-18 08:19:05,534 - INFO - we take 109 photos in this while loop MAIN: 2026-05-18 08:19:05,534 - INFO - /home/pi/Desktop/images/18052026/08/18/image_18052026_08_19_04_60033.jpg MAIN: 2026-05-18 08:19:05,535 - INFO - duration: 0.9229714890007017 MAIN: 2026-05-18 08:19:05,535 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:20: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-05-18 08:20: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-05-18 08:20:05,709 - INFO - taking picture MAIN: 2026-05-18 08:20:05,710 - INFO - we take 110 photos in this while loop MAIN: 2026-05-18 08:20:05,710 - INFO - /home/pi/Desktop/images/18052026/08/19/image_18052026_08_20_04_60111.jpg MAIN: 2026-05-18 08:20:05,710 - INFO - duration: 0.986918386999605 MAIN: 2026-05-18 08:20:05,710 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:21: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-05-18 08:21: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-05-18 08:21:05,606 - INFO - taking picture MAIN: 2026-05-18 08:21:05,607 - INFO - we take 111 photos in this while loop MAIN: 2026-05-18 08:21:05,607 - INFO - /home/pi/Desktop/images/18052026/08/20/image_18052026_08_21_04_59929.jpg MAIN: 2026-05-18 08:21:05,607 - INFO - duration: 0.9541418409990001 MAIN: 2026-05-18 08:21:05,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:22: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-05-18 08:22: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-05-18 08:22:05,656 - INFO - taking picture MAIN: 2026-05-18 08:22:05,657 - INFO - we take 112 photos in this while loop MAIN: 2026-05-18 08:22:05,657 - INFO - /home/pi/Desktop/images/18052026/08/21/image_18052026_08_22_04_60071.jpg MAIN: 2026-05-18 08:22:05,657 - INFO - duration: 0.9325462649994734 MAIN: 2026-05-18 08:22:05,657 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:23: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-05-18 08:23:05,537 - INFO - taking picture MAIN: 2026-05-18 08:23:05,537 - INFO - we take 113 photos in this while loop MAIN: 2026-05-18 08:23:05,537 - INFO - /home/pi/Desktop/images/18052026/08/22/image_18052026_08_23_04_59888.jpg MAIN: 2026-05-18 08:23:05,537 - INFO - duration: 0.9248598699996364 MAIN: 2026-05-18 08:23:05,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/23' MAIN: 2026-05-18 08:23: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:24: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-05-18 08:24:05,165 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:24:05,355 - INFO - taking picture MAIN: 2026-05-18 08:24:05,356 - INFO - we take 114 photos in this while loop MAIN: 2026-05-18 08:24:05,356 - INFO - /home/pi/Desktop/images/18052026/08/23/image_18052026_08_24_04_59818.jpg MAIN: 2026-05-18 08:24:05,356 - INFO - duration: 0.9253626450008596 MAIN: 2026-05-18 08:24:05,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:25:04,803 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:25: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-05-18 08:25:05,478 - INFO - taking picture MAIN: 2026-05-18 08:25:05,479 - INFO - we take 115 photos in this while loop MAIN: 2026-05-18 08:25:05,479 - INFO - /home/pi/Desktop/images/18052026/08/24/image_18052026_08_25_04_60098.jpg MAIN: 2026-05-18 08:25:05,479 - INFO - duration: 0.9498847140002908 MAIN: 2026-05-18 08:25:05,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:26: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-05-18 08:26: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-05-18 08:26:06,145 - INFO - taking picture MAIN: 2026-05-18 08:26:06,146 - INFO - we take 116 photos in this while loop MAIN: 2026-05-18 08:26:06,146 - INFO - /home/pi/Desktop/images/18052026/08/25/image_18052026_08_26_05_60604.jpg MAIN: 2026-05-18 08:26:06,146 - INFO - duration: 1.012749770998198 MAIN: 2026-05-18 08:26:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:27: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-05-18 08:27:05,611 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:27:06,336 - INFO - taking picture MAIN: 2026-05-18 08:27:06,336 - INFO - we take 117 photos in this while loop MAIN: 2026-05-18 08:27:06,336 - INFO - /home/pi/Desktop/images/18052026/08/26/image_18052026_08_27_05_60228.jpg MAIN: 2026-05-18 08:27:06,336 - INFO - duration: 0.9740518429989606 MAIN: 2026-05-18 08:27:06,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:28: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-05-18 08:28:05,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-05-18 08:28:06,399 - INFO - taking picture MAIN: 2026-05-18 08:28:06,399 - INFO - we take 118 photos in this while loop MAIN: 2026-05-18 08:28:06,399 - INFO - /home/pi/Desktop/images/18052026/08/27/image_18052026_08_28_05_60053.jpg MAIN: 2026-05-18 08:28:06,400 - INFO - duration: 0.9837767200006056 MAIN: 2026-05-18 08:28:06,400 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:29:04,674 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:29:05,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-05-18 08:29:06,421 - INFO - taking picture MAIN: 2026-05-18 08:29:06,421 - INFO - we take 119 photos in this while loop MAIN: 2026-05-18 08:29:06,421 - INFO - /home/pi/Desktop/images/18052026/08/28/image_18052026_08_29_05_60059.jpg MAIN: 2026-05-18 08:29:06,422 - INFO - duration: 0.9465812560010818 MAIN: 2026-05-18 08:29:06,422 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:30: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-05-18 08:30: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-05-18 08:30:06,376 - INFO - taking picture MAIN: 2026-05-18 08:30:06,377 - INFO - we take 120 photos in this while loop MAIN: 2026-05-18 08:30:06,377 - INFO - /home/pi/Desktop/images/18052026/08/29/image_18052026_08_30_05_59982.jpg MAIN: 2026-05-18 08:30:06,377 - INFO - duration: 0.9197063290012011 MAIN: 2026-05-18 08:30:06,377 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:31:04,887 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:31:05,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-05-18 08:31:06,372 - INFO - taking picture MAIN: 2026-05-18 08:31:06,372 - INFO - we take 121 photos in this while loop MAIN: 2026-05-18 08:31:06,373 - INFO - /home/pi/Desktop/images/18052026/08/30/image_18052026_08_31_05_59949.jpg MAIN: 2026-05-18 08:31:06,373 - INFO - duration: 0.9657889069985686 MAIN: 2026-05-18 08:31:06,373 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:32:05,313 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:32:05,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-05-18 08:32:06,361 - INFO - taking picture MAIN: 2026-05-18 08:32:06,361 - INFO - we take 122 photos in this while loop MAIN: 2026-05-18 08:32:06,361 - INFO - /home/pi/Desktop/images/18052026/08/31/image_18052026_08_32_05_60042.jpg MAIN: 2026-05-18 08:32:06,361 - INFO - duration: 0.9117831299990939 MAIN: 2026-05-18 08:32:06,361 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:33: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-05-18 08:33: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-05-18 08:33:05,345 - INFO - taking picture MAIN: 2026-05-18 08:33:05,345 - INFO - we take 123 photos in this while loop MAIN: 2026-05-18 08:33:05,345 - INFO - /home/pi/Desktop/images/18052026/08/32/image_18052026_08_33_04_58934.jpg MAIN: 2026-05-18 08:33:05,345 - INFO - duration: 0.9612423979997402 MAIN: 2026-05-18 08:33:05,346 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:34:05,683 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:34:05,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-05-18 08:34:06,427 - INFO - taking picture MAIN: 2026-05-18 08:34:06,427 - INFO - we take 124 photos in this while loop MAIN: 2026-05-18 08:34:06,427 - INFO - /home/pi/Desktop/images/18052026/08/33/image_18052026_08_34_05_61071.jpg MAIN: 2026-05-18 08:34:06,427 - INFO - duration: 0.9716324359997088 MAIN: 2026-05-18 08:34:06,427 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:35: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-05-18 08:35:05,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-05-18 08:35:06,410 - INFO - taking picture MAIN: 2026-05-18 08:35:06,411 - INFO - we take 125 photos in this while loop MAIN: 2026-05-18 08:35:06,411 - INFO - /home/pi/Desktop/images/18052026/08/34/image_18052026_08_35_05_59901.jpg MAIN: 2026-05-18 08:35:06,411 - INFO - duration: 1.0534410619984556 MAIN: 2026-05-18 08:35:06,411 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08: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-05-18 08:36:05,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-05-18 08:36:06,336 - INFO - taking picture MAIN: 2026-05-18 08:36:06,336 - INFO - we take 126 photos in this while loop MAIN: 2026-05-18 08:36:06,336 - INFO - /home/pi/Desktop/images/18052026/08/35/image_18052026_08_36_05_60092.jpg MAIN: 2026-05-18 08:36:06,336 - INFO - duration: 0.8861363100004382 MAIN: 2026-05-18 08:36:06,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:37:04,864 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:37:05,824 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:37:06,494 - INFO - taking picture MAIN: 2026-05-18 08:37:06,494 - INFO - we take 127 photos in this while loop MAIN: 2026-05-18 08:37:06,494 - INFO - /home/pi/Desktop/images/18052026/08/36/image_18052026_08_37_05_60083.jpg MAIN: 2026-05-18 08:37:06,494 - INFO - duration: 0.961056844000268 MAIN: 2026-05-18 08:37:06,495 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:38:05,358 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:38:05,653 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:38:06,384 - INFO - taking picture MAIN: 2026-05-18 08:38:06,384 - INFO - we take 128 photos in this while loop MAIN: 2026-05-18 08:38:06,384 - INFO - /home/pi/Desktop/images/18052026/08/37/image_18052026_08_38_05_59877.jpg MAIN: 2026-05-18 08:38:06,384 - INFO - duration: 0.9732859050000116 MAIN: 2026-05-18 08:38:06,385 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:39: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-05-18 08:39: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 ! MAIN: 2026-05-18 08:39:05,315 - INFO - taking picture MAIN: 2026-05-18 08:39:05,316 - INFO - we take 129 photos in this while loop MAIN: 2026-05-18 08:39:05,316 - INFO - /home/pi/Desktop/images/18052026/08/38/image_18052026_08_39_04_58962.jpg MAIN: 2026-05-18 08:39:05,316 - INFO - duration: 0.9422584719995939 MAIN: 2026-05-18 08:39:05,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:40: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-05-18 08:40: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-05-18 08:40:05,857 - INFO - taking picture MAIN: 2026-05-18 08:40:05,857 - INFO - we take 130 photos in this while loop MAIN: 2026-05-18 08:40:05,857 - INFO - /home/pi/Desktop/images/18052026/08/39/image_18052026_08_40_05_60478.jpg MAIN: 2026-05-18 08:40:05,858 - INFO - duration: 1.0057748899998842 MAIN: 2026-05-18 08:40:05,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:41: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-05-18 08:41: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-05-18 08:41:05,699 - INFO - taking picture MAIN: 2026-05-18 08:41:05,700 - INFO - we take 131 photos in this while loop MAIN: 2026-05-18 08:41:05,700 - INFO - /home/pi/Desktop/images/18052026/08/40/image_18052026_08_41_05_59893.jpg MAIN: 2026-05-18 08:41:05,700 - INFO - duration: 0.9548951910001051 MAIN: 2026-05-18 08:41:05,700 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:42:04,864 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:42: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-05-18 08:42:05,546 - INFO - taking picture MAIN: 2026-05-18 08:42:05,546 - INFO - we take 132 photos in this while loop MAIN: 2026-05-18 08:42:05,546 - INFO - /home/pi/Desktop/images/18052026/08/41/image_18052026_08_42_04_59846.jpg MAIN: 2026-05-18 08:42:05,546 - INFO - duration: 0.9552389390009921 MAIN: 2026-05-18 08:42:05,547 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:43: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-05-18 08:43:04,651 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:43:05,397 - INFO - taking picture MAIN: 2026-05-18 08:43:05,397 - INFO - we take 133 photos in this while loop MAIN: 2026-05-18 08:43:05,397 - INFO - /home/pi/Desktop/images/18052026/08/42/image_18052026_08_43_04_59771.jpg MAIN: 2026-05-18 08:43:05,397 - INFO - duration: 1.0344928550002805 MAIN: 2026-05-18 08:43:05,398 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:44:05,448 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:44: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-05-18 08:44:06,243 - INFO - taking picture MAIN: 2026-05-18 08:44:06,243 - INFO - we take 134 photos in this while loop MAIN: 2026-05-18 08:44:06,243 - INFO - /home/pi/Desktop/images/18052026/08/43/image_18052026_08_44_05_60899.jpg MAIN: 2026-05-18 08:44:06,243 - INFO - duration: 0.9810541129991179 MAIN: 2026-05-18 08:44:06,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:45:05,539 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:45: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-05-18 08:45:06,360 - INFO - taking picture MAIN: 2026-05-18 08:45:06,360 - INFO - we take 135 photos in this while loop MAIN: 2026-05-18 08:45:06,361 - INFO - /home/pi/Desktop/images/18052026/08/44/image_18052026_08_45_05_60120.jpg MAIN: 2026-05-18 08:45:06,361 - INFO - duration: 0.9781827690003411 MAIN: 2026-05-18 08:45:06,361 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/45' MAIN: 2026-05-18 08:46: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:46:05,393 - INFO - taking picture MAIN: 2026-05-18 08:46:05,394 - INFO - we take 136 photos in this while loop MAIN: 2026-05-18 08:46:05,394 - INFO - /home/pi/Desktop/images/18052026/08/45/image_18052026_08_46_04_59075.jpg MAIN: 2026-05-18 08:46:05,394 - INFO - duration: 0.9356253549995017 MAIN: 2026-05-18 08:46:05,394 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/46' MAIN: 2026-05-18 08:46: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-05-18 08:47: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-05-18 08:47: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-05-18 08:47:06,330 - INFO - taking picture MAIN: 2026-05-18 08:47:06,330 - INFO - we take 137 photos in this while loop MAIN: 2026-05-18 08:47:06,330 - INFO - /home/pi/Desktop/images/18052026/08/46/image_18052026_08_47_05_60847.jpg MAIN: 2026-05-18 08:47:06,331 - INFO - duration: 1.0251198269997985 MAIN: 2026-05-18 08:47:06,331 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/47' MAIN: 2026-05-18 08:48: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:48:05,598 - INFO - taking picture MAIN: 2026-05-18 08:48:05,598 - INFO - we take 138 photos in this while loop MAIN: 2026-05-18 08:48:05,598 - INFO - /home/pi/Desktop/images/18052026/08/47/image_18052026_08_48_04_59367.jpg MAIN: 2026-05-18 08:48:05,599 - INFO - duration: 0.9260249890012346 MAIN: 2026-05-18 08:48:05,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/48' MAIN: 2026-05-18 08:48: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-05-18 08:49:04,695 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:49: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-05-18 08:49:05,380 - INFO - taking picture MAIN: 2026-05-18 08:49:05,380 - INFO - we take 139 photos in this while loop MAIN: 2026-05-18 08:49:05,380 - INFO - /home/pi/Desktop/images/18052026/08/48/image_18052026_08_49_04_59740.jpg MAIN: 2026-05-18 08:49:05,380 - INFO - duration: 0.9675224820002768 MAIN: 2026-05-18 08:49:05,381 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:50: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-05-18 08:50: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 ! MAIN: 2026-05-18 08:50:05,618 - INFO - taking picture MAIN: 2026-05-18 08:50:05,618 - INFO - we take 140 photos in this while loop MAIN: 2026-05-18 08:50:05,618 - INFO - /home/pi/Desktop/images/18052026/08/49/image_18052026_08_50_04_60246.jpg MAIN: 2026-05-18 08:50:05,619 - INFO - duration: 0.9594006219995208 MAIN: 2026-05-18 08:50:05,619 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:51: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-05-18 08:51: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-05-18 08:51:05,513 - INFO - taking picture MAIN: 2026-05-18 08:51:05,513 - INFO - we take 141 photos in this while loop MAIN: 2026-05-18 08:51:05,513 - INFO - /home/pi/Desktop/images/18052026/08/50/image_18052026_08_51_04_59895.jpg MAIN: 2026-05-18 08:51:05,513 - INFO - duration: 0.9585834249992331 MAIN: 2026-05-18 08:51:05,514 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:52: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-05-18 08:52:05,452 - INFO - taking picture MAIN: 2026-05-18 08:52:05,452 - INFO - we take 142 photos in this while loop MAIN: 2026-05-18 08:52:05,452 - INFO - /home/pi/Desktop/images/18052026/08/51/image_18052026_08_52_04_59946.jpg MAIN: 2026-05-18 08:52:05,452 - INFO - duration: 0.9509390989987878 MAIN: 2026-05-18 08:52:05,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/52' MAIN: 2026-05-18 08:52: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:53: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-05-18 08:53:05,621 - INFO - taking picture MAIN: 2026-05-18 08:53:05,621 - INFO - we take 143 photos in this while loop MAIN: 2026-05-18 08:53:05,621 - INFO - cam.read() return no image MAIN: 2026-05-18 08:53:05,621 - INFO - /home/pi/Desktop/images/18052026/08/52/image_18052026_08_53_04_60164.jpg MAIN: 2026-05-18 08:53:05,621 - INFO - duration: 0.9558045069989021 Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:53:05,622 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:54: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-05-18 08: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-05-18 08:54:05,491 - INFO - taking picture MAIN: 2026-05-18 08:54:05,491 - INFO - we take 144 photos in this while loop MAIN: 2026-05-18 08:54:05,491 - INFO - /home/pi/Desktop/images/18052026/08/53/image_18052026_08_54_04_59888.jpg MAIN: 2026-05-18 08:54:05,491 - INFO - duration: 0.9368162299997493 MAIN: 2026-05-18 08:54:05,491 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:55: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-05-18 08:55:05,317 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 08:55:05,633 - INFO - taking picture MAIN: 2026-05-18 08:55:05,633 - INFO - we take 145 photos in this while loop MAIN: 2026-05-18 08:55:05,633 - INFO - /home/pi/Desktop/images/18052026/08/54/image_18052026_08_55_04_60131.jpg MAIN: 2026-05-18 08:55:05,633 - INFO - duration: 0.9478413679989899 MAIN: 2026-05-18 08:55:05,634 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:56:04,820 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:56:05,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-05-18 08:56:05,505 - INFO - taking picture MAIN: 2026-05-18 08:56:05,506 - INFO - we take 146 photos in this while loop MAIN: 2026-05-18 08:56:05,506 - INFO - /home/pi/Desktop/images/18052026/08/55/image_18052026_08_56_04_59866.jpg MAIN: 2026-05-18 08:56:05,506 - INFO - duration: 0.953609599999254 MAIN: 2026-05-18 08:56:05,506 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/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-05-18 08:57:04,923 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 08:57: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-05-18 08:57:05,636 - INFO - taking picture MAIN: 2026-05-18 08:57:05,637 - INFO - we take 147 photos in this while loop MAIN: 2026-05-18 08:57:05,637 - INFO - /home/pi/Desktop/images/18052026/08/56/image_18052026_08_57_04_60057.jpg MAIN: 2026-05-18 08:57:05,637 - INFO - duration: 1.0271663580006134 MAIN: 2026-05-18 08:57:05,637 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 08:58: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-05-18 08:58:05,743 - INFO - taking picture MAIN: 2026-05-18 08:58:05,744 - INFO - we take 148 photos in this while loop MAIN: 2026-05-18 08:58:05,744 - INFO - /home/pi/Desktop/images/18052026/08/57/image_18052026_08_58_05_60185.jpg MAIN: 2026-05-18 08:58:05,744 - INFO - duration: 0.9484035999994376 MAIN: 2026-05-18 08:58:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/58' MAIN: 2026-05-18 08:58: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 08:59: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-05-18 08:59:05,627 - INFO - taking picture MAIN: 2026-05-18 08:59:05,628 - INFO - we take 149 photos in this while loop MAIN: 2026-05-18 08:59:05,628 - INFO - /home/pi/Desktop/images/18052026/08/58/image_18052026_08_59_04_59811.jpg MAIN: 2026-05-18 08:59:05,628 - INFO - duration: 1.021137235000424 MAIN: 2026-05-18 08:59:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/08/59' MAIN: 2026-05-18 08:59: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-05-18 09:00: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-05-18 09:00:05,068 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:00:05,767 - INFO - taking picture MAIN: 2026-05-18 09:00:05,767 - INFO - we take 150 photos in this while loop MAIN: 2026-05-18 09:00:05,768 - INFO - /home/pi/Desktop/images/18052026/08/59/image_18052026_09_00_05_60113.jpg MAIN: 2026-05-18 09:00:05,768 - INFO - duration: 1.0470291020010336 MAIN: 2026-05-18 09:00:05,768 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:01:04,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 ! MAIN: 2026-05-18 09:01: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-05-18 09:01:06,133 - INFO - taking picture MAIN: 2026-05-18 09:01:06,133 - INFO - we take 151 photos in this while loop MAIN: 2026-05-18 09:01:06,133 - INFO - /home/pi/Desktop/images/18052026/09/00/image_18052026_09_01_05_60509.jpg MAIN: 2026-05-18 09:01:06,133 - INFO - duration: 0.902417264000178 MAIN: 2026-05-18 09:01:06,133 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:02: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-05-18 09:02: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-05-18 09:02:06,016 - INFO - taking picture MAIN: 2026-05-18 09:02:06,016 - INFO - we take 152 photos in this while loop MAIN: 2026-05-18 09:02:06,016 - INFO - /home/pi/Desktop/images/18052026/09/01/image_18052026_09_02_05_59858.jpg MAIN: 2026-05-18 09:02:06,016 - INFO - duration: 0.9272484559987788 MAIN: 2026-05-18 09:02:06,016 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:03: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-05-18 09:03: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-05-18 09:03:05,780 - INFO - taking picture MAIN: 2026-05-18 09:03:05,780 - INFO - we take 153 photos in this while loop MAIN: 2026-05-18 09:03:05,780 - INFO - /home/pi/Desktop/images/18052026/09/02/image_18052026_09_03_05_59717.jpg MAIN: 2026-05-18 09:03:05,780 - INFO - duration: 0.974254259999725 MAIN: 2026-05-18 09:03:05,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:04:05,026 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:04:05,702 - INFO - taking picture MAIN: 2026-05-18 09:04:05,703 - INFO - we take 154 photos in this while loop MAIN: 2026-05-18 09:04:05,703 - INFO - /home/pi/Desktop/images/18052026/09/03/image_18052026_09_04_05_59946.jpg MAIN: 2026-05-18 09:04:05,703 - INFO - duration: 0.9499591470012092 MAIN: 2026-05-18 09:04:05,703 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/04' MAIN: 2026-05-18 09:04:05,845 - 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-05-18 09:05:05,211 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:05:05,956 - INFO - taking picture MAIN: 2026-05-18 09:05:05,956 - INFO - we take 155 photos in this while loop MAIN: 2026-05-18 09:05:05,956 - INFO - /home/pi/Desktop/images/18052026/09/04/image_18052026_09_05_05_60156.jpg MAIN: 2026-05-18 09:05:05,956 - INFO - duration: 1.0471516859979602 MAIN: 2026-05-18 09:05:05,957 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/05' MAIN: 2026-05-18 09:05:06,038 - 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-05-18 09:06: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-05-18 09:06:04,751 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:06:05,318 - INFO - taking picture MAIN: 2026-05-18 09:06:05,318 - INFO - we take 156 photos in this while loop MAIN: 2026-05-18 09:06:05,318 - INFO - /home/pi/Desktop/images/18052026/09/05/image_18052026_09_06_04_59473.jpg MAIN: 2026-05-18 09:06:05,318 - INFO - duration: 0.9355925679992652 MAIN: 2026-05-18 09:06:05,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:07: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-05-18 09:07: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-05-18 09:07:05,733 - INFO - taking picture MAIN: 2026-05-18 09:07:05,733 - INFO - we take 157 photos in this while loop MAIN: 2026-05-18 09:07:05,733 - INFO - /home/pi/Desktop/images/18052026/09/06/image_18052026_09_07_05_60353.jpg MAIN: 2026-05-18 09:07:05,734 - INFO - duration: 0.9972964839980705 MAIN: 2026-05-18 09:07:05,734 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:08:04,982 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:08: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-05-18 09:08:05,737 - INFO - taking picture MAIN: 2026-05-18 09:08:05,738 - INFO - we take 158 photos in this while loop MAIN: 2026-05-18 09:08:05,738 - INFO - /home/pi/Desktop/images/18052026/09/07/image_18052026_09_08_04_59981.jpg MAIN: 2026-05-18 09:08:05,738 - INFO - duration: 1.019993334000901 MAIN: 2026-05-18 09:08:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:09:05,011 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:09:05,016 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:09:05,705 - INFO - taking picture MAIN: 2026-05-18 09:09:05,706 - INFO - we take 159 photos in this while loop MAIN: 2026-05-18 09:09:05,706 - INFO - /home/pi/Desktop/images/18052026/09/08/image_18052026_09_09_05_59995.jpg MAIN: 2026-05-18 09:09:05,706 - INFO - duration: 0.9921990780021588 MAIN: 2026-05-18 09:09:05,706 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:10:05,095 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:10:05,833 - INFO - taking picture MAIN: 2026-05-18 09:10:05,834 - INFO - we take 160 photos in this while loop MAIN: 2026-05-18 09:10:05,834 - INFO - /home/pi/Desktop/images/18052026/09/09/image_18052026_09_10_05_60135.jpg MAIN: 2026-05-18 09:10:05,834 - INFO - duration: 0.9845760559983319 MAIN: 2026-05-18 09:10:05,834 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/10' MAIN: 2026-05-18 09:10: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-05-18 09:11: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-05-18 09:11:05,599 - INFO - taking picture MAIN: 2026-05-18 09:11:05,600 - INFO - we take 161 photos in this while loop MAIN: 2026-05-18 09:11:05,600 - INFO - /home/pi/Desktop/images/18052026/09/10/image_18052026_09_11_04_59814.jpg MAIN: 2026-05-18 09:11:05,600 - INFO - duration: 0.9360672809998505 MAIN: 2026-05-18 09:11:05,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/11' MAIN: 2026-05-18 09:11:05,831 - 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-05-18 09:12:04,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-05-18 09:12: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-05-18 09:12:05,309 - INFO - taking picture MAIN: 2026-05-18 09:12:05,309 - INFO - we take 162 photos in this while loop MAIN: 2026-05-18 09:12:05,309 - INFO - /home/pi/Desktop/images/18052026/09/11/image_18052026_09_12_04_59697.jpg MAIN: 2026-05-18 09:12:05,309 - INFO - duration: 0.9478901860020414 MAIN: 2026-05-18 09:12:05,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:13: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-05-18 09:13:05,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-05-18 09:13:06,214 - INFO - taking picture MAIN: 2026-05-18 09:13:06,214 - INFO - we take 163 photos in this while loop MAIN: 2026-05-18 09:13:06,214 - INFO - /home/pi/Desktop/images/18052026/09/12/image_18052026_09_13_05_60904.jpg MAIN: 2026-05-18 09:13:06,214 - INFO - duration: 0.9484137879990158 MAIN: 2026-05-18 09:13:06,215 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:14:05,310 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:14:05,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-05-18 09:14:06,203 - INFO - taking picture MAIN: 2026-05-18 09:14:06,203 - INFO - we take 164 photos in this while loop MAIN: 2026-05-18 09:14:06,203 - INFO - /home/pi/Desktop/images/18052026/09/13/image_18052026_09_14_05_59983.jpg MAIN: 2026-05-18 09:14:06,204 - INFO - duration: 0.9535161540006811 MAIN: 2026-05-18 09:14:06,204 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:15: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-05-18 09:15:05,515 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:15:06,152 - INFO - taking picture MAIN: 2026-05-18 09:15:06,152 - INFO - we take 165 photos in this while loop MAIN: 2026-05-18 09:15:06,152 - INFO - /home/pi/Desktop/images/18052026/09/14/image_18052026_09_15_05_59863.jpg MAIN: 2026-05-18 09:15:06,152 - INFO - duration: 1.0392570740004885 MAIN: 2026-05-18 09:15:06,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:16:05,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-05-18 09:16: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-05-18 09:16:06,113 - INFO - taking picture MAIN: 2026-05-18 09:16:06,113 - INFO - we take 166 photos in this while loop MAIN: 2026-05-18 09:16:06,113 - INFO - /home/pi/Desktop/images/18052026/09/15/image_18052026_09_16_05_60062.jpg MAIN: 2026-05-18 09:16:06,114 - INFO - duration: 0.9381960860009713 MAIN: 2026-05-18 09:16:06,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:17: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-05-18 09:17: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-05-18 09:17:05,944 - INFO - taking picture MAIN: 2026-05-18 09:17:05,944 - INFO - we take 167 photos in this while loop MAIN: 2026-05-18 09:17:05,945 - INFO - /home/pi/Desktop/images/18052026/09/16/image_18052026_09_17_05_59796.jpg MAIN: 2026-05-18 09:17:05,945 - INFO - duration: 0.9730386390001513 MAIN: 2026-05-18 09:17:05,945 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:18: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-05-18 09:18: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-05-18 09:18:06,122 - INFO - taking picture MAIN: 2026-05-18 09:18:06,122 - INFO - we take 168 photos in this while loop MAIN: 2026-05-18 09:18:06,122 - INFO - /home/pi/Desktop/images/18052026/09/17/image_18052026_09_18_05_60130.jpg MAIN: 2026-05-18 09:18:06,122 - INFO - duration: 1.020201352002914 MAIN: 2026-05-18 09:18:06,123 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:19: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-05-18 09:19: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-05-18 09:19:06,194 - INFO - taking picture MAIN: 2026-05-18 09:19:06,194 - INFO - we take 169 photos in this while loop MAIN: 2026-05-18 09:19:06,194 - INFO - /home/pi/Desktop/images/18052026/09/18/image_18052026_09_19_05_60100.jpg MAIN: 2026-05-18 09:19:06,194 - INFO - duration: 0.9914029910032696 MAIN: 2026-05-18 09:19:06,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:20: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-05-18 09:20:05,409 - INFO - taking picture MAIN: 2026-05-18 09:20:05,409 - INFO - we take 170 photos in this while loop MAIN: 2026-05-18 09:20:05,409 - INFO - /home/pi/Desktop/images/18052026/09/19/image_18052026_09_20_04_59299.jpg MAIN: 2026-05-18 09:20:05,409 - INFO - duration: 0.906877239998721 MAIN: 2026-05-18 09:20:05,410 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/20' MAIN: 2026-05-18 09:20: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09: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-05-18 09:21:05,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-05-18 09:21:06,308 - INFO - taking picture MAIN: 2026-05-18 09:21:06,308 - INFO - we take 171 photos in this while loop MAIN: 2026-05-18 09:21:06,309 - INFO - /home/pi/Desktop/images/18052026/09/20/image_18052026_09_21_05_60864.jpg MAIN: 2026-05-18 09:21:06,309 - INFO - duration: 0.9416231979994336 MAIN: 2026-05-18 09:21:06,309 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:22:05,487 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:22: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-05-18 09:22:06,226 - INFO - taking picture MAIN: 2026-05-18 09:22:06,226 - INFO - we take 172 photos in this while loop MAIN: 2026-05-18 09:22:06,227 - INFO - /home/pi/Desktop/images/18052026/09/21/image_18052026_09_22_05_59890.jpg MAIN: 2026-05-18 09:22:06,227 - INFO - duration: 0.968794999000238 MAIN: 2026-05-18 09:22:06,227 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:23: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-05-18 09:23: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-05-18 09:23:05,940 - INFO - taking picture MAIN: 2026-05-18 09:23:05,940 - INFO - we take 173 photos in this while loop MAIN: 2026-05-18 09:23:05,940 - INFO - /home/pi/Desktop/images/18052026/09/22/image_18052026_09_23_05_59728.jpg MAIN: 2026-05-18 09:23:05,940 - INFO - duration: 0.9542708109984233 MAIN: 2026-05-18 09:23:05,941 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09: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-05-18 09:24:05,731 - INFO - taking picture MAIN: 2026-05-18 09:24:05,732 - INFO - we take 174 photos in this while loop MAIN: 2026-05-18 09:24:05,732 - INFO - /home/pi/Desktop/images/18052026/09/23/image_18052026_09_24_05_59811.jpg MAIN: 2026-05-18 09:24:05,732 - INFO - duration: 0.9341661469989049 MAIN: 2026-05-18 09:24:05,732 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/24' MAIN: 2026-05-18 09:24: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09:25: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-05-18 09:25: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-05-18 09:25:05,459 - INFO - taking picture MAIN: 2026-05-18 09:25:05,460 - INFO - we take 175 photos in this while loop MAIN: 2026-05-18 09:25:05,460 - INFO - /home/pi/Desktop/images/18052026/09/24/image_18052026_09_25_04_59703.jpg MAIN: 2026-05-18 09:25:05,460 - INFO - duration: 0.9586405490008474 MAIN: 2026-05-18 09:25:05,460 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:26:05,222 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:26:05,537 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:26:06,281 - INFO - taking picture MAIN: 2026-05-18 09:26:06,281 - INFO - we take 176 photos in this while loop MAIN: 2026-05-18 09:26:06,281 - INFO - /home/pi/Desktop/images/18052026/09/25/image_18052026_09_26_05_60762.jpg MAIN: 2026-05-18 09:26:06,281 - INFO - duration: 1.0176081479985442 MAIN: 2026-05-18 09:26:06,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:27:05,198 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:27:05,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-05-18 09:27:06,514 - INFO - taking picture MAIN: 2026-05-18 09:27:06,515 - INFO - we take 177 photos in this while loop MAIN: 2026-05-18 09:27:06,515 - INFO - /home/pi/Desktop/images/18052026/09/26/image_18052026_09_27_05_60260.jpg MAIN: 2026-05-18 09:27:06,515 - INFO - duration: 0.9904396899983112 MAIN: 2026-05-18 09:27:06,515 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:28:04,753 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:28:05,422 - INFO - taking picture MAIN: 2026-05-18 09:28:05,423 - INFO - we take 178 photos in this while loop MAIN: 2026-05-18 09:28:05,423 - INFO - /home/pi/Desktop/images/18052026/09/27/image_18052026_09_28_04_58965.jpg MAIN: 2026-05-18 09:28:05,423 - INFO - duration: 0.933050892999745 MAIN: 2026-05-18 09:28:05,423 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/28' MAIN: 2026-05-18 09:28: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09:29: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 MAIN: 2026-05-18 09:29:05,306 - INFO - taking picture MAIN: 2026-05-18 09:29:05,306 - INFO - we take 179 photos in this while loop MAIN: 2026-05-18 09:29:05,306 - INFO - /home/pi/Desktop/images/18052026/09/28/image_18052026_09_29_04_59883.jpg MAIN: 2026-05-18 09:29:05,306 - INFO - duration: 0.9327446220013371 MAIN: 2026-05-18 09:29:05,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/29' MAIN: 2026-05-18 09:29:05,420 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:30:04,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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09:30:05,329 - INFO - taking picture MAIN: 2026-05-18 09:30:05,329 - INFO - we take 180 photos in this while loop MAIN: 2026-05-18 09:30:05,329 - INFO - /home/pi/Desktop/images/18052026/09/29/image_18052026_09_30_04_60057.jpg MAIN: 2026-05-18 09:30:05,329 - INFO - duration: 0.8981326499997522 MAIN: 2026-05-18 09:30:05,330 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/30' MAIN: 2026-05-18 09:30: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-05-18 09:31:04,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-05-18 09:31:05,731 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:31:06,400 - INFO - taking picture MAIN: 2026-05-18 09:31:06,400 - INFO - we take 181 photos in this while loop MAIN: 2026-05-18 09:31:06,400 - INFO - /home/pi/Desktop/images/18052026/09/30/image_18052026_09_31_05_61039.jpg MAIN: 2026-05-18 09:31:06,400 - INFO - duration: 0.9299658959971566 MAIN: 2026-05-18 09:31:06,401 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:32:04,824 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:32: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-05-18 09:32:05,502 - INFO - taking picture MAIN: 2026-05-18 09:32:05,502 - INFO - we take 182 photos in this while loop MAIN: 2026-05-18 09:32:05,503 - INFO - /home/pi/Desktop/images/18052026/09/31/image_18052026_09_32_04_59090.jpg MAIN: 2026-05-18 09:32:05,503 - INFO - duration: 0.9416380670008948 MAIN: 2026-05-18 09:32:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09: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-05-18 09:33:05,689 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:33:06,358 - INFO - taking picture MAIN: 2026-05-18 09:33:06,358 - INFO - we take 183 photos in this while loop MAIN: 2026-05-18 09:33:06,358 - INFO - /home/pi/Desktop/images/18052026/09/32/image_18052026_09_33_05_60866.jpg MAIN: 2026-05-18 09:33:06,358 - INFO - duration: 0.9313212740016752 MAIN: 2026-05-18 09:33:06,359 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:34: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-05-18 09:34:05,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-05-18 09:34:06,512 - INFO - taking picture MAIN: 2026-05-18 09:34:06,512 - INFO - we take 184 photos in this while loop MAIN: 2026-05-18 09:34:06,512 - INFO - /home/pi/Desktop/images/18052026/09/33/image_18052026_09_34_05_60098.jpg MAIN: 2026-05-18 09:34:06,512 - INFO - duration: 0.9869592230024864 MAIN: 2026-05-18 09:34:06,513 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:35:05,184 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:35: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 ! MAIN: 2026-05-18 09:35:05,862 - INFO - taking picture MAIN: 2026-05-18 09:35:05,863 - INFO - we take 185 photos in this while loop MAIN: 2026-05-18 09:35:05,863 - INFO - /home/pi/Desktop/images/18052026/09/34/image_18052026_09_35_05_59387.jpg MAIN: 2026-05-18 09:35:05,863 - INFO - duration: 0.9501015709975036 MAIN: 2026-05-18 09:35:05,863 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:36: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-05-18 09:36:05,921 - INFO - taking picture MAIN: 2026-05-18 09:36:05,921 - INFO - we take 186 photos in this while loop MAIN: 2026-05-18 09:36:05,921 - INFO - /home/pi/Desktop/images/18052026/09/35/image_18052026_09_36_05_60006.jpg MAIN: 2026-05-18 09:36:05,921 - INFO - duration: 1.0020748200004164 MAIN: 2026-05-18 09:36:05,921 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/36' MAIN: 2026-05-18 09:36:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09:37:04,614 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:37: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-05-18 09:37:05,835 - INFO - taking picture MAIN: 2026-05-18 09:37:05,835 - INFO - we take 187 photos in this while loop MAIN: 2026-05-18 09:37:05,835 - INFO - /home/pi/Desktop/images/18052026/09/36/image_18052026_09_37_05_60012.jpg MAIN: 2026-05-18 09:37:05,836 - INFO - duration: 0.9039795949975087 MAIN: 2026-05-18 09:37:05,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:38:04,985 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:38:05,166 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:38:05,658 - INFO - taking picture MAIN: 2026-05-18 09:38:05,658 - INFO - we take 188 photos in this while loop MAIN: 2026-05-18 09:38:05,658 - INFO - /home/pi/Desktop/images/18052026/09/37/image_18052026_09_38_04_59769.jpg MAIN: 2026-05-18 09:38:05,658 - INFO - duration: 0.9571465010012616 MAIN: 2026-05-18 09:38:05,658 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:39: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-05-18 09:39: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-05-18 09:39:05,789 - INFO - taking picture MAIN: 2026-05-18 09:39:05,789 - INFO - we take 189 photos in this while loop MAIN: 2026-05-18 09:39:05,789 - INFO - /home/pi/Desktop/images/18052026/09/38/image_18052026_09_39_05_60103.jpg MAIN: 2026-05-18 09:39:05,789 - INFO - duration: 0.9850324260005436 MAIN: 2026-05-18 09:39:05,790 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:40:05,158 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:40: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 ! MAIN: 2026-05-18 09:40:05,901 - INFO - taking picture MAIN: 2026-05-18 09:40:05,902 - INFO - we take 190 photos in this while loop MAIN: 2026-05-18 09:40:05,902 - INFO - /home/pi/Desktop/images/18052026/09/39/image_18052026_09_40_05_60108.jpg MAIN: 2026-05-18 09:40:05,902 - INFO - duration: 0.9888108960003592 MAIN: 2026-05-18 09:40:05,902 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:41: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-05-18 09:41:05,356 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:41:05,763 - INFO - taking picture MAIN: 2026-05-18 09:41:05,764 - INFO - we take 191 photos in this while loop MAIN: 2026-05-18 09:41:05,764 - INFO - /home/pi/Desktop/images/18052026/09/40/image_18052026_09_41_05_59906.jpg MAIN: 2026-05-18 09:41:05,764 - INFO - duration: 0.9446540850003657 MAIN: 2026-05-18 09:41:05,764 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:42:05,125 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:42: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 ! MAIN: 2026-05-18 09:42:05,810 - INFO - taking picture MAIN: 2026-05-18 09:42:05,810 - INFO - we take 192 photos in this while loop MAIN: 2026-05-18 09:42:05,811 - INFO - /home/pi/Desktop/images/18052026/09/41/image_18052026_09_42_05_60031.jpg MAIN: 2026-05-18 09:42:05,811 - INFO - duration: 0.9594792770003551 MAIN: 2026-05-18 09:42:05,811 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:43: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-05-18 09:43:05,633 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:43:05,815 - INFO - taking picture MAIN: 2026-05-18 09:43:05,815 - INFO - we take 193 photos in this while loop MAIN: 2026-05-18 09:43:05,816 - INFO - /home/pi/Desktop/images/18052026/09/42/image_18052026_09_43_05_59983.jpg MAIN: 2026-05-18 09:43:05,816 - INFO - duration: 0.9810492990000057 MAIN: 2026-05-18 09:43:05,816 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:44: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-05-18 09:44: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-05-18 09:44:05,886 - INFO - taking picture MAIN: 2026-05-18 09:44:05,886 - INFO - we take 194 photos in this while loop MAIN: 2026-05-18 09:44:05,886 - INFO - /home/pi/Desktop/images/18052026/09/43/image_18052026_09_44_05_60020.jpg MAIN: 2026-05-18 09:44:05,886 - INFO - duration: 1.030753580002056 MAIN: 2026-05-18 09:44:05,886 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:45:05,163 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:45: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-05-18 09:45:05,848 - INFO - taking picture MAIN: 2026-05-18 09:45:05,848 - INFO - we take 195 photos in this while loop MAIN: 2026-05-18 09:45:05,848 - INFO - /home/pi/Desktop/images/18052026/09/44/image_18052026_09_45_05_60042.jpg MAIN: 2026-05-18 09:45:05,849 - INFO - duration: 0.9501921230003063 MAIN: 2026-05-18 09:45:05,849 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:46: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-05-18 09:46:05,329 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:46:05,752 - INFO - taking picture MAIN: 2026-05-18 09:46:05,753 - INFO - we take 196 photos in this while loop MAIN: 2026-05-18 09:46:05,753 - INFO - /home/pi/Desktop/images/18052026/09/45/image_18052026_09_46_05_59875.jpg MAIN: 2026-05-18 09:46:05,753 - INFO - duration: 0.9786732119973749 MAIN: 2026-05-18 09:46:05,753 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09: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-05-18 09:47:05,327 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:47:05,807 - INFO - taking picture MAIN: 2026-05-18 09:47:05,807 - INFO - we take 197 photos in this while loop MAIN: 2026-05-18 09:47:05,807 - INFO - /home/pi/Desktop/images/18052026/09/46/image_18052026_09_47_05_60065.jpg MAIN: 2026-05-18 09:47:05,807 - INFO - duration: 0.9673047029973532 MAIN: 2026-05-18 09:47:05,808 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:48: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-05-18 09:48: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-05-18 09:48:06,267 - INFO - taking picture MAIN: 2026-05-18 09:48:06,267 - INFO - we take 198 photos in this while loop MAIN: 2026-05-18 09:48:06,268 - INFO - /home/pi/Desktop/images/18052026/09/47/image_18052026_09_48_05_60486.jpg MAIN: 2026-05-18 09:48:06,268 - INFO - duration: 0.9409489880017645 MAIN: 2026-05-18 09:48:06,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:49: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-05-18 09:49:05,777 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:49:06,453 - INFO - taking picture MAIN: 2026-05-18 09:49:06,453 - INFO - we take 199 photos in this while loop MAIN: 2026-05-18 09:49:06,453 - INFO - /home/pi/Desktop/images/18052026/09/48/image_18052026_09_49_05_60173.jpg MAIN: 2026-05-18 09:49:06,453 - INFO - duration: 0.9533065840005293 MAIN: 2026-05-18 09:49:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:50:04,717 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:50: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-05-18 09:50:05,516 - INFO - taking picture MAIN: 2026-05-18 09:50:05,517 - INFO - we take 200 photos in this while loop MAIN: 2026-05-18 09:50:05,517 - INFO - /home/pi/Desktop/images/18052026/09/49/image_18052026_09_50_04_58968.jpg MAIN: 2026-05-18 09:50:05,517 - INFO - duration: 1.0481888790018274 MAIN: 2026-05-18 09:50:05,517 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:51:05,031 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:51: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-05-18 09:51:05,787 - INFO - taking picture MAIN: 2026-05-18 09:51:05,787 - INFO - we take 201 photos in this while loop MAIN: 2026-05-18 09:51:05,787 - INFO - /home/pi/Desktop/images/18052026/09/50/image_18052026_09_51_05_60346.jpg MAIN: 2026-05-18 09:51:05,787 - INFO - duration: 0.9723863729996083 MAIN: 2026-05-18 09:51:05,787 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:52:05,032 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:52: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-05-18 09:52:05,722 - INFO - taking picture MAIN: 2026-05-18 09:52:05,722 - INFO - we take 202 photos in this while loop MAIN: 2026-05-18 09:52:05,722 - INFO - /home/pi/Desktop/images/18052026/09/51/image_18052026_09_52_05_59945.jpg MAIN: 2026-05-18 09:52:05,723 - INFO - duration: 0.9622350110003026 MAIN: 2026-05-18 09:52:05,723 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:53:04,891 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:53: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-05-18 09:53:05,601 - INFO - taking picture MAIN: 2026-05-18 09:53:05,601 - INFO - we take 203 photos in this while loop MAIN: 2026-05-18 09:53:05,601 - INFO - /home/pi/Desktop/images/18052026/09/52/image_18052026_09_53_04_59859.jpg MAIN: 2026-05-18 09:53:05,601 - INFO - duration: 0.9813601770001696 MAIN: 2026-05-18 09:53:05,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:54:04,787 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:54:05,457 - INFO - taking picture MAIN: 2026-05-18 09:54:05,458 - INFO - we take 204 photos in this while loop MAIN: 2026-05-18 09:54:05,458 - INFO - /home/pi/Desktop/images/18052026/09/53/image_18052026_09_54_04_59913.jpg MAIN: 2026-05-18 09:54:05,458 - INFO - duration: 0.9244098109993502 MAIN: 2026-05-18 09:54:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/54' MAIN: 2026-05-18 09:54: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-05-18 09:55: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 09:55:05,497 - INFO - taking picture MAIN: 2026-05-18 09:55:05,497 - INFO - we take 205 photos in this while loop MAIN: 2026-05-18 09:55:05,497 - INFO - /home/pi/Desktop/images/18052026/09/54/image_18052026_09_55_04_60042.jpg MAIN: 2026-05-18 09:55:05,497 - INFO - duration: 0.9210426490026293 MAIN: 2026-05-18 09:55:05,497 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/55' MAIN: 2026-05-18 09:55:05,836 - 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-05-18 09:56: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-05-18 09:56:04,824 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:56:05,315 - INFO - taking picture MAIN: 2026-05-18 09:56:05,315 - INFO - we take 206 photos in this while loop MAIN: 2026-05-18 09:56:05,316 - INFO - /home/pi/Desktop/images/18052026/09/55/image_18052026_09_56_04_59791.jpg MAIN: 2026-05-18 09:56:05,316 - INFO - duration: 0.9482204849991831 MAIN: 2026-05-18 09:56:05,316 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:57:05,054 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:57:05,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-05-18 09:57:06,419 - INFO - taking picture MAIN: 2026-05-18 09:57:06,420 - INFO - we take 207 photos in this while loop MAIN: 2026-05-18 09:57:06,420 - INFO - /home/pi/Desktop/images/18052026/09/56/image_18052026_09_57_05_61117.jpg MAIN: 2026-05-18 09:57:06,420 - INFO - duration: 0.9348117660010757 MAIN: 2026-05-18 09:57:06,420 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 09:58: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-05-18 09:58: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-05-18 09:58:06,295 - INFO - taking picture MAIN: 2026-05-18 09:58:06,296 - INFO - we take 208 photos in this while loop MAIN: 2026-05-18 09:58:06,296 - INFO - /home/pi/Desktop/images/18052026/09/57/image_18052026_09_58_05_59851.jpg MAIN: 2026-05-18 09:58:06,296 - INFO - duration: 0.9595798480004305 MAIN: 2026-05-18 09:58:06,296 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/09/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-05-18 09:59:04,996 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 09:59:05,326 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 09:59:06,058 - INFO - taking picture MAIN: 2026-05-18 09:59:06,059 - INFO - we take 209 photos in this while loop MAIN: 2026-05-18 09:59:06,059 - INFO - /home/pi/Desktop/images/18052026/09/58/image_18052026_09_59_05_59717.jpg MAIN: 2026-05-18 09:59:06,059 - INFO - duration: 1.004869427997619 MAIN: 2026-05-18 09:59:06,059 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:00:04,950 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:00:05,618 - INFO - taking picture MAIN: 2026-05-18 10:00:05,619 - INFO - we take 210 photos in this while loop MAIN: 2026-05-18 10:00:05,619 - INFO - /home/pi/Desktop/images/18052026/09/59/image_18052026_10_00_04_59674.jpg MAIN: 2026-05-18 10:00:05,619 - INFO - duration: 0.8907456120032293 MAIN: 2026-05-18 10:00:05,619 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/00' MAIN: 2026-05-18 10:00:05,951 - 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-05-18 10:01: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-05-18 10:01:05,360 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:01:05,524 - INFO - taking picture MAIN: 2026-05-18 10:01:05,524 - INFO - we take 211 photos in this while loop MAIN: 2026-05-18 10:01:05,524 - INFO - /home/pi/Desktop/images/18052026/10/00/image_18052026_10_01_04_59767.jpg MAIN: 2026-05-18 10:01:05,524 - INFO - duration: 1.0286869689989544 MAIN: 2026-05-18 10:01:05,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:02:05,257 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:02: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 ! MAIN: 2026-05-18 10:02:05,941 - INFO - taking picture MAIN: 2026-05-18 10:02:05,941 - INFO - we take 212 photos in this while loop MAIN: 2026-05-18 10:02:05,941 - INFO - /home/pi/Desktop/images/18052026/10/01/image_18052026_10_02_05_60496.jpg MAIN: 2026-05-18 10:02:05,941 - INFO - duration: 0.9494263790002151 MAIN: 2026-05-18 10:02:05,942 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:03:04,578 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:03: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-05-18 10:03:06,056 - INFO - taking picture MAIN: 2026-05-18 10:03:06,056 - INFO - we take 213 photos in this while loop MAIN: 2026-05-18 10:03:06,056 - INFO - /home/pi/Desktop/images/18052026/10/02/image_18052026_10_03_05_60102.jpg MAIN: 2026-05-18 10:03:06,057 - INFO - duration: 0.9624233860013192 MAIN: 2026-05-18 10:03:06,057 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:04: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-05-18 10:04: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-05-18 10:04:06,158 - INFO - taking picture MAIN: 2026-05-18 10:04:06,158 - INFO - we take 214 photos in this while loop MAIN: 2026-05-18 10:04:06,158 - INFO - /home/pi/Desktop/images/18052026/10/03/image_18052026_10_04_05_60064.jpg MAIN: 2026-05-18 10:04:06,159 - INFO - duration: 1.0002634350021253 MAIN: 2026-05-18 10:04:06,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:05:04,941 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:05:05,174 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:05:05,844 - INFO - taking picture MAIN: 2026-05-18 10:05:05,844 - INFO - we take 215 photos in this while loop MAIN: 2026-05-18 10:05:05,844 - INFO - /home/pi/Desktop/images/18052026/10/04/image_18052026_10_05_05_59728.jpg MAIN: 2026-05-18 10:05:05,845 - INFO - duration: 0.957728829998814 MAIN: 2026-05-18 10:05:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:06: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-05-18 10: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-05-18 10:06:05,859 - INFO - taking picture MAIN: 2026-05-18 10:06:05,859 - INFO - we take 216 photos in this while loop MAIN: 2026-05-18 10:06:05,859 - INFO - /home/pi/Desktop/images/18052026/10/05/image_18052026_10_06_05_60005.jpg MAIN: 2026-05-18 10:06:05,860 - INFO - duration: 0.9672777089981537 MAIN: 2026-05-18 10:06:05,860 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:07: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-05-18 10:07:05,153 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:07:05,837 - INFO - taking picture MAIN: 2026-05-18 10:07:05,837 - INFO - we take 217 photos in this while loop MAIN: 2026-05-18 10:07:05,837 - INFO - /home/pi/Desktop/images/18052026/10/06/image_18052026_10_07_05_59955.jpg MAIN: 2026-05-18 10:07:05,837 - INFO - duration: 0.9895251880006981 MAIN: 2026-05-18 10:07:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:08: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-05-18 10:08:05,449 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:08:06,082 - INFO - taking picture MAIN: 2026-05-18 10:08:06,083 - INFO - we take 218 photos in this while loop MAIN: 2026-05-18 10:08:06,083 - INFO - /home/pi/Desktop/images/18052026/10/07/image_18052026_10_08_05_60254.jpg MAIN: 2026-05-18 10:08:06,083 - INFO - duration: 0.980331049002416 MAIN: 2026-05-18 10:08:06,083 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:09:05,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-05-18 10:09:05,510 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:09:06,138 - INFO - taking picture MAIN: 2026-05-18 10:09:06,138 - INFO - we take 219 photos in this while loop MAIN: 2026-05-18 10:09:06,138 - INFO - /home/pi/Desktop/images/18052026/10/08/image_18052026_10_09_05_60068.jpg MAIN: 2026-05-18 10:09:06,138 - INFO - duration: 0.9676715410023462 MAIN: 2026-05-18 10:09:06,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:10: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-05-18 10:10:06,170 - INFO - taking picture MAIN: 2026-05-18 10:10:06,171 - INFO - we take 220 photos in this while loop MAIN: 2026-05-18 10:10:06,171 - INFO - /home/pi/Desktop/images/18052026/10/09/image_18052026_10_10_05_60079.jpg MAIN: 2026-05-18 10:10:06,171 - INFO - duration: 0.9204000969984918 MAIN: 2026-05-18 10:10:06,171 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/10' MAIN: 2026-05-18 10:10:06,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-05-18 10:11: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-05-18 10:11:05,509 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:11:06,260 - INFO - taking picture MAIN: 2026-05-18 10:11:06,260 - INFO - we take 221 photos in this while loop MAIN: 2026-05-18 10:11:06,260 - INFO - /home/pi/Desktop/images/18052026/10/10/image_18052026_10_11_05_60009.jpg MAIN: 2026-05-18 10:11:06,260 - INFO - duration: 1.0003949609999836 MAIN: 2026-05-18 10:11:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:12:05,114 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:12:05,199 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:12:05,867 - INFO - taking picture MAIN: 2026-05-18 10:12:05,868 - INFO - we take 222 photos in this while loop MAIN: 2026-05-18 10:12:05,868 - INFO - /home/pi/Desktop/images/18052026/10/11/image_18052026_10_12_05_59577.jpg MAIN: 2026-05-18 10:12:05,868 - INFO - duration: 1.030150787999446 MAIN: 2026-05-18 10:12:05,868 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:13: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-05-18 10:13:05,205 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:13:05,949 - INFO - taking picture MAIN: 2026-05-18 10:13:05,950 - INFO - we take 223 photos in this while loop MAIN: 2026-05-18 10:13:05,950 - INFO - /home/pi/Desktop/images/18052026/10/12/image_18052026_10_13_05_60121.jpg MAIN: 2026-05-18 10:13:05,950 - INFO - duration: 0.9912770080009068 MAIN: 2026-05-18 10:13:05,950 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:14: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-05-18 10:14: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-05-18 10:14:05,873 - INFO - taking picture MAIN: 2026-05-18 10:14:05,873 - INFO - we take 224 photos in this while loop MAIN: 2026-05-18 10:14:05,873 - INFO - /home/pi/Desktop/images/18052026/10/13/image_18052026_10_14_05_59962.jpg MAIN: 2026-05-18 10:14:05,874 - INFO - duration: 0.9527029370001401 MAIN: 2026-05-18 10:14:05,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:15: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-05-18 10:15:05,873 - INFO - taking picture MAIN: 2026-05-18 10:15:05,873 - INFO - we take 225 photos in this while loop MAIN: 2026-05-18 10:15:05,874 - INFO - /home/pi/Desktop/images/18052026/10/14/image_18052026_10_15_05_60011.jpg MAIN: 2026-05-18 10:15:05,874 - INFO - duration: 0.9413322469990817 MAIN: 2026-05-18 10:15:05,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/15' MAIN: 2026-05-18 10:15:05,941 - 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-05-18 10:16: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-05-18 10:16:05,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-05-18 10:16:06,010 - INFO - taking picture MAIN: 2026-05-18 10:16:06,010 - INFO - we take 226 photos in this while loop MAIN: 2026-05-18 10:16:06,010 - INFO - /home/pi/Desktop/images/18052026/10/15/image_18052026_10_16_05_60128.jpg MAIN: 2026-05-18 10:16:06,011 - INFO - duration: 0.9500382559999707 MAIN: 2026-05-18 10:16:06,011 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:17:05,208 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:17: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-05-18 10:17:05,895 - INFO - taking picture MAIN: 2026-05-18 10:17:05,896 - INFO - we take 227 photos in this while loop MAIN: 2026-05-18 10:17:05,896 - INFO - /home/pi/Desktop/images/18052026/10/16/image_18052026_10_17_05_59893.jpg MAIN: 2026-05-18 10:17:05,896 - INFO - duration: 0.9414992120000534 MAIN: 2026-05-18 10:17:05,896 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:18:04,864 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:18: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-05-18 10:18:06,076 - INFO - taking picture MAIN: 2026-05-18 10:18:06,076 - INFO - we take 228 photos in this while loop MAIN: 2026-05-18 10:18:06,076 - INFO - /home/pi/Desktop/images/18052026/10/17/image_18052026_10_18_05_60236.jpg MAIN: 2026-05-18 10:18:06,076 - INFO - duration: 0.8854802169989853 MAIN: 2026-05-18 10:18:06,076 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:19: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-05-18 10:19: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-05-18 10:19:06,246 - INFO - taking picture MAIN: 2026-05-18 10:19:06,247 - INFO - we take 229 photos in this while loop MAIN: 2026-05-18 10:19:06,247 - INFO - /home/pi/Desktop/images/18052026/10/18/image_18052026_10_19_05_60108.jpg MAIN: 2026-05-18 10:19:06,247 - INFO - duration: 0.9475179389992263 MAIN: 2026-05-18 10:19:06,247 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:20: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-05-18 10:20: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-05-18 10:20:06,011 - INFO - taking picture MAIN: 2026-05-18 10:20:06,011 - INFO - we take 230 photos in this while loop MAIN: 2026-05-18 10:20:06,011 - INFO - /home/pi/Desktop/images/18052026/10/19/image_18052026_10_20_05_59712.jpg MAIN: 2026-05-18 10:20:06,011 - INFO - duration: 0.999721005999163 MAIN: 2026-05-18 10:20:06,011 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:21:05,084 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:21:05,336 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:21:05,772 - INFO - taking picture MAIN: 2026-05-18 10:21:05,772 - INFO - we take 231 photos in this while loop MAIN: 2026-05-18 10:21:05,772 - INFO - /home/pi/Desktop/images/18052026/10/20/image_18052026_10_21_05_59814.jpg MAIN: 2026-05-18 10:21:05,772 - INFO - duration: 0.9463249550026376 MAIN: 2026-05-18 10:21:05,772 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:22:05,454 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:22:05,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-05-18 10:22:06,165 - INFO - taking picture MAIN: 2026-05-18 10:22:06,165 - INFO - we take 232 photos in this while loop MAIN: 2026-05-18 10:22:06,165 - INFO - /home/pi/Desktop/images/18052026/10/21/image_18052026_10_22_05_60348.jpg MAIN: 2026-05-18 10:22:06,166 - INFO - duration: 0.991429508998408 MAIN: 2026-05-18 10:22:06,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:23:04,713 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:23: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-05-18 10:23:06,284 - INFO - taking picture MAIN: 2026-05-18 10:23:06,284 - INFO - we take 233 photos in this while loop MAIN: 2026-05-18 10:23:06,284 - INFO - /home/pi/Desktop/images/18052026/10/22/image_18052026_10_23_05_60179.jpg MAIN: 2026-05-18 10:23:06,284 - INFO - duration: 0.9303441400006704 MAIN: 2026-05-18 10:23:06,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:24: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-05-18 10:24: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-05-18 10:24:05,427 - INFO - taking picture MAIN: 2026-05-18 10:24:05,428 - INFO - we take 234 photos in this while loop MAIN: 2026-05-18 10:24:05,428 - INFO - /home/pi/Desktop/images/18052026/10/23/image_18052026_10_24_04_59028.jpg MAIN: 2026-05-18 10:24:05,428 - INFO - duration: 1.0459608579985797 MAIN: 2026-05-18 10:24:05,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:25:04,850 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:25: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-05-18 10:25:05,605 - INFO - taking picture MAIN: 2026-05-18 10:25:05,605 - INFO - we take 235 photos in this while loop MAIN: 2026-05-18 10:25:05,605 - INFO - /home/pi/Desktop/images/18052026/10/24/image_18052026_10_25_04_60155.jpg MAIN: 2026-05-18 10:25:05,606 - INFO - duration: 1.0678931649999868 MAIN: 2026-05-18 10:25:05,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:26:05,220 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:26: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-05-18 10:26:05,936 - INFO - taking picture MAIN: 2026-05-18 10:26:05,936 - INFO - we take 236 photos in this while loop MAIN: 2026-05-18 10:26:05,936 - INFO - /home/pi/Desktop/images/18052026/10/25/image_18052026_10_26_05_60438.jpg MAIN: 2026-05-18 10:26:05,936 - INFO - duration: 0.9605947640011436 MAIN: 2026-05-18 10:26:05,937 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:27: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-05-18 10:27: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-05-18 10:27:06,014 - INFO - taking picture MAIN: 2026-05-18 10:27:06,014 - INFO - we take 237 photos in this while loop MAIN: 2026-05-18 10:27:06,014 - INFO - /home/pi/Desktop/images/18052026/10/26/image_18052026_10_27_05_60058.jpg MAIN: 2026-05-18 10:27:06,014 - INFO - duration: 0.9793733109981986 MAIN: 2026-05-18 10:27:06,014 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:28:05,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-05-18 10:28: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-05-18 10:28:06,138 - INFO - taking picture MAIN: 2026-05-18 10:28:06,138 - INFO - we take 238 photos in this while loop MAIN: 2026-05-18 10:28:06,138 - INFO - /home/pi/Desktop/images/18052026/10/27/image_18052026_10_28_05_60125.jpg MAIN: 2026-05-18 10:28:06,138 - INFO - duration: 0.9774858980017598 MAIN: 2026-05-18 10:28:06,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:29:04,664 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:29:05,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-05-18 10:29:06,337 - INFO - taking picture MAIN: 2026-05-18 10:29:06,337 - INFO - we take 239 photos in this while loop MAIN: 2026-05-18 10:29:06,338 - INFO - /home/pi/Desktop/images/18052026/10/28/image_18052026_10_29_05_60230.jpg MAIN: 2026-05-18 10:29:06,338 - INFO - duration: 0.9463636750006117 MAIN: 2026-05-18 10:29:06,338 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:30:04,594 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:30:05,267 - INFO - taking picture MAIN: 2026-05-18 10:30:05,268 - INFO - we take 240 photos in this while loop MAIN: 2026-05-18 10:30:05,268 - INFO - /home/pi/Desktop/images/18052026/10/29/image_18052026_10_30_04_58985.jpg MAIN: 2026-05-18 10:30:05,268 - INFO - duration: 0.8909867170004873 MAIN: 2026-05-18 10:30:05,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/30' MAIN: 2026-05-18 10:30:05,449 - 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-05-18 10:31: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-05-18 10:31:05,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-05-18 10:31:06,232 - INFO - taking picture MAIN: 2026-05-18 10:31:06,232 - INFO - we take 241 photos in this while loop MAIN: 2026-05-18 10:31:06,232 - INFO - /home/pi/Desktop/images/18052026/10/30/image_18052026_10_31_05_60965.jpg MAIN: 2026-05-18 10:31:06,232 - INFO - duration: 0.8900030559998413 MAIN: 2026-05-18 10:31:06,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:32: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 ! MAIN: 2026-05-18 10:32: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-05-18 10:32:06,245 - INFO - taking picture MAIN: 2026-05-18 10:32:06,245 - INFO - we take 242 photos in this while loop MAIN: 2026-05-18 10:32:06,245 - INFO - /home/pi/Desktop/images/18052026/10/31/image_18052026_10_32_05_59933.jpg MAIN: 2026-05-18 10:32:06,245 - INFO - duration: 0.9699415890027012 MAIN: 2026-05-18 10:32:06,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:33:05,288 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:33:05,380 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:33:05,972 - INFO - taking picture MAIN: 2026-05-18 10:33:05,972 - INFO - we take 243 photos in this while loop MAIN: 2026-05-18 10:33:05,973 - INFO - /home/pi/Desktop/images/18052026/10/32/image_18052026_10_33_05_59739.jpg MAIN: 2026-05-18 10:33:05,973 - INFO - duration: 0.957668052000372 MAIN: 2026-05-18 10:33:05,973 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:34:05,316 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:34:05,721 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:34:06,007 - INFO - taking picture MAIN: 2026-05-18 10:34:06,007 - INFO - we take 244 photos in this while loop MAIN: 2026-05-18 10:34:06,008 - INFO - /home/pi/Desktop/images/18052026/10/33/image_18052026_10_34_05_60017.jpg MAIN: 2026-05-18 10:34:06,008 - INFO - duration: 0.9747056039996096 MAIN: 2026-05-18 10:34:06,008 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:35: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-05-18 10:35:05,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-05-18 10:35:06,146 - INFO - taking picture MAIN: 2026-05-18 10:35:06,146 - INFO - we take 245 photos in this while loop MAIN: 2026-05-18 10:35:06,146 - INFO - /home/pi/Desktop/images/18052026/10/34/image_18052026_10_35_05_60164.jpg MAIN: 2026-05-18 10:35:06,147 - INFO - duration: 0.9490426580014173 MAIN: 2026-05-18 10:35:06,147 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:36:04,855 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:36: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-05-18 10:36:06,102 - INFO - taking picture MAIN: 2026-05-18 10:36:06,102 - INFO - we take 246 photos in this while loop MAIN: 2026-05-18 10:36:06,102 - INFO - /home/pi/Desktop/images/18052026/10/35/image_18052026_10_36_05_60015.jpg MAIN: 2026-05-18 10:36:06,103 - INFO - duration: 0.8896880610009248 MAIN: 2026-05-18 10:36:06,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:37:04,705 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:37:05,066 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:37:05,740 - INFO - taking picture MAIN: 2026-05-18 10:37:05,740 - INFO - we take 247 photos in this while loop MAIN: 2026-05-18 10:37:05,740 - INFO - /home/pi/Desktop/images/18052026/10/36/image_18052026_10_37_05_59631.jpg MAIN: 2026-05-18 10:37:05,741 - INFO - duration: 0.8961938770007691 MAIN: 2026-05-18 10:37:05,741 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:38: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-05-18 10:38: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-05-18 10:38:05,874 - INFO - taking picture MAIN: 2026-05-18 10:38:05,874 - INFO - we take 248 photos in this while loop MAIN: 2026-05-18 10:38:05,874 - INFO - /home/pi/Desktop/images/18052026/10/37/image_18052026_10_38_05_60068.jpg MAIN: 2026-05-18 10:38:05,874 - INFO - duration: 0.9608678919976228 MAIN: 2026-05-18 10:38:05,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:39: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-05-18 10:39:05,391 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:39:05,726 - INFO - taking picture MAIN: 2026-05-18 10:39:05,727 - INFO - we take 249 photos in this while loop MAIN: 2026-05-18 10:39:05,727 - INFO - /home/pi/Desktop/images/18052026/10/38/image_18052026_10_39_05_59857.jpg MAIN: 2026-05-18 10:39:05,727 - INFO - duration: 0.9557762789991102 MAIN: 2026-05-18 10:39:05,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:40: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-05-18 10:40:05,951 - INFO - taking picture MAIN: 2026-05-18 10:40:05,951 - INFO - we take 250 photos in this while loop MAIN: 2026-05-18 10:40:05,951 - INFO - /home/pi/Desktop/images/18052026/10/39/image_18052026_10_40_05_60239.jpg MAIN: 2026-05-18 10:40:05,952 - INFO - duration: 0.9407714599983592 MAIN: 2026-05-18 10:40:05,952 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/40' MAIN: 2026-05-18 10:40:06,064 - 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-05-18 10:41:04,609 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:41: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-05-18 10:41:05,737 - INFO - taking picture MAIN: 2026-05-18 10:41:05,737 - INFO - we take 251 photos in this while loop MAIN: 2026-05-18 10:41:05,738 - INFO - /home/pi/Desktop/images/18052026/10/40/image_18052026_10_41_05_59829.jpg MAIN: 2026-05-18 10:41:05,738 - INFO - duration: 0.8972653210003045 MAIN: 2026-05-18 10:41:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:42: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-05-18 10:42: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-05-18 10:42:05,727 - INFO - taking picture MAIN: 2026-05-18 10:42:05,728 - INFO - we take 252 photos in this while loop MAIN: 2026-05-18 10:42:05,728 - INFO - /home/pi/Desktop/images/18052026/10/41/image_18052026_10_42_05_59930.jpg MAIN: 2026-05-18 10:42:05,728 - INFO - duration: 0.9568214110004192 MAIN: 2026-05-18 10:42:05,728 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:43:04,885 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:43: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-05-18 10:43:05,928 - INFO - taking picture MAIN: 2026-05-18 10:43:05,928 - INFO - we take 253 photos in this while loop MAIN: 2026-05-18 10:43:05,928 - INFO - /home/pi/Desktop/images/18052026/10/42/image_18052026_10_43_05_60160.jpg MAIN: 2026-05-18 10:43:05,928 - INFO - duration: 0.9970261380003649 MAIN: 2026-05-18 10:43:05,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:44: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-05-18 10:44:05,525 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:44:06,027 - INFO - taking picture MAIN: 2026-05-18 10:44:06,027 - INFO - we take 254 photos in this while loop MAIN: 2026-05-18 10:44:06,027 - INFO - /home/pi/Desktop/images/18052026/10/43/image_18052026_10_44_05_60129.jpg MAIN: 2026-05-18 10:44:06,028 - INFO - duration: 0.9673948859999655 MAIN: 2026-05-18 10:44:06,028 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10: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-05-18 10:45:05,472 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:45:06,158 - INFO - taking picture MAIN: 2026-05-18 10:45:06,158 - INFO - we take 255 photos in this while loop MAIN: 2026-05-18 10:45:06,158 - INFO - /home/pi/Desktop/images/18052026/10/44/image_18052026_10_45_05_60146.jpg MAIN: 2026-05-18 10:45:06,158 - INFO - duration: 0.9515138739989197 MAIN: 2026-05-18 10:45:06,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:46: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-05-18 10:46:05,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-05-18 10:46:06,046 - INFO - taking picture MAIN: 2026-05-18 10:46:06,046 - INFO - we take 256 photos in this while loop MAIN: 2026-05-18 10:46:06,046 - INFO - /home/pi/Desktop/images/18052026/10/45/image_18052026_10_46_05_59890.jpg MAIN: 2026-05-18 10:46:06,047 - INFO - duration: 0.9490436209998734 MAIN: 2026-05-18 10:46:06,047 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:47: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-05-18 10:47:05,707 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:47:05,991 - INFO - taking picture MAIN: 2026-05-18 10:47:05,991 - INFO - we take 257 photos in this while loop MAIN: 2026-05-18 10:47:05,991 - INFO - /home/pi/Desktop/images/18052026/10/46/image_18052026_10_47_05_59908.jpg MAIN: 2026-05-18 10:47:05,991 - INFO - duration: 0.9848057729977882 MAIN: 2026-05-18 10:47:05,992 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:48: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-05-18 10:48:05,614 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:48:06,323 - INFO - taking picture MAIN: 2026-05-18 10:48:06,324 - INFO - we take 258 photos in this while loop MAIN: 2026-05-18 10:48:06,324 - INFO - /home/pi/Desktop/images/18052026/10/47/image_18052026_10_48_05_60391.jpg MAIN: 2026-05-18 10:48:06,324 - INFO - duration: 0.925875578999694 MAIN: 2026-05-18 10:48:06,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:49: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-05-18 10:49: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-05-18 10:49:06,198 - INFO - taking picture MAIN: 2026-05-18 10:49:06,198 - INFO - we take 259 photos in this while loop MAIN: 2026-05-18 10:49:06,199 - INFO - /home/pi/Desktop/images/18052026/10/48/image_18052026_10_49_05_59816.jpg MAIN: 2026-05-18 10:49:06,199 - INFO - duration: 0.9844221169987577 MAIN: 2026-05-18 10:49:06,199 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:50: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-05-18 10:50: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 ! MAIN: 2026-05-18 10:50:05,694 - INFO - taking picture MAIN: 2026-05-18 10:50:05,695 - INFO - we take 260 photos in this while loop MAIN: 2026-05-18 10:50:05,695 - INFO - /home/pi/Desktop/images/18052026/10/49/image_18052026_10_50_04_59432.jpg MAIN: 2026-05-18 10:50:05,695 - INFO - duration: 1.0483641499995429 MAIN: 2026-05-18 10:50:05,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:51:04,959 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:51:05,284 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:51:05,645 - INFO - taking picture MAIN: 2026-05-18 10:51:05,645 - INFO - we take 261 photos in this while loop MAIN: 2026-05-18 10:51:05,646 - INFO - /home/pi/Desktop/images/18052026/10/50/image_18052026_10_51_04_60029.jpg MAIN: 2026-05-18 10:51:05,646 - INFO - duration: 0.9696099980028521 MAIN: 2026-05-18 10:51:05,646 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:52:05,040 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:52:05,480 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:52:05,745 - INFO - taking picture MAIN: 2026-05-18 10:52:05,746 - INFO - we take 262 photos in this while loop MAIN: 2026-05-18 10:52:05,746 - INFO - /home/pi/Desktop/images/18052026/10/51/image_18052026_10_52_05_60082.jpg MAIN: 2026-05-18 10:52:05,746 - INFO - duration: 0.9877185389996157 MAIN: 2026-05-18 10:52:05,746 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:53:05,086 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:53: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-05-18 10:53:05,813 - INFO - taking picture MAIN: 2026-05-18 10:53:05,813 - INFO - we take 263 photos in this while loop MAIN: 2026-05-18 10:53:05,813 - INFO - /home/pi/Desktop/images/18052026/10/52/image_18052026_10_53_05_60021.jpg MAIN: 2026-05-18 10:53:05,814 - INFO - duration: 1.0340897080022842 MAIN: 2026-05-18 10:53:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:54:04,887 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:54:05,081 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:54:05,652 - INFO - taking picture MAIN: 2026-05-18 10:54:05,652 - INFO - we take 264 photos in this while loop MAIN: 2026-05-18 10:54:05,653 - INFO - /home/pi/Desktop/images/18052026/10/53/image_18052026_10_54_04_59820.jpg MAIN: 2026-05-18 10:54:05,653 - INFO - duration: 1.0527255369997874 MAIN: 2026-05-18 10:54:05,653 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:55:04,758 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:55: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-05-18 10:55:05,452 - INFO - taking picture MAIN: 2026-05-18 10:55:05,452 - INFO - we take 265 photos in this while loop MAIN: 2026-05-18 10:55:05,452 - INFO - /home/pi/Desktop/images/18052026/10/54/image_18052026_10_55_04_59901.jpg MAIN: 2026-05-18 10:55:05,452 - INFO - duration: 0.9504996120012947 MAIN: 2026-05-18 10:55:05,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 10:56:04,661 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:56:05,336 - INFO - taking picture MAIN: 2026-05-18 10:56:05,337 - INFO - we take 266 photos in this while loop MAIN: 2026-05-18 10:56:05,337 - INFO - /home/pi/Desktop/images/18052026/10/55/image_18052026_10_56_04_59886.jpg MAIN: 2026-05-18 10:56:05,337 - INFO - duration: 0.9491014369996265 MAIN: 2026-05-18 10:56:05,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/56' MAIN: 2026-05-18 10:56:05,449 - 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-05-18 10:57:05,016 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:57: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-05-18 10:57:06,297 - INFO - taking picture MAIN: 2026-05-18 10:57:06,297 - INFO - we take 267 photos in this while loop MAIN: 2026-05-18 10:57:06,298 - INFO - /home/pi/Desktop/images/18052026/10/56/image_18052026_10_57_05_60973.jpg MAIN: 2026-05-18 10:57:06,298 - INFO - duration: 0.9364153280002938 MAIN: 2026-05-18 10:57:06,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:58: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-05-18 10:58: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-05-18 10:58:06,023 - INFO - taking picture MAIN: 2026-05-18 10:58:06,023 - INFO - we take 268 photos in this while loop MAIN: 2026-05-18 10:58:06,023 - INFO - /home/pi/Desktop/images/18052026/10/57/image_18052026_10_58_05_59723.jpg MAIN: 2026-05-18 10:58:06,024 - INFO - duration: 0.9388347189997148 MAIN: 2026-05-18 10:58:06,024 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 10:59:05,213 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 10:59:05,257 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 10:59:06,007 - INFO - taking picture MAIN: 2026-05-18 10:59:06,007 - INFO - we take 269 photos in this while loop MAIN: 2026-05-18 10:59:06,007 - INFO - /home/pi/Desktop/images/18052026/10/58/image_18052026_10_59_05_59890.jpg MAIN: 2026-05-18 10:59:06,007 - INFO - duration: 1.0316639240008953 MAIN: 2026-05-18 10:59:06,007 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/10/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-05-18 11:00:05,142 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:00: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-05-18 11:00:05,827 - INFO - taking picture MAIN: 2026-05-18 11:00:05,828 - INFO - we take 270 photos in this while loop MAIN: 2026-05-18 11:00:05,828 - INFO - /home/pi/Desktop/images/18052026/10/59/image_18052026_11_00_05_59905.jpg MAIN: 2026-05-18 11:00:05,828 - INFO - duration: 0.9472959380000248 MAIN: 2026-05-18 11:00:05,828 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:01:05,184 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:01:05,646 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:01:06,421 - INFO - taking picture MAIN: 2026-05-18 11:01:06,421 - INFO - we take 271 photos in this while loop MAIN: 2026-05-18 11:01:06,421 - INFO - /home/pi/Desktop/images/18052026/11/00/image_18052026_11_01_05_60546.jpg MAIN: 2026-05-18 11:01:06,421 - INFO - duration: 0.9945831269978953 MAIN: 2026-05-18 11:01:06,422 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:02: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 ! MAIN: 2026-05-18 11:02:05,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-05-18 11:02:06,482 - INFO - taking picture MAIN: 2026-05-18 11:02:06,482 - INFO - we take 272 photos in this while loop MAIN: 2026-05-18 11:02:06,482 - INFO - /home/pi/Desktop/images/18052026/11/01/image_18052026_11_02_05_60113.jpg MAIN: 2026-05-18 11:02:06,482 - INFO - duration: 0.9419954730001336 MAIN: 2026-05-18 11:02:06,483 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:03: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-05-18 11:03: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-05-18 11:03:06,216 - INFO - taking picture MAIN: 2026-05-18 11:03:06,217 - INFO - we take 273 photos in this while loop MAIN: 2026-05-18 11:03:06,217 - INFO - /home/pi/Desktop/images/18052026/11/02/image_18052026_11_03_05_59656.jpg MAIN: 2026-05-18 11:03:06,217 - INFO - duration: 1.0197640849983145 MAIN: 2026-05-18 11:03:06,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:04:05,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-05-18 11:04:05,767 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:04:06,202 - INFO - taking picture MAIN: 2026-05-18 11:04:06,202 - INFO - we take 274 photos in this while loop MAIN: 2026-05-18 11:04:06,202 - INFO - /home/pi/Desktop/images/18052026/11/03/image_18052026_11_04_05_60058.jpg MAIN: 2026-05-18 11:04:06,202 - INFO - duration: 0.9462386209997931 MAIN: 2026-05-18 11:04:06,202 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:05: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-05-18 11:05: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-05-18 11:05:06,325 - INFO - taking picture MAIN: 2026-05-18 11:05:06,325 - INFO - we take 275 photos in this while loop MAIN: 2026-05-18 11:05:06,326 - INFO - /home/pi/Desktop/images/18052026/11/04/image_18052026_11_05_05_60133.jpg MAIN: 2026-05-18 11:05:06,326 - INFO - duration: 0.9364312330035318 MAIN: 2026-05-18 11:05:06,326 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:06: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-05-18 11:06:05,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-05-18 11:06:06,235 - INFO - taking picture MAIN: 2026-05-18 11:06:06,235 - INFO - we take 276 photos in this while loop MAIN: 2026-05-18 11:06:06,235 - INFO - /home/pi/Desktop/images/18052026/11/05/image_18052026_11_06_05_59881.jpg MAIN: 2026-05-18 11:06:06,235 - INFO - duration: 0.9640710450003098 MAIN: 2026-05-18 11:06:06,235 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11: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-05-18 11:07: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-05-18 11:07:06,317 - INFO - taking picture MAIN: 2026-05-18 11:07:06,317 - INFO - we take 277 photos in this while loop MAIN: 2026-05-18 11:07:06,318 - INFO - /home/pi/Desktop/images/18052026/11/06/image_18052026_11_07_05_60051.jpg MAIN: 2026-05-18 11:07:06,318 - INFO - duration: 0.9957453480019467 MAIN: 2026-05-18 11:07:06,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:08:05,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-05-18 11:08:05,757 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:08:06,502 - INFO - taking picture MAIN: 2026-05-18 11:08:06,503 - INFO - we take 278 photos in this while loop MAIN: 2026-05-18 11:08:06,503 - INFO - /home/pi/Desktop/images/18052026/11/07/image_18052026_11_08_05_60139.jpg MAIN: 2026-05-18 11:08:06,503 - INFO - duration: 1.0416236609999032 MAIN: 2026-05-18 11:08:06,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:09:04,685 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:09:05,069 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:09:05,743 - INFO - taking picture MAIN: 2026-05-18 11:09:05,743 - INFO - we take 279 photos in this while loop MAIN: 2026-05-18 11:09:05,744 - INFO - /home/pi/Desktop/images/18052026/11/08/image_18052026_11_09_05_59389.jpg MAIN: 2026-05-18 11:09:05,744 - INFO - duration: 0.8925786170002539 MAIN: 2026-05-18 11:09:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:10: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-05-18 11:10:05,599 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:10:05,996 - INFO - taking picture MAIN: 2026-05-18 11:10:05,996 - INFO - we take 280 photos in this while loop MAIN: 2026-05-18 11:10:05,996 - INFO - /home/pi/Desktop/images/18052026/11/09/image_18052026_11_10_05_60160.jpg MAIN: 2026-05-18 11:10:05,996 - INFO - duration: 0.9848243649976212 MAIN: 2026-05-18 11:10:05,997 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:11: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-05-18 11:11:04,836 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:11:05,474 - INFO - taking picture MAIN: 2026-05-18 11:11:05,474 - INFO - we take 281 photos in this while loop MAIN: 2026-05-18 11:11:05,474 - INFO - /home/pi/Desktop/images/18052026/11/10/image_18052026_11_11_04_59526.jpg MAIN: 2026-05-18 11:11:05,474 - INFO - duration: 0.9361929750011768 MAIN: 2026-05-18 11:11:05,475 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:12: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-05-18 11:12: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-05-18 11:12:05,291 - INFO - taking picture MAIN: 2026-05-18 11:12:05,291 - INFO - we take 282 photos in this while loop MAIN: 2026-05-18 11:12:05,291 - INFO - /home/pi/Desktop/images/18052026/11/11/image_18052026_11_12_04_59803.jpg MAIN: 2026-05-18 11:12:05,292 - INFO - duration: 0.9501861019998614 MAIN: 2026-05-18 11:12:05,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:13:05,422 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:13:05,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-05-18 11:13:06,340 - INFO - taking picture MAIN: 2026-05-18 11:13:06,340 - INFO - we take 283 photos in this while loop MAIN: 2026-05-18 11:13:06,341 - INFO - /home/pi/Desktop/images/18052026/11/12/image_18052026_11_13_05_61046.jpg MAIN: 2026-05-18 11:13:06,341 - INFO - duration: 0.952471319000324 MAIN: 2026-05-18 11:13:06,341 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:14: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-05-18 11:14: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-05-18 11:14:06,166 - INFO - taking picture MAIN: 2026-05-18 11:14:06,166 - INFO - we take 284 photos in this while loop MAIN: 2026-05-18 11:14:06,166 - INFO - /home/pi/Desktop/images/18052026/11/13/image_18052026_11_14_05_59810.jpg MAIN: 2026-05-18 11:14:06,167 - INFO - duration: 0.9680021130006935 MAIN: 2026-05-18 11:14:06,167 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:15:05,349 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:15:05,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-05-18 11:15:06,022 - INFO - taking picture MAIN: 2026-05-18 11:15:06,023 - INFO - we take 285 photos in this while loop MAIN: 2026-05-18 11:15:06,023 - INFO - /home/pi/Desktop/images/18052026/11/14/image_18052026_11_15_05_59887.jpg MAIN: 2026-05-18 11:15:06,023 - INFO - duration: 0.9370346210016578 MAIN: 2026-05-18 11:15:06,024 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:16:04,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-05-18 11:16: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-05-18 11:16:06,077 - INFO - taking picture MAIN: 2026-05-18 11:16:06,077 - INFO - we take 286 photos in this while loop MAIN: 2026-05-18 11:16:06,078 - INFO - /home/pi/Desktop/images/18052026/11/15/image_18052026_11_16_05_60089.jpg MAIN: 2026-05-18 11:16:06,078 - INFO - duration: 0.9018945450006868 MAIN: 2026-05-18 11:16:06,078 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:17: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-05-18 11:17: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-05-18 11:17:05,904 - INFO - taking picture MAIN: 2026-05-18 11:17:05,904 - INFO - we take 287 photos in this while loop MAIN: 2026-05-18 11:17:05,904 - INFO - /home/pi/Desktop/images/18052026/11/16/image_18052026_11_17_05_59740.jpg MAIN: 2026-05-18 11:17:05,904 - INFO - duration: 0.9876794739975594 MAIN: 2026-05-18 11:17:05,905 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:18:05,331 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:18:05,690 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:18:06,360 - INFO - taking picture MAIN: 2026-05-18 11:18:06,360 - INFO - we take 288 photos in this while loop MAIN: 2026-05-18 11:18:06,360 - INFO - /home/pi/Desktop/images/18052026/11/17/image_18052026_11_18_05_60557.jpg MAIN: 2026-05-18 11:18:06,360 - INFO - duration: 0.8861618679984531 MAIN: 2026-05-18 11:18:06,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:19: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-05-18 11:19: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 ! MAIN: 2026-05-18 11:19:06,102 - INFO - taking picture MAIN: 2026-05-18 11:19:06,102 - INFO - we take 289 photos in this while loop MAIN: 2026-05-18 11:19:06,102 - INFO - /home/pi/Desktop/images/18052026/11/18/image_18052026_11_19_05_59642.jpg MAIN: 2026-05-18 11:19:06,102 - INFO - duration: 0.9859563290010556 MAIN: 2026-05-18 11:19:06,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:20:05,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-05-18 11:20: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 ! MAIN: 2026-05-18 11:20:06,189 - INFO - taking picture MAIN: 2026-05-18 11:20:06,190 - INFO - we take 290 photos in this while loop MAIN: 2026-05-18 11:20:06,190 - INFO - /home/pi/Desktop/images/18052026/11/19/image_18052026_11_20_05_60112.jpg MAIN: 2026-05-18 11:20:06,190 - INFO - duration: 0.9604906640015543 MAIN: 2026-05-18 11:20:06,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:21:04,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-05-18 11:21: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-05-18 11:21:06,067 - INFO - taking picture MAIN: 2026-05-18 11:21:06,067 - INFO - we take 291 photos in this while loop MAIN: 2026-05-18 11:21:06,067 - INFO - /home/pi/Desktop/images/18052026/11/20/image_18052026_11_21_05_59947.jpg MAIN: 2026-05-18 11:21:06,067 - INFO - duration: 0.8906348770033219 MAIN: 2026-05-18 11:21:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:22:05,200 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:22: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-05-18 11:22:06,038 - INFO - taking picture MAIN: 2026-05-18 11:22:06,038 - INFO - we take 292 photos in this while loop MAIN: 2026-05-18 11:22:06,038 - INFO - /home/pi/Desktop/images/18052026/11/21/image_18052026_11_22_05_59920.jpg MAIN: 2026-05-18 11:22:06,038 - INFO - duration: 0.9412395990002551 MAIN: 2026-05-18 11:22:06,039 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:23: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-05-18 11:23: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-05-18 11:23:06,115 - INFO - taking picture MAIN: 2026-05-18 11:23:06,115 - INFO - we take 293 photos in this while loop MAIN: 2026-05-18 11:23:06,116 - INFO - /home/pi/Desktop/images/18052026/11/22/image_18052026_11_23_05_60072.jpg MAIN: 2026-05-18 11:23:06,116 - INFO - duration: 0.9463224889987032 MAIN: 2026-05-18 11:23:06,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:24: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-05-18 11:24: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-05-18 11:24:06,054 - INFO - taking picture MAIN: 2026-05-18 11:24:06,055 - INFO - we take 294 photos in this while loop MAIN: 2026-05-18 11:24:06,055 - INFO - /home/pi/Desktop/images/18052026/11/23/image_18052026_11_24_05_59861.jpg MAIN: 2026-05-18 11:24:06,055 - INFO - duration: 1.0238482679997105 MAIN: 2026-05-18 11:24:06,055 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:25: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-05-18 11:25:05,586 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:25:06,262 - INFO - taking picture MAIN: 2026-05-18 11:25:06,262 - INFO - we take 295 photos in this while loop MAIN: 2026-05-18 11:25:06,262 - INFO - /home/pi/Desktop/images/18052026/11/24/image_18052026_11_25_05_60291.jpg MAIN: 2026-05-18 11:25:06,262 - INFO - duration: 0.9392227149983228 MAIN: 2026-05-18 11:25:06,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:26: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-05-18 11:26: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-05-18 11:26:06,068 - INFO - taking picture MAIN: 2026-05-18 11:26:06,068 - INFO - we take 296 photos in this while loop MAIN: 2026-05-18 11:26:06,068 - INFO - /home/pi/Desktop/images/18052026/11/25/image_18052026_11_26_05_59765.jpg MAIN: 2026-05-18 11:26:06,068 - INFO - duration: 0.9802211739988707 MAIN: 2026-05-18 11:26:06,069 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:27:04,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-05-18 11:27: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-05-18 11:27:05,744 - INFO - taking picture MAIN: 2026-05-18 11:27:05,745 - INFO - we take 297 photos in this while loop MAIN: 2026-05-18 11:27:05,745 - INFO - /home/pi/Desktop/images/18052026/11/26/image_18052026_11_27_05_59675.jpg MAIN: 2026-05-18 11:27:05,745 - INFO - duration: 0.9808783140033484 MAIN: 2026-05-18 11:27:05,745 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:28: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-05-18 11:28: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-05-18 11:28:05,381 - INFO - taking picture MAIN: 2026-05-18 11:28:05,381 - INFO - we take 298 photos in this while loop MAIN: 2026-05-18 11:28:05,381 - INFO - /home/pi/Desktop/images/18052026/11/27/image_18052026_11_28_04_59653.jpg MAIN: 2026-05-18 11:28:05,381 - INFO - duration: 0.9632152869999118 MAIN: 2026-05-18 11:28:05,381 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:29:04,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 ! MAIN: 2026-05-18 11:29: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-05-18 11:29:05,914 - INFO - taking picture MAIN: 2026-05-18 11:29:05,914 - INFO - we take 299 photos in this while loop MAIN: 2026-05-18 11:29:05,914 - INFO - /home/pi/Desktop/images/18052026/11/28/image_18052026_11_29_05_60511.jpg MAIN: 2026-05-18 11:29:05,914 - INFO - duration: 0.9851191019988619 MAIN: 2026-05-18 11:29:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:30: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-05-18 11:30: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-05-18 11:30:06,067 - INFO - taking picture MAIN: 2026-05-18 11:30:06,067 - INFO - we take 300 photos in this while loop MAIN: 2026-05-18 11:30:06,067 - INFO - /home/pi/Desktop/images/18052026/11/29/image_18052026_11_30_05_60203.jpg MAIN: 2026-05-18 11:30:06,067 - INFO - duration: 0.9351992049996625 MAIN: 2026-05-18 11:30:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:31: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-05-18 11:31:05,580 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:31:05,985 - INFO - taking picture MAIN: 2026-05-18 11:31:05,985 - INFO - we take 301 photos in this while loop MAIN: 2026-05-18 11:31:05,985 - INFO - /home/pi/Desktop/images/18052026/11/30/image_18052026_11_31_05_59856.jpg MAIN: 2026-05-18 11:31:05,985 - INFO - duration: 0.9969507870009693 MAIN: 2026-05-18 11:31:05,986 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:32: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-05-18 11:32:05,510 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:32:06,130 - INFO - taking picture MAIN: 2026-05-18 11:32:06,130 - INFO - we take 302 photos in this while loop MAIN: 2026-05-18 11:32:06,130 - INFO - /home/pi/Desktop/images/18052026/11/31/image_18052026_11_32_05_60138.jpg MAIN: 2026-05-18 11:32:06,130 - INFO - duration: 1.0039387669967255 MAIN: 2026-05-18 11:32:06,131 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:33: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-05-18 11:33:05,495 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:33:06,237 - INFO - taking picture MAIN: 2026-05-18 11:33:06,237 - INFO - we take 303 photos in this while loop MAIN: 2026-05-18 11:33:06,237 - INFO - /home/pi/Desktop/images/18052026/11/32/image_18052026_11_33_05_60064.jpg MAIN: 2026-05-18 11:33:06,238 - INFO - duration: 1.0464346520020626 MAIN: 2026-05-18 11:33:06,238 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:34:05,081 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:34:05,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-05-18 11:34:06,572 - INFO - taking picture MAIN: 2026-05-18 11:34:06,572 - INFO - we take 304 photos in this while loop MAIN: 2026-05-18 11:34:06,573 - INFO - /home/pi/Desktop/images/18052026/11/33/image_18052026_11_34_05_60390.jpg MAIN: 2026-05-18 11:34:06,573 - INFO - duration: 0.9911098150005273 MAIN: 2026-05-18 11:34:06,573 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:35: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-05-18 11:35:05,414 - INFO - taking picture MAIN: 2026-05-18 11:35:05,415 - INFO - we take 305 photos in this while loop MAIN: 2026-05-18 11:35:05,415 - INFO - /home/pi/Desktop/images/18052026/11/34/image_18052026_11_35_04_58859.jpg MAIN: 2026-05-18 11:35:05,415 - INFO - duration: 0.9732522340018477 MAIN: 2026-05-18 11:35:05,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/35' MAIN: 2026-05-18 11:35: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-05-18 11:36:04,587 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:36: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-05-18 11:36:05,269 - INFO - taking picture MAIN: 2026-05-18 11:36:05,269 - INFO - we take 306 photos in this while loop MAIN: 2026-05-18 11:36:05,269 - INFO - /home/pi/Desktop/images/18052026/11/35/image_18052026_11_36_04_59905.jpg MAIN: 2026-05-18 11:36:05,269 - INFO - duration: 0.9225010499976634 MAIN: 2026-05-18 11:36:05,270 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:37:05,310 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:37:05,741 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:37:06,487 - INFO - taking picture MAIN: 2026-05-18 11:37:06,488 - INFO - we take 307 photos in this while loop MAIN: 2026-05-18 11:37:06,488 - INFO - /home/pi/Desktop/images/18052026/11/36/image_18052026_11_37_05_61132.jpg MAIN: 2026-05-18 11:37:06,488 - INFO - duration: 1.0082211460030521 MAIN: 2026-05-18 11:37:06,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/37' MAIN: 2026-05-18 11:38: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-05-18 11:38:05,281 - INFO - taking picture MAIN: 2026-05-18 11:38:05,281 - INFO - we take 308 photos in this while loop MAIN: 2026-05-18 11:38:05,281 - INFO - /home/pi/Desktop/images/18052026/11/37/image_18052026_11_38_04_58877.jpg MAIN: 2026-05-18 11:38:05,281 - INFO - duration: 0.9239487739978358 MAIN: 2026-05-18 11:38:05,281 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/38' MAIN: 2026-05-18 11:38:05,625 - 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-05-18 11:39: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-05-18 11:39: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-05-18 11:39:06,256 - INFO - taking picture MAIN: 2026-05-18 11:39:06,256 - INFO - we take 309 photos in this while loop MAIN: 2026-05-18 11:39:06,256 - INFO - /home/pi/Desktop/images/18052026/11/38/image_18052026_11_39_05_60857.jpg MAIN: 2026-05-18 11:39:06,256 - INFO - duration: 1.0410736939993512 MAIN: 2026-05-18 11:39:06,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:40:05,564 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:40:06,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-05-18 11:40:06,355 - INFO - taking picture MAIN: 2026-05-18 11:40:06,355 - INFO - we take 310 photos in this while loop MAIN: 2026-05-18 11:40:06,355 - INFO - /home/pi/Desktop/images/18052026/11/39/image_18052026_11_40_05_60096.jpg MAIN: 2026-05-18 11:40:06,355 - INFO - duration: 1.043815552999149 MAIN: 2026-05-18 11:40:06,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:41:04,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 ! MAIN: 2026-05-18 11:41: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-05-18 11:41:06,310 - INFO - taking picture MAIN: 2026-05-18 11:41:06,310 - INFO - we take 311 photos in this while loop MAIN: 2026-05-18 11:41:06,310 - INFO - /home/pi/Desktop/images/18052026/11/40/image_18052026_11_41_05_60058.jpg MAIN: 2026-05-18 11:41:06,310 - INFO - duration: 0.9400134130009974 MAIN: 2026-05-18 11:41:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:42: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-05-18 11:42:05,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-05-18 11:42:06,346 - INFO - taking picture MAIN: 2026-05-18 11:42:06,346 - INFO - we take 312 photos in this while loop MAIN: 2026-05-18 11:42:06,346 - INFO - /home/pi/Desktop/images/18052026/11/41/image_18052026_11_42_05_60070.jpg MAIN: 2026-05-18 11:42:06,346 - INFO - duration: 0.9057716969982721 MAIN: 2026-05-18 11:42:06,346 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:43:05,180 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:43:05,500 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:43:06,173 - INFO - taking picture MAIN: 2026-05-18 11:43:06,174 - INFO - we take 313 photos in this while loop MAIN: 2026-05-18 11:43:06,174 - INFO - /home/pi/Desktop/images/18052026/11/42/image_18052026_11_43_05_59840.jpg MAIN: 2026-05-18 11:43:06,174 - INFO - duration: 0.8934021470013249 MAIN: 2026-05-18 11:43:06,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:44:05,310 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:44: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 ! MAIN: 2026-05-18 11:44:05,990 - INFO - taking picture MAIN: 2026-05-18 11:44:05,990 - INFO - we take 314 photos in this while loop MAIN: 2026-05-18 11:44:05,990 - INFO - /home/pi/Desktop/images/18052026/11/43/image_18052026_11_44_05_59772.jpg MAIN: 2026-05-18 11:44:05,990 - INFO - duration: 0.9373550159980368 MAIN: 2026-05-18 11:44:05,991 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:45:05,136 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:45: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-05-18 11:45:06,156 - INFO - taking picture MAIN: 2026-05-18 11:45:06,157 - INFO - we take 315 photos in this while loop MAIN: 2026-05-18 11:45:06,157 - INFO - /home/pi/Desktop/images/18052026/11/44/image_18052026_11_45_05_60128.jpg MAIN: 2026-05-18 11:45:06,157 - INFO - duration: 0.9758307429983688 MAIN: 2026-05-18 11:45:06,157 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:46: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-05-18 11:46:05,291 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:46:05,980 - INFO - taking picture MAIN: 2026-05-18 11:46:05,980 - INFO - we take 316 photos in this while loop MAIN: 2026-05-18 11:46:05,980 - INFO - /home/pi/Desktop/images/18052026/11/45/image_18052026_11_46_05_59755.jpg MAIN: 2026-05-18 11:46:05,980 - INFO - duration: 1.0433270210014598 MAIN: 2026-05-18 11:46:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:47: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-05-18 11:47: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-05-18 11:47:05,971 - INFO - taking picture MAIN: 2026-05-18 11:47:05,972 - INFO - we take 317 photos in this while loop MAIN: 2026-05-18 11:47:05,972 - INFO - /home/pi/Desktop/images/18052026/11/46/image_18052026_11_47_05_60097.jpg MAIN: 2026-05-18 11:47:05,972 - INFO - duration: 0.9374462929990841 MAIN: 2026-05-18 11:47:05,972 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:48:05,385 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:48:05,632 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:48:06,066 - INFO - taking picture MAIN: 2026-05-18 11:48:06,066 - INFO - we take 318 photos in this while loop MAIN: 2026-05-18 11:48:06,066 - INFO - /home/pi/Desktop/images/18052026/11/47/image_18052026_11_48_05_60092.jpg MAIN: 2026-05-18 11:48:06,067 - INFO - duration: 0.9391749050009821 MAIN: 2026-05-18 11:48:06,067 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:49:05,466 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:49: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-05-18 11:49:06,143 - INFO - taking picture MAIN: 2026-05-18 11:49:06,143 - INFO - we take 319 photos in this while loop MAIN: 2026-05-18 11:49:06,143 - INFO - /home/pi/Desktop/images/18052026/11/48/image_18052026_11_49_05_60068.jpg MAIN: 2026-05-18 11:49:06,144 - INFO - duration: 0.9476233669993235 MAIN: 2026-05-18 11:49:06,144 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:50: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-05-18 11:50:05,236 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:50:05,335 - INFO - taking picture MAIN: 2026-05-18 11:50:05,335 - INFO - we take 320 photos in this while loop MAIN: 2026-05-18 11:50:05,335 - INFO - /home/pi/Desktop/images/18052026/11/49/image_18052026_11_50_04_59196.jpg MAIN: 2026-05-18 11:50:05,335 - INFO - duration: 0.9432171560001734 MAIN: 2026-05-18 11:50:05,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:51:04,774 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:51:04,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 ! MAIN: 2026-05-18 11:51:05,457 - INFO - taking picture MAIN: 2026-05-18 11:51:05,457 - INFO - we take 321 photos in this while loop MAIN: 2026-05-18 11:51:05,457 - INFO - /home/pi/Desktop/images/18052026/11/50/image_18052026_11_51_04_60101.jpg MAIN: 2026-05-18 11:51:05,457 - INFO - duration: 0.9642118700030551 MAIN: 2026-05-18 11:51:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:52: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-05-18 11:52:05,094 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:52:05,540 - INFO - taking picture MAIN: 2026-05-18 11:52:05,540 - INFO - we take 322 photos in this while loop MAIN: 2026-05-18 11:52:05,540 - INFO - /home/pi/Desktop/images/18052026/11/51/image_18052026_11_52_04_60096.jpg MAIN: 2026-05-18 11:52:05,540 - INFO - duration: 0.9506905560010637 MAIN: 2026-05-18 11:52:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:53:05,067 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:53: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-05-18 11:53:05,746 - INFO - taking picture MAIN: 2026-05-18 11:53:05,746 - INFO - we take 323 photos in this while loop MAIN: 2026-05-18 11:53:05,746 - INFO - /home/pi/Desktop/images/18052026/11/52/image_18052026_11_53_05_60223.jpg MAIN: 2026-05-18 11:53:05,746 - INFO - duration: 0.9330024350019812 MAIN: 2026-05-18 11:53:05,747 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:54: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-05-18 11:54: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-05-18 11:54:05,647 - INFO - taking picture MAIN: 2026-05-18 11:54:05,647 - INFO - we take 324 photos in this while loop MAIN: 2026-05-18 11:54:05,647 - INFO - /home/pi/Desktop/images/18052026/11/53/image_18052026_11_54_04_59888.jpg MAIN: 2026-05-18 11:54:05,647 - INFO - duration: 0.9459883850031474 MAIN: 2026-05-18 11:54:05,648 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:55:05,048 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:55:05,540 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:55:05,782 - INFO - taking picture MAIN: 2026-05-18 11:55:05,782 - INFO - we take 325 photos in this while loop MAIN: 2026-05-18 11:55:05,782 - INFO - /home/pi/Desktop/images/18052026/11/54/image_18052026_11_55_05_60054.jpg MAIN: 2026-05-18 11:55:05,783 - INFO - duration: 1.0270739449988469 MAIN: 2026-05-18 11:55:05,783 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/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-05-18 11:56: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-05-18 11:56:05,746 - INFO - taking picture MAIN: 2026-05-18 11:56:05,746 - INFO - we take 326 photos in this while loop MAIN: 2026-05-18 11:56:05,747 - INFO - /home/pi/Desktop/images/18052026/11/55/image_18052026_11_56_05_60072.jpg MAIN: 2026-05-18 11:56:05,747 - INFO - duration: 0.9188376550009707 MAIN: 2026-05-18 11:56:05,747 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/11/56' MAIN: 2026-05-18 11:56: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-05-18 11:57:04,517 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:57: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-05-18 11:57:05,421 - INFO - taking picture MAIN: 2026-05-18 11:57:05,422 - INFO - we take 327 photos in this while loop MAIN: 2026-05-18 11:57:05,422 - INFO - /home/pi/Desktop/images/18052026/11/56/image_18052026_11_57_04_59650.jpg MAIN: 2026-05-18 11:57:05,422 - INFO - duration: 0.9437729539968132 MAIN: 2026-05-18 11:57:05,422 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:58: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-05-18 11:58: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-05-18 11:58:05,395 - INFO - taking picture MAIN: 2026-05-18 11:58:05,396 - INFO - we take 328 photos in this while loop MAIN: 2026-05-18 11:58:05,396 - INFO - /home/pi/Desktop/images/18052026/11/57/image_18052026_11_58_04_59897.jpg MAIN: 2026-05-18 11:58:05,396 - INFO - duration: 1.0202948980004294 MAIN: 2026-05-18 11:58:05,396 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 11:59:04,602 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 11:59:04,952 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 11:59:05,290 - INFO - taking picture MAIN: 2026-05-18 11:59:05,290 - INFO - we take 329 photos in this while loop MAIN: 2026-05-18 11:59:05,291 - INFO - /home/pi/Desktop/images/18052026/11/58/image_18052026_11_59_04_59959.jpg MAIN: 2026-05-18 11:59:05,291 - INFO - duration: 0.9556458670012944 MAIN: 2026-05-18 11:59:05,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:00:04,611 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:00:05,285 - INFO - taking picture MAIN: 2026-05-18 12:00:05,286 - INFO - we take 330 photos in this while loop MAIN: 2026-05-18 12:00:05,286 - INFO - /home/pi/Desktop/images/18052026/11/59/image_18052026_12_00_04_60043.jpg MAIN: 2026-05-18 12:00:05,286 - INFO - duration: 0.907589619000646 MAIN: 2026-05-18 12:00:05,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/00' MAIN: 2026-05-18 12:00: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:01:05,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-05-18 12:01:05,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-05-18 12:01:06,344 - INFO - taking picture MAIN: 2026-05-18 12:01:06,345 - INFO - we take 331 photos in this while loop MAIN: 2026-05-18 12:01:06,345 - INFO - /home/pi/Desktop/images/18052026/12/00/image_18052026_12_01_05_61017.jpg MAIN: 2026-05-18 12:01:06,345 - INFO - duration: 0.9491604809991259 MAIN: 2026-05-18 12:01:06,345 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:02: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-05-18 12:02:05,484 - INFO - taking picture MAIN: 2026-05-18 12:02:05,484 - INFO - we take 332 photos in this while loop MAIN: 2026-05-18 12:02:05,485 - INFO - /home/pi/Desktop/images/18052026/12/01/image_18052026_12_02_04_59146.jpg MAIN: 2026-05-18 12:02:05,485 - INFO - duration: 0.942084837002767 MAIN: 2026-05-18 12:02:05,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/02' MAIN: 2026-05-18 12:02:05,718 - 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-05-18 12:03:04,762 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:03:05,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-05-18 12:03:06,494 - INFO - taking picture MAIN: 2026-05-18 12:03:06,494 - INFO - we take 333 photos in this while loop MAIN: 2026-05-18 12:03:06,494 - INFO - /home/pi/Desktop/images/18052026/12/02/image_18052026_12_03_05_61003.jpg MAIN: 2026-05-18 12:03:06,494 - INFO - duration: 0.9480093429992849 MAIN: 2026-05-18 12:03:06,495 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:04:05,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 ! MAIN: 2026-05-18 12:04: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-05-18 12:04:06,388 - INFO - taking picture MAIN: 2026-05-18 12:04:06,389 - INFO - we take 334 photos in this while loop MAIN: 2026-05-18 12:04:06,389 - INFO - /home/pi/Desktop/images/18052026/12/03/image_18052026_12_04_05_59916.jpg MAIN: 2026-05-18 12:04:06,389 - INFO - duration: 0.9258824739990814 MAIN: 2026-05-18 12:04:06,389 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:05: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-05-18 12:05:05,267 - INFO - taking picture MAIN: 2026-05-18 12:05:05,267 - INFO - we take 335 photos in this while loop MAIN: 2026-05-18 12:05:05,267 - INFO - /home/pi/Desktop/images/18052026/12/04/image_18052026_12_05_04_58876.jpg MAIN: 2026-05-18 12:05:05,267 - INFO - duration: 0.927800613000727 MAIN: 2026-05-18 12:05:05,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/05' MAIN: 2026-05-18 12:05:05,504 - 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-05-18 12:06: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-05-18 12:06:05,603 - INFO - taking picture MAIN: 2026-05-18 12:06:05,603 - INFO - we take 336 photos in this while loop MAIN: 2026-05-18 12:06:05,603 - INFO - /home/pi/Desktop/images/18052026/12/05/image_18052026_12_06_04_60221.jpg MAIN: 2026-05-18 12:06:05,603 - INFO - duration: 1.0427946480012906 MAIN: 2026-05-18 12:06:05,604 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/06' MAIN: 2026-05-18 12:06: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:07: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-05-18 12:07:05,379 - INFO - taking picture MAIN: 2026-05-18 12:07:05,379 - INFO - we take 337 photos in this while loop MAIN: 2026-05-18 12:07:05,379 - INFO - /home/pi/Desktop/images/18052026/12/06/image_18052026_12_07_04_59879.jpg MAIN: 2026-05-18 12:07:05,379 - INFO - duration: 0.9396428379986901 MAIN: 2026-05-18 12:07:05,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/07' MAIN: 2026-05-18 12:07: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:08: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-05-18 12:08:05,366 - INFO - taking picture MAIN: 2026-05-18 12:08:05,366 - INFO - we take 338 photos in this while loop MAIN: 2026-05-18 12:08:05,366 - INFO - /home/pi/Desktop/images/18052026/12/07/image_18052026_12_08_04_60039.jpg MAIN: 2026-05-18 12:08:05,366 - INFO - duration: 0.8871088769992639 MAIN: 2026-05-18 12:08:05,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/08' MAIN: 2026-05-18 12:08: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-05-18 12:09: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-05-18 12:09:04,855 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:09:05,354 - INFO - taking picture MAIN: 2026-05-18 12:09:05,354 - INFO - we take 339 photos in this while loop MAIN: 2026-05-18 12:09:05,354 - INFO - /home/pi/Desktop/images/18052026/12/08/image_18052026_12_09_04_59948.jpg MAIN: 2026-05-18 12:09:05,355 - INFO - duration: 0.9262929079995956 MAIN: 2026-05-18 12:09:05,355 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:10: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-05-18 12:10:05,470 - INFO - taking picture MAIN: 2026-05-18 12:10:05,470 - INFO - we take 340 photos in this while loop MAIN: 2026-05-18 12:10:05,470 - INFO - /home/pi/Desktop/images/18052026/12/09/image_18052026_12_10_04_60083.jpg MAIN: 2026-05-18 12:10:05,470 - INFO - duration: 0.9579185289985617 MAIN: 2026-05-18 12:10:05,470 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/10' MAIN: 2026-05-18 12:10:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:11:04,694 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:11: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-05-18 12:11:05,385 - INFO - taking picture MAIN: 2026-05-18 12:11:05,385 - INFO - we take 341 photos in this while loop MAIN: 2026-05-18 12:11:05,385 - INFO - /home/pi/Desktop/images/18052026/12/10/image_18052026_12_11_04_59922.jpg MAIN: 2026-05-18 12:11:05,386 - INFO - duration: 0.9510973960022966 MAIN: 2026-05-18 12:11:05,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:12:04,701 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:12: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-05-18 12:12:05,432 - INFO - taking picture MAIN: 2026-05-18 12:12:05,433 - INFO - we take 342 photos in this while loop MAIN: 2026-05-18 12:12:05,433 - INFO - /home/pi/Desktop/images/18052026/12/11/image_18052026_12_12_04_60017.jpg MAIN: 2026-05-18 12:12:05,433 - INFO - duration: 0.9807472350003081 MAIN: 2026-05-18 12:12:05,433 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:13: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-05-18 12:13:05,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-05-18 12:13:06,402 - INFO - taking picture MAIN: 2026-05-18 12:13:06,402 - INFO - we take 343 photos in this while loop MAIN: 2026-05-18 12:13:06,402 - INFO - /home/pi/Desktop/images/18052026/12/12/image_18052026_12_13_05_61056.jpg MAIN: 2026-05-18 12:13:06,403 - INFO - duration: 0.8934230179984297 MAIN: 2026-05-18 12:13:06,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/13' MAIN: 2026-05-18 12:14: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:14:05,439 - INFO - taking picture MAIN: 2026-05-18 12:14:05,439 - INFO - we take 344 photos in this while loop MAIN: 2026-05-18 12:14:05,439 - INFO - /home/pi/Desktop/images/18052026/12/13/image_18052026_12_14_04_59003.jpg MAIN: 2026-05-18 12:14:05,439 - INFO - duration: 0.926600752001832 MAIN: 2026-05-18 12:14:05,439 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/14' MAIN: 2026-05-18 12:14:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:15: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-05-18 12:15:05,757 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:15:06,440 - INFO - taking picture MAIN: 2026-05-18 12:15:06,440 - INFO - we take 345 photos in this while loop MAIN: 2026-05-18 12:15:06,440 - INFO - /home/pi/Desktop/images/18052026/12/14/image_18052026_12_15_05_61024.jpg MAIN: 2026-05-18 12:15:06,440 - INFO - duration: 0.9030247449991293 MAIN: 2026-05-18 12:15:06,440 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:16:04,706 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:16: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-05-18 12:16:05,401 - INFO - taking picture MAIN: 2026-05-18 12:16:05,401 - INFO - we take 346 photos in this while loop MAIN: 2026-05-18 12:16:05,401 - INFO - /home/pi/Desktop/images/18052026/12/15/image_18052026_12_16_04_58912.jpg MAIN: 2026-05-18 12:16:05,401 - INFO - duration: 0.9510949390023598 MAIN: 2026-05-18 12:16:05,401 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:17:04,689 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:17: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-05-18 12:17:05,381 - INFO - taking picture MAIN: 2026-05-18 12:17:05,382 - INFO - we take 347 photos in this while loop MAIN: 2026-05-18 12:17:05,382 - INFO - /home/pi/Desktop/images/18052026/12/16/image_18052026_12_17_04_59966.jpg MAIN: 2026-05-18 12:17:05,382 - INFO - duration: 0.9650574949992006 MAIN: 2026-05-18 12:17:05,382 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:18:04,915 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:18:05,557 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:18:05,666 - INFO - taking picture MAIN: 2026-05-18 12:18:05,666 - INFO - we take 348 photos in this while loop MAIN: 2026-05-18 12:18:05,667 - INFO - /home/pi/Desktop/images/18052026/12/17/image_18052026_12_18_04_60203.jpg MAIN: 2026-05-18 12:18:05,667 - INFO - duration: 1.0466784429991094 MAIN: 2026-05-18 12:18:05,667 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:19: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-05-18 12:19: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-05-18 12:19:05,967 - INFO - taking picture MAIN: 2026-05-18 12:19:05,967 - INFO - we take 349 photos in this while loop MAIN: 2026-05-18 12:19:05,967 - INFO - /home/pi/Desktop/images/18052026/12/18/image_18052026_12_19_05_60386.jpg MAIN: 2026-05-18 12:19:05,968 - INFO - duration: 0.9611192059965106 MAIN: 2026-05-18 12:19:05,968 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:20: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-05-18 12:20:06,129 - INFO - taking picture MAIN: 2026-05-18 12:20:06,129 - INFO - we take 350 photos in this while loop MAIN: 2026-05-18 12:20:06,129 - INFO - /home/pi/Desktop/images/18052026/12/19/image_18052026_12_20_05_60193.jpg MAIN: 2026-05-18 12:20:06,129 - INFO - duration: 0.9297444919975533 MAIN: 2026-05-18 12:20:06,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/20' MAIN: 2026-05-18 12:20:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:21:05,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-05-18 12:21:05,705 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:21:06,255 - INFO - taking picture MAIN: 2026-05-18 12:21:06,256 - INFO - we take 351 photos in this while loop MAIN: 2026-05-18 12:21:06,256 - INFO - /home/pi/Desktop/images/18052026/12/20/image_18052026_12_21_05_60034.jpg MAIN: 2026-05-18 12:21:06,256 - INFO - duration: 1.0221013230002427 MAIN: 2026-05-18 12:21:06,256 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:22:04,827 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:22: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-05-18 12:22:05,552 - INFO - taking picture MAIN: 2026-05-18 12:22:05,553 - INFO - we take 352 photos in this while loop MAIN: 2026-05-18 12:22:05,553 - INFO - /home/pi/Desktop/images/18052026/12/21/image_18052026_12_22_04_59321.jpg MAIN: 2026-05-18 12:22:05,553 - INFO - duration: 0.9975103479991958 MAIN: 2026-05-18 12:22:05,553 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:23:04,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-05-18 12:23: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-05-18 12:23:06,213 - INFO - taking picture MAIN: 2026-05-18 12:23:06,214 - INFO - we take 353 photos in this while loop MAIN: 2026-05-18 12:23:06,214 - INFO - /home/pi/Desktop/images/18052026/12/22/image_18052026_12_23_05_60752.jpg MAIN: 2026-05-18 12:23:06,214 - INFO - duration: 0.9058467360009672 MAIN: 2026-05-18 12:23:06,214 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:24:05,317 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:24: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-05-18 12:24:06,270 - INFO - taking picture MAIN: 2026-05-18 12:24:06,270 - INFO - we take 354 photos in this while loop MAIN: 2026-05-18 12:24:06,270 - INFO - /home/pi/Desktop/images/18052026/12/23/image_18052026_12_24_05_60031.jpg MAIN: 2026-05-18 12:24:06,270 - INFO - duration: 0.9312818910002534 MAIN: 2026-05-18 12:24:06,271 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:25: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-05-18 12:25:05,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-05-18 12:25:05,761 - INFO - taking picture MAIN: 2026-05-18 12:25:05,761 - INFO - we take 355 photos in this while loop MAIN: 2026-05-18 12:25:05,762 - INFO - /home/pi/Desktop/images/18052026/12/24/image_18052026_12_25_04_59358.jpg MAIN: 2026-05-18 12:25:05,762 - INFO - duration: 1.0641638630004309 MAIN: 2026-05-18 12:25:05,763 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:26:04,967 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:26:05,659 - INFO - taking picture MAIN: 2026-05-18 12:26:05,659 - INFO - we take 356 photos in this while loop MAIN: 2026-05-18 12:26:05,660 - INFO - /home/pi/Desktop/images/18052026/12/25/image_18052026_12_26_04_60002.jpg MAIN: 2026-05-18 12:26:05,660 - INFO - duration: 0.9594909100014775 MAIN: 2026-05-18 12:26:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/26' MAIN: 2026-05-18 12:26:05,713 - 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-05-18 12:27:05,067 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:27: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-05-18 12:27:05,776 - INFO - taking picture MAIN: 2026-05-18 12:27:05,776 - INFO - we take 357 photos in this while loop MAIN: 2026-05-18 12:27:05,776 - INFO - /home/pi/Desktop/images/18052026/12/26/image_18052026_12_27_05_60088.jpg MAIN: 2026-05-18 12:27:05,776 - INFO - duration: 0.9875101180005004 MAIN: 2026-05-18 12:27:05,777 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:28:04,937 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:28: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-05-18 12:28:06,306 - INFO - taking picture MAIN: 2026-05-18 12:28:06,306 - INFO - we take 358 photos in this while loop MAIN: 2026-05-18 12:28:06,306 - INFO - /home/pi/Desktop/images/18052026/12/27/image_18052026_12_28_05_60481.jpg MAIN: 2026-05-18 12:28:06,306 - INFO - duration: 1.0365423980001651 MAIN: 2026-05-18 12:28:06,307 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:29:04,778 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:29: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-05-18 12:29:05,668 - INFO - taking picture MAIN: 2026-05-18 12:29:05,668 - INFO - we take 359 photos in this while loop MAIN: 2026-05-18 12:29:05,668 - INFO - /home/pi/Desktop/images/18052026/12/28/image_18052026_12_29_04_59415.jpg MAIN: 2026-05-18 12:29:05,669 - INFO - duration: 0.9833700199997111 MAIN: 2026-05-18 12:29:05,669 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:30: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-05-18 12:30:05,279 - INFO - taking picture MAIN: 2026-05-18 12:30:05,279 - INFO - we take 360 photos in this while loop MAIN: 2026-05-18 12:30:05,279 - INFO - /home/pi/Desktop/images/18052026/12/29/image_18052026_12_30_04_59652.jpg MAIN: 2026-05-18 12:30:05,280 - INFO - duration: 0.9419670999996015 MAIN: 2026-05-18 12:30:05,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/30' MAIN: 2026-05-18 12:30:05,420 - 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-05-18 12:31: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-05-18 12:31: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-05-18 12:31:05,850 - INFO - taking picture MAIN: 2026-05-18 12:31:05,850 - INFO - we take 361 photos in this while loop MAIN: 2026-05-18 12:31:05,850 - INFO - /home/pi/Desktop/images/18052026/12/30/image_18052026_12_31_05_60447.jpg MAIN: 2026-05-18 12:31:05,850 - INFO - duration: 1.0651742970003397 MAIN: 2026-05-18 12:31:05,851 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:32: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-05-18 12:32:05,686 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:32:06,297 - INFO - taking picture MAIN: 2026-05-18 12:32:06,297 - INFO - we take 362 photos in this while loop MAIN: 2026-05-18 12:32:06,297 - INFO - /home/pi/Desktop/images/18052026/12/31/image_18052026_12_32_05_60506.jpg MAIN: 2026-05-18 12:32:06,297 - INFO - duration: 1.0054160010004125 MAIN: 2026-05-18 12:32:06,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:33: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-05-18 12:33:05,520 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:33:05,760 - INFO - taking picture MAIN: 2026-05-18 12:33:05,760 - INFO - we take 363 photos in this while loop MAIN: 2026-05-18 12:33:05,760 - INFO - /home/pi/Desktop/images/18052026/12/32/image_18052026_12_33_04_59375.jpg MAIN: 2026-05-18 12:33:05,760 - INFO - duration: 1.0931217549987196 MAIN: 2026-05-18 12:33:05,761 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:34:05,578 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:34: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-05-18 12:34:06,305 - INFO - taking picture MAIN: 2026-05-18 12:34:06,305 - INFO - we take 364 photos in this while loop MAIN: 2026-05-18 12:34:06,305 - INFO - /home/pi/Desktop/images/18052026/12/33/image_18052026_12_34_05_60585.jpg MAIN: 2026-05-18 12:34:06,305 - INFO - duration: 1.0525471220025793 MAIN: 2026-05-18 12:34:06,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:35: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-05-18 12:35:05,081 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:35:05,672 - INFO - taking picture MAIN: 2026-05-18 12:35:05,672 - INFO - we take 365 photos in this while loop MAIN: 2026-05-18 12:35:05,672 - INFO - /home/pi/Desktop/images/18052026/12/34/image_18052026_12_35_04_59339.jpg MAIN: 2026-05-18 12:35:05,672 - INFO - duration: 1.0802840710020973 MAIN: 2026-05-18 12:35:05,673 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:36:04,656 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:36: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-05-18 12:36:05,372 - INFO - taking picture MAIN: 2026-05-18 12:36:05,372 - INFO - we take 366 photos in this while loop MAIN: 2026-05-18 12:36:05,372 - INFO - /home/pi/Desktop/images/18052026/12/35/image_18052026_12_36_04_59806.jpg MAIN: 2026-05-18 12:36:05,372 - INFO - duration: 0.973645903999568 MAIN: 2026-05-18 12:36:05,372 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:37:05,077 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:37:05,257 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:37:05,963 - INFO - taking picture MAIN: 2026-05-18 12:37:05,964 - INFO - we take 367 photos in this while loop MAIN: 2026-05-18 12:37:05,964 - INFO - /home/pi/Desktop/images/18052026/12/36/image_18052026_12_37_05_60557.jpg MAIN: 2026-05-18 12:37:05,964 - INFO - duration: 1.0076540879999811 MAIN: 2026-05-18 12:37:05,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:38: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-05-18 12:38:05,556 - INFO - taking picture MAIN: 2026-05-18 12:38:05,556 - INFO - we take 368 photos in this while loop MAIN: 2026-05-18 12:38:05,557 - INFO - /home/pi/Desktop/images/18052026/12/37/image_18052026_12_38_04_59615.jpg MAIN: 2026-05-18 12:38:05,557 - INFO - duration: 0.9853072530022473 MAIN: 2026-05-18 12:38:05,557 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/38' MAIN: 2026-05-18 12:38: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-05-18 12:39:05,270 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:39:05,470 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:39:06,236 - INFO - taking picture MAIN: 2026-05-18 12:39:06,236 - INFO - we take 369 photos in this while loop MAIN: 2026-05-18 12:39:06,236 - INFO - /home/pi/Desktop/images/18052026/12/38/image_18052026_12_39_05_60579.jpg MAIN: 2026-05-18 12:39:06,236 - INFO - duration: 1.0859434119993239 MAIN: 2026-05-18 12:39:06,237 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:40: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-05-18 12:40: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 ! MAIN: 2026-05-18 12:40:06,176 - INFO - taking picture MAIN: 2026-05-18 12:40:06,177 - INFO - we take 370 photos in this while loop MAIN: 2026-05-18 12:40:06,177 - INFO - /home/pi/Desktop/images/18052026/12/39/image_18052026_12_40_05_60063.jpg MAIN: 2026-05-18 12:40:06,177 - INFO - duration: 0.963633112001844 MAIN: 2026-05-18 12:40:06,178 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:41: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-05-18 12:41:05,408 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:41:06,138 - INFO - taking picture MAIN: 2026-05-18 12:41:06,138 - INFO - we take 371 photos in this while loop MAIN: 2026-05-18 12:41:06,139 - INFO - /home/pi/Desktop/images/18052026/12/40/image_18052026_12_41_05_59964.jpg MAIN: 2026-05-18 12:41:06,139 - INFO - duration: 0.96060989200123 MAIN: 2026-05-18 12:41:06,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:42: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-05-18 12:42: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-05-18 12:42:06,040 - INFO - taking picture MAIN: 2026-05-18 12:42:06,041 - INFO - we take 372 photos in this while loop MAIN: 2026-05-18 12:42:06,041 - INFO - /home/pi/Desktop/images/18052026/12/41/image_18052026_12_42_05_59882.jpg MAIN: 2026-05-18 12:42:06,041 - INFO - duration: 0.9801855679979781 MAIN: 2026-05-18 12:42:06,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:43: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-05-18 12:43:05,174 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:43:05,827 - INFO - taking picture MAIN: 2026-05-18 12:43:05,827 - INFO - we take 373 photos in this while loop MAIN: 2026-05-18 12:43:05,827 - INFO - /home/pi/Desktop/images/18052026/12/42/image_18052026_12_43_05_59767.jpg MAIN: 2026-05-18 12:43:05,827 - INFO - duration: 0.9994926750005106 MAIN: 2026-05-18 12:43:05,828 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:44: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-05-18 12:44:05,619 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:44:06,250 - INFO - taking picture MAIN: 2026-05-18 12:44:06,250 - INFO - we take 374 photos in this while loop MAIN: 2026-05-18 12:44:06,250 - INFO - /home/pi/Desktop/images/18052026/12/43/image_18052026_12_44_05_60428.jpg MAIN: 2026-05-18 12:44:06,250 - INFO - duration: 0.9933992950027459 MAIN: 2026-05-18 12:44:06,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:45: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-05-18 12:45:05,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-05-18 12:45:06,249 - INFO - taking picture MAIN: 2026-05-18 12:45:06,250 - INFO - we take 375 photos in this while loop MAIN: 2026-05-18 12:45:06,250 - INFO - /home/pi/Desktop/images/18052026/12/44/image_18052026_12_45_05_59970.jpg MAIN: 2026-05-18 12:45:06,250 - INFO - duration: 1.0223285799984296 MAIN: 2026-05-18 12:45:06,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:46:04,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 ! MAIN: 2026-05-18 12:46:05,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-05-18 12:46:06,595 - INFO - taking picture MAIN: 2026-05-18 12:46:06,596 - INFO - we take 376 photos in this while loop MAIN: 2026-05-18 12:46:06,596 - INFO - /home/pi/Desktop/images/18052026/12/45/image_18052026_12_46_05_60277.jpg MAIN: 2026-05-18 12:46:06,596 - INFO - duration: 1.0911605299988878 MAIN: 2026-05-18 12:46:06,596 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:47: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-05-18 12:47:05,814 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:47:06,500 - INFO - taking picture MAIN: 2026-05-18 12:47:06,501 - INFO - we take 377 photos in this while loop MAIN: 2026-05-18 12:47:06,501 - INFO - /home/pi/Desktop/images/18052026/12/46/image_18052026_12_47_05_60046.jpg MAIN: 2026-05-18 12:47:06,501 - INFO - duration: 0.9493771910019859 MAIN: 2026-05-18 12:47:06,501 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:48:04,681 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:48:05,359 - INFO - taking picture MAIN: 2026-05-18 12:48:05,359 - INFO - we take 378 photos in this while loop MAIN: 2026-05-18 12:48:05,359 - INFO - /home/pi/Desktop/images/18052026/12/47/image_18052026_12_48_04_58858.jpg MAIN: 2026-05-18 12:48:05,360 - INFO - duration: 0.9499164430017117 MAIN: 2026-05-18 12:48:05,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/48' MAIN: 2026-05-18 12:48: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:49: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-05-18 12:49: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-05-18 12:49:05,380 - INFO - taking picture MAIN: 2026-05-18 12:49:05,381 - INFO - we take 379 photos in this while loop MAIN: 2026-05-18 12:49:05,381 - INFO - /home/pi/Desktop/images/18052026/12/48/image_18052026_12_49_04_60028.jpg MAIN: 2026-05-18 12:49:05,382 - INFO - duration: 0.9433502149986452 MAIN: 2026-05-18 12:49:05,382 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:50:05,053 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:50:05,727 - INFO - taking picture MAIN: 2026-05-18 12:50:05,728 - INFO - we take 380 photos in this while loop MAIN: 2026-05-18 12:50:05,728 - INFO - /home/pi/Desktop/images/18052026/12/49/image_18052026_12_50_05_60346.jpg MAIN: 2026-05-18 12:50:05,728 - INFO - duration: 0.9428499019995797 MAIN: 2026-05-18 12:50:05,728 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/50' MAIN: 2026-05-18 12:50:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:51: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-05-18 12:51:05,567 - INFO - taking picture MAIN: 2026-05-18 12:51:05,567 - INFO - we take 381 photos in this while loop MAIN: 2026-05-18 12:51:05,568 - INFO - /home/pi/Desktop/images/18052026/12/50/image_18052026_12_51_04_59838.jpg MAIN: 2026-05-18 12:51:05,568 - INFO - duration: 0.9439023019986053 MAIN: 2026-05-18 12:51:05,568 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/51' MAIN: 2026-05-18 12:51:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 12:52:04,842 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:52: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-05-18 12:52:05,526 - INFO - taking picture MAIN: 2026-05-18 12:52:05,526 - INFO - we take 382 photos in this while loop MAIN: 2026-05-18 12:52:05,526 - INFO - /home/pi/Desktop/images/18052026/12/51/image_18052026_12_52_04_59958.jpg MAIN: 2026-05-18 12:52:05,526 - INFO - duration: 0.9441296279983362 MAIN: 2026-05-18 12:52:05,527 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:53: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-05-18 12:53:05,113 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:53:05,346 - INFO - taking picture MAIN: 2026-05-18 12:53:05,346 - INFO - we take 383 photos in this while loop MAIN: 2026-05-18 12:53:05,346 - INFO - /home/pi/Desktop/images/18052026/12/52/image_18052026_12_53_04_59794.jpg MAIN: 2026-05-18 12:53:05,346 - INFO - duration: 0.9692210989996966 MAIN: 2026-05-18 12:53:05,347 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:54:04,919 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:54:05,356 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:54:05,647 - INFO - taking picture MAIN: 2026-05-18 12:54:05,647 - INFO - we take 384 photos in this while loop MAIN: 2026-05-18 12:54:05,647 - INFO - /home/pi/Desktop/images/18052026/12/53/image_18052026_12_54_04_60248.jpg MAIN: 2026-05-18 12:54:05,647 - INFO - duration: 1.0213660289991822 MAIN: 2026-05-18 12:54:05,648 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:55: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-05-18 12:55:05,638 - INFO - taking picture MAIN: 2026-05-18 12:55:05,638 - INFO - we take 385 photos in this while loop MAIN: 2026-05-18 12:55:05,638 - INFO - /home/pi/Desktop/images/18052026/12/54/image_18052026_12_55_04_60062.jpg MAIN: 2026-05-18 12:55:05,639 - INFO - duration: 0.9498492279999482 MAIN: 2026-05-18 12:55:05,639 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/55' MAIN: 2026-05-18 12:55:05,681 - 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-05-18 12:56:04,864 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:56: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-05-18 12:56:05,540 - INFO - taking picture MAIN: 2026-05-18 12:56:05,540 - INFO - we take 386 photos in this while loop MAIN: 2026-05-18 12:56:05,540 - INFO - /home/pi/Desktop/images/18052026/12/55/image_18052026_12_56_04_59925.jpg MAIN: 2026-05-18 12:56:05,541 - INFO - duration: 0.9265038379999169 MAIN: 2026-05-18 12:56:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 12:57:04,729 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 12:57: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-05-18 12:57:05,413 - INFO - taking picture MAIN: 2026-05-18 12:57:05,413 - INFO - we take 387 photos in this while loop MAIN: 2026-05-18 12:57:05,413 - INFO - /home/pi/Desktop/images/18052026/12/56/image_18052026_12_57_04_59862.jpg MAIN: 2026-05-18 12:57:05,413 - INFO - duration: 0.9365709270023217 MAIN: 2026-05-18 12:57:05,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:58: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-05-18 12:58: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-05-18 12:58:05,423 - INFO - taking picture MAIN: 2026-05-18 12:58:05,424 - INFO - we take 388 photos in this while loop MAIN: 2026-05-18 12:58:05,424 - INFO - /home/pi/Desktop/images/18052026/12/57/image_18052026_12_58_04_59921.jpg MAIN: 2026-05-18 12:58:05,424 - INFO - duration: 1.0263162829978683 MAIN: 2026-05-18 12:58:05,424 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/12/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-05-18 12:59: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-05-18 12:59:05,101 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 12:59:05,354 - INFO - taking picture MAIN: 2026-05-18 12:59:05,354 - INFO - we take 389 photos in this while loop MAIN: 2026-05-18 12:59:05,354 - INFO - /home/pi/Desktop/images/18052026/12/58/image_18052026_12_59_04_60014.jpg MAIN: 2026-05-18 12:59:05,354 - INFO - duration: 0.9417901550004899 MAIN: 2026-05-18 12:59:05,355 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:00: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-05-18 13:00:05,332 - INFO - taking picture MAIN: 2026-05-18 13:00:05,333 - INFO - we take 390 photos in this while loop MAIN: 2026-05-18 13:00:05,333 - INFO - /home/pi/Desktop/images/18052026/12/59/image_18052026_13_00_04_60032.jpg MAIN: 2026-05-18 13:00:05,333 - INFO - duration: 0.8875040620005166 MAIN: 2026-05-18 13:00:05,333 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/00' MAIN: 2026-05-18 13:00:05,391 - 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-05-18 13:01:04,921 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:01:05,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-05-18 13:01:06,411 - INFO - taking picture MAIN: 2026-05-18 13:01:06,411 - INFO - we take 391 photos in this while loop MAIN: 2026-05-18 13:01:06,411 - INFO - /home/pi/Desktop/images/18052026/13/00/image_18052026_13_01_05_61031.jpg MAIN: 2026-05-18 13:01:06,412 - INFO - duration: 0.9343411249974451 MAIN: 2026-05-18 13:01:06,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:02:04,691 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:02: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-05-18 13:02:05,368 - INFO - taking picture MAIN: 2026-05-18 13:02:05,368 - INFO - we take 392 photos in this while loop MAIN: 2026-05-18 13:02:05,369 - INFO - /home/pi/Desktop/images/18052026/13/01/image_18052026_13_02_04_58935.jpg MAIN: 2026-05-18 13:02:05,369 - INFO - duration: 0.9558304940001108 MAIN: 2026-05-18 13:02:05,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:03: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-05-18 13:03:05,132 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:03:05,568 - INFO - taking picture MAIN: 2026-05-18 13:03:05,568 - INFO - we take 393 photos in this while loop MAIN: 2026-05-18 13:03:05,569 - INFO - /home/pi/Desktop/images/18052026/13/02/image_18052026_13_03_04_60112.jpg MAIN: 2026-05-18 13:03:05,569 - INFO - duration: 1.043471982000483 MAIN: 2026-05-18 13:03:05,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:04: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-05-18 13:04:05,495 - INFO - taking picture MAIN: 2026-05-18 13:04:05,496 - INFO - we take 394 photos in this while loop MAIN: 2026-05-18 13:04:05,496 - INFO - /home/pi/Desktop/images/18052026/13/03/image_18052026_13_04_04_60067.jpg MAIN: 2026-05-18 13:04:05,496 - INFO - duration: 0.9033322840004985 MAIN: 2026-05-18 13:04:05,496 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/04' MAIN: 2026-05-18 13:04: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 13:05: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-05-18 13:05:05,604 - INFO - taking picture MAIN: 2026-05-18 13:05:05,605 - INFO - we take 395 photos in this while loop MAIN: 2026-05-18 13:05:05,605 - INFO - /home/pi/Desktop/images/18052026/13/04/image_18052026_13_05_04_60003.jpg MAIN: 2026-05-18 13:05:05,605 - INFO - duration: 1.0085457919994951 MAIN: 2026-05-18 13:05:05,605 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/05' MAIN: 2026-05-18 13:05: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 13:06:04,866 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:06:05,329 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:06:06,016 - INFO - taking picture MAIN: 2026-05-18 13:06:06,016 - INFO - we take 396 photos in this while loop MAIN: 2026-05-18 13:06:06,017 - INFO - /home/pi/Desktop/images/18052026/13/05/image_18052026_13_06_05_60509.jpg MAIN: 2026-05-18 13:06:06,017 - INFO - duration: 0.9104945689978194 MAIN: 2026-05-18 13:06:06,017 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:07: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-05-18 13:07:05,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-05-18 13:07:06,481 - INFO - taking picture MAIN: 2026-05-18 13:07:06,481 - INFO - we take 397 photos in this while loop MAIN: 2026-05-18 13:07:06,481 - INFO - /home/pi/Desktop/images/18052026/13/06/image_18052026_13_07_05_60300.jpg MAIN: 2026-05-18 13:07:06,482 - INFO - duration: 1.0751687650008535 MAIN: 2026-05-18 13:07:06,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:08: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-05-18 13:08:05,389 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:08:05,637 - INFO - taking picture MAIN: 2026-05-18 13:08:05,637 - INFO - we take 398 photos in this while loop MAIN: 2026-05-18 13:08:05,637 - INFO - /home/pi/Desktop/images/18052026/13/07/image_18052026_13_08_04_59260.jpg MAIN: 2026-05-18 13:08:05,637 - INFO - duration: 0.9708380210031464 MAIN: 2026-05-18 13:08:05,638 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:09: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-05-18 13:09: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-05-18 13:09:05,769 - INFO - taking picture MAIN: 2026-05-18 13:09:05,770 - INFO - we take 399 photos in this while loop MAIN: 2026-05-18 13:09:05,770 - INFO - /home/pi/Desktop/images/18052026/13/08/image_18052026_13_09_05_60088.jpg MAIN: 2026-05-18 13:09:05,770 - INFO - duration: 1.0155444640004134 MAIN: 2026-05-18 13:09:05,770 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:10: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-05-18 13:10: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 ! MAIN: 2026-05-18 13:10:06,215 - INFO - taking picture MAIN: 2026-05-18 13:10:06,216 - INFO - we take 400 photos in this while loop MAIN: 2026-05-18 13:10:06,216 - INFO - /home/pi/Desktop/images/18052026/13/09/image_18052026_13_10_05_60474.jpg MAIN: 2026-05-18 13:10:06,216 - INFO - duration: 0.9872665570001118 MAIN: 2026-05-18 13:10:06,216 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:11: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-05-18 13:11:05,571 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:11:06,028 - INFO - taking picture MAIN: 2026-05-18 13:11:06,028 - INFO - we take 401 photos in this while loop MAIN: 2026-05-18 13:11:06,028 - INFO - /home/pi/Desktop/images/18052026/13/10/image_18052026_13_11_05_59825.jpg MAIN: 2026-05-18 13:11:06,028 - INFO - duration: 0.9744896060001338 MAIN: 2026-05-18 13:11:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:12:05,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-05-18 13:12: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 ! MAIN: 2026-05-18 13:12:06,159 - INFO - taking picture MAIN: 2026-05-18 13:12:06,160 - INFO - we take 402 photos in this while loop MAIN: 2026-05-18 13:12:06,160 - INFO - /home/pi/Desktop/images/18052026/13/11/image_18052026_13_12_05_60108.jpg MAIN: 2026-05-18 13:12:06,160 - INFO - duration: 0.9981283399974927 MAIN: 2026-05-18 13:12:06,160 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:13: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-05-18 13:13:05,393 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:13:06,085 - INFO - taking picture MAIN: 2026-05-18 13:13:06,085 - INFO - we take 403 photos in this while loop MAIN: 2026-05-18 13:13:06,085 - INFO - /home/pi/Desktop/images/18052026/13/12/image_18052026_13_13_05_60010.jpg MAIN: 2026-05-18 13:13:06,086 - INFO - duration: 0.9128577550000045 MAIN: 2026-05-18 13:13:06,086 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:14:05,125 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:14:05,522 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:14:06,286 - INFO - taking picture MAIN: 2026-05-18 13:14:06,287 - INFO - we take 404 photos in this while loop MAIN: 2026-05-18 13:14:06,287 - INFO - /home/pi/Desktop/images/18052026/13/13/image_18052026_13_14_05_60106.jpg MAIN: 2026-05-18 13:14:06,287 - INFO - duration: 1.0074974000017392 MAIN: 2026-05-18 13:14:06,287 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:15: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-05-18 13:15:05,777 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:15:06,540 - INFO - taking picture MAIN: 2026-05-18 13:15:06,540 - INFO - we take 405 photos in this while loop MAIN: 2026-05-18 13:15:06,540 - INFO - /home/pi/Desktop/images/18052026/13/14/image_18052026_13_15_05_60234.jpg MAIN: 2026-05-18 13:15:06,540 - INFO - duration: 1.0260629689983034 MAIN: 2026-05-18 13:15:06,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:16: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-05-18 13:16:05,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-05-18 13:16:06,256 - INFO - taking picture MAIN: 2026-05-18 13:16:06,256 - INFO - we take 406 photos in this while loop MAIN: 2026-05-18 13:16:06,256 - INFO - /home/pi/Desktop/images/18052026/13/15/image_18052026_13_16_05_59755.jpg MAIN: 2026-05-18 13:16:06,256 - INFO - duration: 0.9868859060006798 MAIN: 2026-05-18 13:16:06,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:17:05,222 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:17: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-05-18 13:17:05,923 - INFO - taking picture MAIN: 2026-05-18 13:17:05,923 - INFO - we take 407 photos in this while loop MAIN: 2026-05-18 13:17:05,923 - INFO - /home/pi/Desktop/images/18052026/13/16/image_18052026_13_17_05_59678.jpg MAIN: 2026-05-18 13:17:05,923 - INFO - duration: 0.9754876810002315 MAIN: 2026-05-18 13:17:05,924 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:18:05,098 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:18: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-05-18 13:18:06,173 - INFO - taking picture MAIN: 2026-05-18 13:18:06,173 - INFO - we take 408 photos in this while loop MAIN: 2026-05-18 13:18:06,173 - INFO - /home/pi/Desktop/images/18052026/13/17/image_18052026_13_18_05_60288.jpg MAIN: 2026-05-18 13:18:06,173 - INFO - duration: 0.9369007790010073 MAIN: 2026-05-18 13:18:06,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:19:04,754 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:19:05,386 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:19:06,123 - INFO - taking picture MAIN: 2026-05-18 13:19:06,124 - INFO - we take 409 photos in this while loop MAIN: 2026-05-18 13:19:06,124 - INFO - /home/pi/Desktop/images/18052026/13/18/image_18052026_13_19_05_59897.jpg MAIN: 2026-05-18 13:19:06,124 - INFO - duration: 0.9896832070007804 MAIN: 2026-05-18 13:19:06,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:20: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 ! MAIN: 2026-05-18 13:20:05,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-05-18 13:20:06,479 - INFO - taking picture MAIN: 2026-05-18 13:20:06,479 - INFO - we take 410 photos in this while loop MAIN: 2026-05-18 13:20:06,479 - INFO - /home/pi/Desktop/images/18052026/13/19/image_18052026_13_20_05_60376.jpg MAIN: 2026-05-18 13:20:06,480 - INFO - duration: 0.9686966640001629 MAIN: 2026-05-18 13:20:06,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:21: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-05-18 13:21:05,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-05-18 13:21:06,336 - INFO - taking picture MAIN: 2026-05-18 13:21:06,336 - INFO - we take 411 photos in this while loop MAIN: 2026-05-18 13:21:06,336 - INFO - /home/pi/Desktop/images/18052026/13/20/image_18052026_13_21_05_59876.jpg MAIN: 2026-05-18 13:21:06,336 - INFO - duration: 0.9492803059983999 MAIN: 2026-05-18 13:21:06,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:22:04,681 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:22:05,365 - INFO - taking picture MAIN: 2026-05-18 13:22:05,365 - INFO - we take 412 photos in this while loop MAIN: 2026-05-18 13:22:05,365 - INFO - /home/pi/Desktop/images/18052026/13/21/image_18052026_13_22_04_59027.jpg MAIN: 2026-05-18 13:22:05,365 - INFO - duration: 0.9502395910021733 MAIN: 2026-05-18 13:22:05,365 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/22' MAIN: 2026-05-18 13:22: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 13:23: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-05-18 13:23:05,709 - INFO - taking picture MAIN: 2026-05-18 13:23:05,709 - INFO - we take 413 photos in this while loop MAIN: 2026-05-18 13:23:05,710 - INFO - /home/pi/Desktop/images/18052026/13/22/image_18052026_13_23_05_60322.jpg MAIN: 2026-05-18 13:23:05,710 - INFO - duration: 0.9726029699995706 MAIN: 2026-05-18 13:23:05,710 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/23' MAIN: 2026-05-18 13:23: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-05-18 13:24:05,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-05-18 13:24: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-05-18 13:24:06,002 - INFO - taking picture MAIN: 2026-05-18 13:24:06,002 - INFO - we take 414 photos in this while loop MAIN: 2026-05-18 13:24:06,002 - INFO - /home/pi/Desktop/images/18052026/13/23/image_18052026_13_24_05_60299.jpg MAIN: 2026-05-18 13:24:06,002 - INFO - duration: 0.9660243390026153 MAIN: 2026-05-18 13:24:06,003 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:25:05,345 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:25: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-05-18 13:25:06,242 - INFO - taking picture MAIN: 2026-05-18 13:25:06,242 - INFO - we take 415 photos in this while loop MAIN: 2026-05-18 13:25:06,243 - INFO - /home/pi/Desktop/images/18052026/13/24/image_18052026_13_25_05_60234.jpg MAIN: 2026-05-18 13:25:06,243 - INFO - duration: 0.9713344830015558 MAIN: 2026-05-18 13:25:06,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:26: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-05-18 13:26: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-05-18 13:26:06,286 - INFO - taking picture MAIN: 2026-05-18 13:26:06,286 - INFO - we take 416 photos in this while loop MAIN: 2026-05-18 13:26:06,286 - INFO - /home/pi/Desktop/images/18052026/13/25/image_18052026_13_26_05_60096.jpg MAIN: 2026-05-18 13:26:06,286 - INFO - duration: 0.9180829870019807 MAIN: 2026-05-18 13:26:06,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:27: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-05-18 13:27:05,306 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:27:05,998 - INFO - taking picture MAIN: 2026-05-18 13:27:05,998 - INFO - we take 417 photos in this while loop MAIN: 2026-05-18 13:27:05,998 - INFO - /home/pi/Desktop/images/18052026/13/26/image_18052026_13_27_05_59657.jpg MAIN: 2026-05-18 13:27:05,998 - INFO - duration: 0.9722846770018805 MAIN: 2026-05-18 13:27:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:28:05,402 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:28: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 ! MAIN: 2026-05-18 13:28:06,099 - INFO - taking picture MAIN: 2026-05-18 13:28:06,099 - INFO - we take 418 photos in this while loop MAIN: 2026-05-18 13:28:06,099 - INFO - /home/pi/Desktop/images/18052026/13/27/image_18052026_13_28_05_60101.jpg MAIN: 2026-05-18 13:28:06,099 - INFO - duration: 0.9715488509973511 MAIN: 2026-05-18 13:28:06,099 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:29:05,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-05-18 13:29: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-05-18 13:29:06,157 - INFO - taking picture MAIN: 2026-05-18 13:29:06,158 - INFO - we take 419 photos in this while loop MAIN: 2026-05-18 13:29:06,158 - INFO - /home/pi/Desktop/images/18052026/13/28/image_18052026_13_29_05_60036.jpg MAIN: 2026-05-18 13:29:06,158 - INFO - duration: 0.9936933999997564 MAIN: 2026-05-18 13:29:06,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:30: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-05-18 13:30: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-05-18 13:30:05,454 - INFO - taking picture MAIN: 2026-05-18 13:30:05,455 - INFO - we take 420 photos in this while loop MAIN: 2026-05-18 13:30:05,455 - INFO - /home/pi/Desktop/images/18052026/13/29/image_18052026_13_30_04_59209.jpg MAIN: 2026-05-18 13:30:05,455 - INFO - duration: 1.0813431780006795 MAIN: 2026-05-18 13:30:05,455 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:31:04,779 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:31: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-05-18 13:31:05,485 - INFO - taking picture MAIN: 2026-05-18 13:31:05,485 - INFO - we take 421 photos in this while loop MAIN: 2026-05-18 13:31:05,485 - INFO - /home/pi/Desktop/images/18052026/13/30/image_18052026_13_31_04_60120.jpg MAIN: 2026-05-18 13:31:05,485 - INFO - duration: 0.9911666119987785 MAIN: 2026-05-18 13:31:05,486 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:32:04,994 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:32: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-05-18 13:32:05,699 - INFO - taking picture MAIN: 2026-05-18 13:32:05,699 - INFO - we take 422 photos in this while loop MAIN: 2026-05-18 13:32:05,699 - INFO - /home/pi/Desktop/images/18052026/13/31/image_18052026_13_32_04_60248.jpg MAIN: 2026-05-18 13:32:05,699 - INFO - duration: 0.956232780998107 MAIN: 2026-05-18 13:32:05,700 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:33: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-05-18 13:33: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-05-18 13:33:05,767 - INFO - taking picture MAIN: 2026-05-18 13:33:05,767 - INFO - we take 423 photos in this while loop MAIN: 2026-05-18 13:33:05,767 - INFO - /home/pi/Desktop/images/18052026/13/32/image_18052026_13_33_05_60041.jpg MAIN: 2026-05-18 13:33:05,767 - INFO - duration: 0.9827640219991736 MAIN: 2026-05-18 13:33:05,768 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:34:05,456 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:34:05,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-05-18 13:34:06,161 - INFO - taking picture MAIN: 2026-05-18 13:34:06,161 - INFO - we take 424 photos in this while loop MAIN: 2026-05-18 13:34:06,161 - INFO - /home/pi/Desktop/images/18052026/13/33/image_18052026_13_34_05_60403.jpg MAIN: 2026-05-18 13:34:06,161 - INFO - duration: 0.9733464409982844 MAIN: 2026-05-18 13:34:06,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:35:05,536 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:35: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 ! MAIN: 2026-05-18 13:35:06,231 - INFO - taking picture MAIN: 2026-05-18 13:35:06,231 - INFO - we take 425 photos in this while loop MAIN: 2026-05-18 13:35:06,232 - INFO - /home/pi/Desktop/images/18052026/13/34/image_18052026_13_35_05_60073.jpg MAIN: 2026-05-18 13:35:06,232 - INFO - duration: 0.9697187970014056 MAIN: 2026-05-18 13:35:06,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:36: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-05-18 13:36:05,737 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:36:06,490 - INFO - taking picture MAIN: 2026-05-18 13:36:06,490 - INFO - we take 426 photos in this while loop MAIN: 2026-05-18 13:36:06,490 - INFO - /home/pi/Desktop/images/18052026/13/35/image_18052026_13_36_05_60225.jpg MAIN: 2026-05-18 13:36:06,490 - INFO - duration: 1.002507337001589 MAIN: 2026-05-18 13:36:06,491 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:37: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-05-18 13:37:05,706 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:37:06,466 - INFO - taking picture MAIN: 2026-05-18 13:37:06,467 - INFO - we take 427 photos in this while loop MAIN: 2026-05-18 13:37:06,467 - INFO - /home/pi/Desktop/images/18052026/13/36/image_18052026_13_37_05_59918.jpg MAIN: 2026-05-18 13:37:06,467 - INFO - duration: 1.0606452060019365 MAIN: 2026-05-18 13:37:06,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:38: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-05-18 13:38:05,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-05-18 13:38:06,587 - INFO - taking picture MAIN: 2026-05-18 13:38:06,588 - INFO - we take 428 photos in this while loop MAIN: 2026-05-18 13:38:06,588 - INFO - /home/pi/Desktop/images/18052026/13/37/image_18052026_13_38_05_60133.jpg MAIN: 2026-05-18 13:38:06,588 - INFO - duration: 1.0481279789964901 MAIN: 2026-05-18 13:38:06,588 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:39:05,301 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:39: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-05-18 13:39:06,140 - INFO - taking picture MAIN: 2026-05-18 13:39:06,140 - INFO - we take 429 photos in this while loop MAIN: 2026-05-18 13:39:06,140 - INFO - /home/pi/Desktop/images/18052026/13/38/image_18052026_13_39_05_59641.jpg MAIN: 2026-05-18 13:39:06,140 - INFO - duration: 0.9585781279965886 MAIN: 2026-05-18 13:39:06,140 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:40:05,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-05-18 13:40:06,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-05-18 13:40:06,402 - INFO - taking picture MAIN: 2026-05-18 13:40:06,402 - INFO - we take 430 photos in this while loop MAIN: 2026-05-18 13:40:06,402 - INFO - /home/pi/Desktop/images/18052026/13/39/image_18052026_13_40_05_60250.jpg MAIN: 2026-05-18 13:40:06,402 - INFO - duration: 0.9701665000029607 MAIN: 2026-05-18 13:40:06,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:41:04,765 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:41:05,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-05-18 13:41:06,369 - INFO - taking picture MAIN: 2026-05-18 13:41:06,369 - INFO - we take 431 photos in this while loop MAIN: 2026-05-18 13:41:06,369 - INFO - /home/pi/Desktop/images/18052026/13/40/image_18052026_13_41_05_60003.jpg MAIN: 2026-05-18 13:41:06,370 - INFO - duration: 0.9335795740043977 MAIN: 2026-05-18 13:41:06,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:42:05,200 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:42: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-05-18 13:42:06,297 - INFO - taking picture MAIN: 2026-05-18 13:42:06,298 - INFO - we take 432 photos in this while loop MAIN: 2026-05-18 13:42:06,298 - INFO - /home/pi/Desktop/images/18052026/13/41/image_18052026_13_42_05_59969.jpg MAIN: 2026-05-18 13:42:06,298 - INFO - duration: 0.8925694960053079 MAIN: 2026-05-18 13:42:06,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:43:04,904 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:43:05,464 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:43:06,141 - INFO - taking picture MAIN: 2026-05-18 13:43:06,141 - INFO - we take 433 photos in this while loop MAIN: 2026-05-18 13:43:06,141 - INFO - /home/pi/Desktop/images/18052026/13/42/image_18052026_13_43_05_59839.jpg MAIN: 2026-05-18 13:43:06,142 - INFO - duration: 0.8971913700006553 MAIN: 2026-05-18 13:43:06,142 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:44: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-05-18 13:44:05,480 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:44:06,221 - INFO - taking picture MAIN: 2026-05-18 13:44:06,221 - INFO - we take 434 photos in this while loop MAIN: 2026-05-18 13:44:06,221 - INFO - /home/pi/Desktop/images/18052026/13/43/image_18052026_13_44_05_59944.jpg MAIN: 2026-05-18 13:44:06,221 - INFO - duration: 1.0328918390005128 MAIN: 2026-05-18 13:44:06,222 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:45: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-05-18 13:45: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 ! MAIN: 2026-05-18 13:45:06,344 - INFO - taking picture MAIN: 2026-05-18 13:45:06,344 - INFO - we take 435 photos in this while loop MAIN: 2026-05-18 13:45:06,345 - INFO - /home/pi/Desktop/images/18052026/13/44/image_18052026_13_45_05_60133.jpg MAIN: 2026-05-18 13:45:06,345 - INFO - duration: 1.0231970960012404 MAIN: 2026-05-18 13:45:06,345 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:46: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-05-18 13:46: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 ! MAIN: 2026-05-18 13:46:06,068 - INFO - taking picture MAIN: 2026-05-18 13:46:06,068 - INFO - we take 436 photos in this while loop MAIN: 2026-05-18 13:46:06,069 - INFO - /home/pi/Desktop/images/18052026/13/45/image_18052026_13_46_05_59791.jpg MAIN: 2026-05-18 13:46:06,069 - INFO - duration: 0.9555562349996762 MAIN: 2026-05-18 13:46:06,069 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:47: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-05-18 13:47:05,757 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:47:06,431 - INFO - taking picture MAIN: 2026-05-18 13:47:06,431 - INFO - we take 437 photos in this while loop MAIN: 2026-05-18 13:47:06,431 - INFO - /home/pi/Desktop/images/18052026/13/46/image_18052026_13_47_05_60366.jpg MAIN: 2026-05-18 13:47:06,431 - INFO - duration: 0.9520540779994917 MAIN: 2026-05-18 13:47:06,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:48:05,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-05-18 13:48:05,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-05-18 13:48:06,406 - INFO - taking picture MAIN: 2026-05-18 13:48:06,406 - INFO - we take 438 photos in this while loop MAIN: 2026-05-18 13:48:06,406 - INFO - /home/pi/Desktop/images/18052026/13/47/image_18052026_13_48_05_60026.jpg MAIN: 2026-05-18 13:48:06,406 - INFO - duration: 0.9009996750028222 MAIN: 2026-05-18 13:48:06,407 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13: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-05-18 13:49:05,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-05-18 13:49:06,208 - INFO - taking picture MAIN: 2026-05-18 13:49:06,208 - INFO - we take 439 photos in this while loop MAIN: 2026-05-18 13:49:06,208 - INFO - /home/pi/Desktop/images/18052026/13/48/image_18052026_13_49_05_59806.jpg MAIN: 2026-05-18 13:49:06,208 - INFO - duration: 0.8965384629991604 MAIN: 2026-05-18 13:49:06,209 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:50: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-05-18 13:50: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 ! MAIN: 2026-05-18 13:50:06,218 - INFO - taking picture MAIN: 2026-05-18 13:50:06,218 - INFO - we take 440 photos in this while loop MAIN: 2026-05-18 13:50:06,218 - INFO - /home/pi/Desktop/images/18052026/13/49/image_18052026_13_50_05_59866.jpg MAIN: 2026-05-18 13:50:06,218 - INFO - duration: 1.0396519170026295 MAIN: 2026-05-18 13:50:06,219 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/13/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-05-18 13:51: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-05-18 13:51:05,448 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:51:05,953 - INFO - taking picture MAIN: 2026-05-18 13:51:05,953 - INFO - we take 441 photos in this while loop MAIN: 2026-05-18 13:51:05,953 - INFO - /home/pi/Desktop/images/18052026/13/50/image_18052026_13_51_05_59749.jpg MAIN: 2026-05-18 13:51:05,953 - INFO - duration: 1.0246734749962343 MAIN: 2026-05-18 13:51:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:52: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-05-18 13:52:05,597 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:52:05,867 - INFO - taking picture MAIN: 2026-05-18 13:52:05,867 - INFO - we take 442 photos in this while loop MAIN: 2026-05-18 13:52:05,867 - INFO - /home/pi/Desktop/images/18052026/13/51/image_18052026_13_52_05_59999.jpg MAIN: 2026-05-18 13:52:05,867 - INFO - duration: 0.9386508079987834 MAIN: 2026-05-18 13:52:05,868 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:53: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-05-18 13:53:05,484 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:53:05,899 - INFO - taking picture MAIN: 2026-05-18 13:53:05,899 - INFO - we take 443 photos in this while loop MAIN: 2026-05-18 13:53:05,899 - INFO - /home/pi/Desktop/images/18052026/13/52/image_18052026_13_53_05_59948.jpg MAIN: 2026-05-18 13:53:05,899 - INFO - duration: 1.0225995790024172 MAIN: 2026-05-18 13:53:05,900 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:54: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-05-18 13:54:04,969 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:54:05,552 - INFO - taking picture MAIN: 2026-05-18 13:54:05,553 - INFO - we take 444 photos in this while loop MAIN: 2026-05-18 13:54:05,553 - INFO - /home/pi/Desktop/images/18052026/13/53/image_18052026_13_54_04_59721.jpg MAIN: 2026-05-18 13:54:05,553 - INFO - duration: 0.9541716890016687 MAIN: 2026-05-18 13:54:05,553 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:55: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-05-18 13:55:05,291 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:55:05,510 - INFO - taking picture MAIN: 2026-05-18 13:55:05,511 - INFO - we take 445 photos in this while loop MAIN: 2026-05-18 13:55:05,511 - INFO - /home/pi/Desktop/images/18052026/13/54/image_18052026_13_55_04_59962.jpg MAIN: 2026-05-18 13:55:05,511 - INFO - duration: 0.9497110570009681 MAIN: 2026-05-18 13:55:05,511 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:56: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-05-18 13:56:05,232 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 13:56:05,523 - INFO - taking picture MAIN: 2026-05-18 13:56:05,523 - INFO - we take 446 photos in this while loop MAIN: 2026-05-18 13:56:05,523 - INFO - /home/pi/Desktop/images/18052026/13/55/image_18052026_13_56_04_59973.jpg MAIN: 2026-05-18 13:56:05,524 - INFO - duration: 0.989221780000662 MAIN: 2026-05-18 13:56:05,524 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:57:05,004 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:57: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-05-18 13:57:05,761 - INFO - taking picture MAIN: 2026-05-18 13:57:05,762 - INFO - we take 447 photos in this while loop MAIN: 2026-05-18 13:57:05,762 - INFO - /home/pi/Desktop/images/18052026/13/56/image_18052026_13_57_05_60171.jpg MAIN: 2026-05-18 13:57:05,762 - INFO - duration: 1.0557756109992624 MAIN: 2026-05-18 13:57:05,762 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:58:05,019 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 13:58: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-05-18 13:58:05,779 - INFO - taking picture MAIN: 2026-05-18 13:58:05,779 - INFO - we take 448 photos in this while loop MAIN: 2026-05-18 13:58:05,779 - INFO - /home/pi/Desktop/images/18052026/13/57/image_18052026_13_58_05_60024.jpg MAIN: 2026-05-18 13:58:05,779 - INFO - duration: 1.0485683290025918 MAIN: 2026-05-18 13:58:05,779 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 13:59: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-05-18 13:59: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 ! MAIN: 2026-05-18 13:59:05,646 - INFO - taking picture MAIN: 2026-05-18 13:59:05,647 - INFO - we take 449 photos in this while loop MAIN: 2026-05-18 13:59:05,647 - INFO - /home/pi/Desktop/images/18052026/13/58/image_18052026_13_59_04_59968.jpg MAIN: 2026-05-18 13:59:05,647 - INFO - duration: 0.9478862579999259 MAIN: 2026-05-18 13:59:05,647 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:00:04,827 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:00: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-05-18 14:00:05,510 - INFO - taking picture MAIN: 2026-05-18 14:00:05,510 - INFO - we take 450 photos in this while loop MAIN: 2026-05-18 14:00:05,510 - INFO - /home/pi/Desktop/images/18052026/13/59/image_18052026_14_00_04_59861.jpg MAIN: 2026-05-18 14:00:05,511 - INFO - duration: 0.9501596770060132 MAIN: 2026-05-18 14:00:05,511 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:01: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-05-18 14:01:05,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 ! MAIN: 2026-05-18 14:01:05,639 - INFO - taking picture MAIN: 2026-05-18 14:01:05,639 - INFO - we take 451 photos in this while loop MAIN: 2026-05-18 14:01:05,640 - INFO - /home/pi/Desktop/images/18052026/14/00/image_18052026_14_01_04_60118.jpg MAIN: 2026-05-18 14:01:05,640 - INFO - duration: 0.9605271050022566 MAIN: 2026-05-18 14:01:05,640 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:02: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-05-18 14:02:05,288 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:02:05,548 - INFO - taking picture MAIN: 2026-05-18 14:02:05,548 - INFO - we take 452 photos in this while loop MAIN: 2026-05-18 14:02:05,548 - INFO - /home/pi/Desktop/images/18052026/14/01/image_18052026_14_02_04_59888.jpg MAIN: 2026-05-18 14:02:05,548 - INFO - duration: 0.9804894509943551 MAIN: 2026-05-18 14:02:05,548 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:03:05,238 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:03:05,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-05-18 14:03:06,379 - INFO - taking picture MAIN: 2026-05-18 14:03:06,379 - INFO - we take 453 photos in this while loop MAIN: 2026-05-18 14:03:06,380 - INFO - /home/pi/Desktop/images/18052026/14/02/image_18052026_14_03_05_60918.jpg MAIN: 2026-05-18 14:03:06,380 - INFO - duration: 0.89393952699902 MAIN: 2026-05-18 14:03:06,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:04:05,514 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:04:05,556 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:04:06,237 - INFO - taking picture MAIN: 2026-05-18 14:04:06,237 - INFO - we take 454 photos in this while loop MAIN: 2026-05-18 14:04:06,237 - INFO - /home/pi/Desktop/images/18052026/14/03/image_18052026_14_04_05_59785.jpg MAIN: 2026-05-18 14:04:06,237 - INFO - duration: 0.9657420910007204 MAIN: 2026-05-18 14:04:06,237 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:05: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-05-18 14:05:06,126 - INFO - taking picture MAIN: 2026-05-18 14:05:06,126 - INFO - we take 455 photos in this while loop MAIN: 2026-05-18 14:05:06,126 - INFO - /home/pi/Desktop/images/18052026/14/04/image_18052026_14_05_05_59907.jpg MAIN: 2026-05-18 14:05:06,126 - INFO - duration: 0.947090504996595 MAIN: 2026-05-18 14:05:06,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/05' MAIN: 2026-05-18 14:05:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 14:06:05,038 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:06:05,402 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:06:06,093 - INFO - taking picture MAIN: 2026-05-18 14:06:06,094 - INFO - we take 456 photos in this while loop MAIN: 2026-05-18 14:06:06,094 - INFO - /home/pi/Desktop/images/18052026/14/05/image_18052026_14_06_05_60000.jpg MAIN: 2026-05-18 14:06:06,094 - INFO - duration: 0.9137921099973028 MAIN: 2026-05-18 14:06:06,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14: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-05-18 14:07: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-05-18 14:07:06,166 - INFO - taking picture MAIN: 2026-05-18 14:07:06,166 - INFO - we take 457 photos in this while loop MAIN: 2026-05-18 14:07:06,167 - INFO - /home/pi/Desktop/images/18052026/14/06/image_18052026_14_07_05_60072.jpg MAIN: 2026-05-18 14:07:06,167 - INFO - duration: 0.9142764179996448 MAIN: 2026-05-18 14:07:06,167 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:08: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 ! MAIN: 2026-05-18 14:08:05,690 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:08:06,453 - INFO - taking picture MAIN: 2026-05-18 14:08:06,454 - INFO - we take 458 photos in this while loop MAIN: 2026-05-18 14:08:06,454 - INFO - /home/pi/Desktop/images/18052026/14/07/image_18052026_14_08_05_60152.jpg MAIN: 2026-05-18 14:08:06,454 - INFO - duration: 1.0491992410024977 MAIN: 2026-05-18 14:08:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:09:05,336 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:09: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-05-18 14:09:06,080 - INFO - taking picture MAIN: 2026-05-18 14:09:06,081 - INFO - we take 459 photos in this while loop MAIN: 2026-05-18 14:09:06,081 - INFO - /home/pi/Desktop/images/18052026/14/08/image_18052026_14_09_05_59688.jpg MAIN: 2026-05-18 14:09:06,081 - INFO - duration: 0.9875677349991747 MAIN: 2026-05-18 14:09:06,081 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:10: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-05-18 14:10:05,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-05-18 14:10:06,159 - INFO - taking picture MAIN: 2026-05-18 14:10:06,159 - INFO - we take 460 photos in this while loop MAIN: 2026-05-18 14:10:06,160 - INFO - /home/pi/Desktop/images/18052026/14/09/image_18052026_14_10_05_60090.jpg MAIN: 2026-05-18 14:10:06,160 - INFO - duration: 0.9754260780027835 MAIN: 2026-05-18 14:10:06,160 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:11:05,403 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:11:05,451 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:11:06,175 - INFO - taking picture MAIN: 2026-05-18 14:11:06,176 - INFO - we take 461 photos in this while loop MAIN: 2026-05-18 14:11:06,176 - INFO - /home/pi/Desktop/images/18052026/14/10/image_18052026_14_11_05_59946.jpg MAIN: 2026-05-18 14:11:06,176 - INFO - duration: 1.0451791710001999 MAIN: 2026-05-18 14:11:06,176 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:12:05,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-05-18 14:12:05,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-05-18 14:12:06,453 - INFO - taking picture MAIN: 2026-05-18 14:12:06,453 - INFO - we take 462 photos in this while loop MAIN: 2026-05-18 14:12:06,453 - INFO - /home/pi/Desktop/images/18052026/14/11/image_18052026_14_12_05_60315.jpg MAIN: 2026-05-18 14:12:06,454 - INFO - duration: 1.0072844750029617 MAIN: 2026-05-18 14:12:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:13:04,693 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:13:05,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-05-18 14:13:06,418 - INFO - taking picture MAIN: 2026-05-18 14:13:06,418 - INFO - we take 463 photos in this while loop MAIN: 2026-05-18 14:13:06,418 - INFO - /home/pi/Desktop/images/18052026/14/12/image_18052026_14_13_05_60021.jpg MAIN: 2026-05-18 14:13:06,418 - INFO - duration: 0.9508607690004283 MAIN: 2026-05-18 14:13:06,418 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:14: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-05-18 14:14:05,845 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:14:06,538 - INFO - taking picture MAIN: 2026-05-18 14:14:06,538 - INFO - we take 464 photos in this while loop MAIN: 2026-05-18 14:14:06,538 - INFO - /home/pi/Desktop/images/18052026/14/13/image_18052026_14_14_05_60102.jpg MAIN: 2026-05-18 14:14:06,538 - INFO - duration: 0.9687860830017598 MAIN: 2026-05-18 14:14:06,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:15: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-05-18 14:15:05,171 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:15:05,554 - INFO - taking picture MAIN: 2026-05-18 14:15:05,555 - INFO - we take 465 photos in this while loop MAIN: 2026-05-18 14:15:05,555 - INFO - /home/pi/Desktop/images/18052026/14/14/image_18052026_14_15_04_58932.jpg MAIN: 2026-05-18 14:15:05,555 - INFO - duration: 1.0538935079966905 MAIN: 2026-05-18 14:15:05,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:16: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-05-18 14:16: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-05-18 14:16:05,936 - INFO - taking picture MAIN: 2026-05-18 14:16:05,937 - INFO - we take 466 photos in this while loop MAIN: 2026-05-18 14:16:05,937 - INFO - /home/pi/Desktop/images/18052026/14/15/image_18052026_14_16_05_60380.jpg MAIN: 2026-05-18 14:16:05,937 - INFO - duration: 1.054929906000325 MAIN: 2026-05-18 14:16:05,937 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:17:05,182 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:17:05,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-05-18 14:17:06,158 - INFO - taking picture MAIN: 2026-05-18 14:17:06,159 - INFO - we take 467 photos in this while loop MAIN: 2026-05-18 14:17:06,159 - INFO - /home/pi/Desktop/images/18052026/14/16/image_18052026_14_17_05_60372.jpg MAIN: 2026-05-18 14:17:06,159 - INFO - duration: 0.9045373759945505 MAIN: 2026-05-18 14:17:06,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:18: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-05-18 14:18: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 ! MAIN: 2026-05-18 14:18:06,202 - INFO - taking picture MAIN: 2026-05-18 14:18:06,202 - INFO - we take 468 photos in this while loop MAIN: 2026-05-18 14:18:06,203 - INFO - /home/pi/Desktop/images/18052026/14/17/image_18052026_14_18_05_59989.jpg MAIN: 2026-05-18 14:18:06,203 - INFO - duration: 0.9591717290022643 MAIN: 2026-05-18 14:18:06,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:19: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-05-18 14:19: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-05-18 14:19:06,290 - INFO - taking picture MAIN: 2026-05-18 14:19:06,290 - INFO - we take 469 photos in this while loop MAIN: 2026-05-18 14:19:06,290 - INFO - /home/pi/Desktop/images/18052026/14/18/image_18052026_14_19_05_60010.jpg MAIN: 2026-05-18 14:19:06,290 - INFO - duration: 1.0361026499958825 MAIN: 2026-05-18 14:19:06,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:20: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-05-18 14:20:05,249 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:20:05,657 - INFO - taking picture MAIN: 2026-05-18 14:20:05,657 - INFO - we take 470 photos in this while loop MAIN: 2026-05-18 14:20:05,657 - INFO - /home/pi/Desktop/images/18052026/14/19/image_18052026_14_20_04_59453.jpg MAIN: 2026-05-18 14:20:05,657 - INFO - duration: 0.949515322005027 MAIN: 2026-05-18 14:20:05,658 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:21: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-05-18 14:21:04,874 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:21:05,445 - INFO - taking picture MAIN: 2026-05-18 14:21:05,445 - INFO - we take 471 photos in this while loop MAIN: 2026-05-18 14:21:05,445 - INFO - /home/pi/Desktop/images/18052026/14/20/image_18052026_14_21_04_59779.jpg MAIN: 2026-05-18 14:21:05,445 - INFO - duration: 0.9582796560061979 MAIN: 2026-05-18 14:21:05,446 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:22:04,671 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:22: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-05-18 14:22:05,349 - INFO - taking picture MAIN: 2026-05-18 14:22:05,349 - INFO - we take 472 photos in this while loop MAIN: 2026-05-18 14:22:05,349 - INFO - /home/pi/Desktop/images/18052026/14/21/image_18052026_14_22_04_59940.jpg MAIN: 2026-05-18 14:22:05,349 - INFO - duration: 0.9214213849991211 MAIN: 2026-05-18 14:22:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:23: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-05-18 14:23:05,137 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:23:05,336 - INFO - taking picture MAIN: 2026-05-18 14:23:05,336 - INFO - we take 473 photos in this while loop MAIN: 2026-05-18 14:23:05,336 - INFO - /home/pi/Desktop/images/18052026/14/22/image_18052026_14_23_04_59961.jpg MAIN: 2026-05-18 14:23:05,337 - INFO - duration: 0.9474525940022431 MAIN: 2026-05-18 14:23:05,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:24: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-05-18 14:24:05,348 - INFO - taking picture MAIN: 2026-05-18 14:24:05,349 - INFO - we take 474 photos in this while loop MAIN: 2026-05-18 14:24:05,349 - INFO - /home/pi/Desktop/images/18052026/14/23/image_18052026_14_24_04_60064.jpg MAIN: 2026-05-18 14:24:05,349 - INFO - duration: 0.8958003469961113 MAIN: 2026-05-18 14:24:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/24' MAIN: 2026-05-18 14:24:05,620 - 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-05-18 14:25: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-05-18 14:25:05,574 - INFO - taking picture MAIN: 2026-05-18 14:25:05,574 - INFO - we take 475 photos in this while loop MAIN: 2026-05-18 14:25:05,574 - INFO - /home/pi/Desktop/images/18052026/14/24/image_18052026_14_25_04_60190.jpg MAIN: 2026-05-18 14:25:05,575 - INFO - duration: 0.9304469000053359 MAIN: 2026-05-18 14:25:05,575 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/25' MAIN: 2026-05-18 14:25: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-05-18 14:26: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-05-18 14:26: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-05-18 14:26:05,610 - INFO - taking picture MAIN: 2026-05-18 14:26:05,611 - INFO - we take 476 photos in this while loop MAIN: 2026-05-18 14:26:05,611 - INFO - /home/pi/Desktop/images/18052026/14/25/image_18052026_14_26_04_59947.jpg MAIN: 2026-05-18 14:26:05,611 - INFO - duration: 1.0191627690001042 MAIN: 2026-05-18 14:26:05,611 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:27: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-05-18 14:27: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-05-18 14:27:05,847 - INFO - taking picture MAIN: 2026-05-18 14:27:05,847 - INFO - we take 477 photos in this while loop MAIN: 2026-05-18 14:27:05,847 - INFO - /home/pi/Desktop/images/18052026/14/26/image_18052026_14_27_05_60242.jpg MAIN: 2026-05-18 14:27:05,847 - INFO - duration: 1.0130563210041146 MAIN: 2026-05-18 14:27:05,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:28:05,301 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:28:05,456 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:28:06,215 - INFO - taking picture MAIN: 2026-05-18 14:28:06,215 - INFO - we take 478 photos in this while loop MAIN: 2026-05-18 14:28:06,215 - INFO - /home/pi/Desktop/images/18052026/14/27/image_18052026_14_28_05_60321.jpg MAIN: 2026-05-18 14:28:06,215 - INFO - duration: 1.0592561960002058 MAIN: 2026-05-18 14:28:06,216 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:29:05,086 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:29: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 ! MAIN: 2026-05-18 14:29:05,783 - INFO - taking picture MAIN: 2026-05-18 14:29:05,783 - INFO - we take 479 photos in this while loop MAIN: 2026-05-18 14:29:05,783 - INFO - /home/pi/Desktop/images/18052026/14/28/image_18052026_14_29_05_59656.jpg MAIN: 2026-05-18 14:29:05,783 - INFO - duration: 0.9711909000034211 MAIN: 2026-05-18 14:29:05,784 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:30:05,272 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:30:05,956 - INFO - taking picture MAIN: 2026-05-18 14:30:05,956 - INFO - we take 480 photos in this while loop MAIN: 2026-05-18 14:30:05,956 - INFO - /home/pi/Desktop/images/18052026/14/29/image_18052026_14_30_05_60242.jpg MAIN: 2026-05-18 14:30:05,956 - INFO - duration: 0.901891934001469 MAIN: 2026-05-18 14:30:05,956 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/30' MAIN: 2026-05-18 14:30:06,116 - 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-05-18 14:31: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-05-18 14:31:05,279 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:31:05,967 - INFO - taking picture MAIN: 2026-05-18 14:31:05,967 - INFO - we take 481 photos in this while loop MAIN: 2026-05-18 14:31:05,967 - INFO - /home/pi/Desktop/images/18052026/14/30/image_18052026_14_31_05_60001.jpg MAIN: 2026-05-18 14:31:05,967 - INFO - duration: 0.9121287809975911 MAIN: 2026-05-18 14:31:05,968 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:32: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-05-18 14:32:05,370 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:32:06,060 - INFO - taking picture MAIN: 2026-05-18 14:32:06,060 - INFO - we take 482 photos in this while loop MAIN: 2026-05-18 14:32:06,060 - INFO - /home/pi/Desktop/images/18052026/14/31/image_18052026_14_32_05_60093.jpg MAIN: 2026-05-18 14:32:06,061 - INFO - duration: 0.911822509006015 MAIN: 2026-05-18 14:32:06,061 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:33: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-05-18 14:33:05,402 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:33:06,147 - INFO - taking picture MAIN: 2026-05-18 14:33:06,147 - INFO - we take 483 photos in this while loop MAIN: 2026-05-18 14:33:06,147 - INFO - /home/pi/Desktop/images/18052026/14/32/image_18052026_14_33_05_59967.jpg MAIN: 2026-05-18 14:33:06,147 - INFO - duration: 1.0310503599976073 MAIN: 2026-05-18 14:33:06,148 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:34: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-05-18 14:34:05,470 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:34:06,161 - INFO - taking picture MAIN: 2026-05-18 14:34:06,161 - INFO - we take 484 photos in this while loop MAIN: 2026-05-18 14:34:06,161 - INFO - /home/pi/Desktop/images/18052026/14/33/image_18052026_14_34_05_60063.jpg MAIN: 2026-05-18 14:34:06,161 - INFO - duration: 0.9820591079987935 MAIN: 2026-05-18 14:34:06,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:35: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-05-18 14:35:05,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-05-18 14:35:06,410 - INFO - taking picture MAIN: 2026-05-18 14:35:06,411 - INFO - we take 485 photos in this while loop MAIN: 2026-05-18 14:35:06,411 - INFO - /home/pi/Desktop/images/18052026/14/34/image_18052026_14_35_05_60161.jpg MAIN: 2026-05-18 14:35:06,411 - INFO - duration: 1.0703046019989415 MAIN: 2026-05-18 14:35:06,411 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:36: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-05-18 14:36:05,054 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:36:05,834 - INFO - taking picture MAIN: 2026-05-18 14:36:05,835 - INFO - we take 486 photos in this while loop MAIN: 2026-05-18 14:36:05,835 - INFO - /home/pi/Desktop/images/18052026/14/35/image_18052026_14_36_05_59374.jpg MAIN: 2026-05-18 14:36:05,835 - INFO - duration: 1.120393976001651 MAIN: 2026-05-18 14:36:05,835 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:37: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-05-18 14:37:05,241 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:37:05,945 - INFO - taking picture MAIN: 2026-05-18 14:37:05,946 - INFO - we take 487 photos in this while loop MAIN: 2026-05-18 14:37:05,946 - INFO - /home/pi/Desktop/images/18052026/14/36/image_18052026_14_37_05_60235.jpg MAIN: 2026-05-18 14:37:05,946 - INFO - duration: 0.9956853010007762 MAIN: 2026-05-18 14:37:05,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:38: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-05-18 14:38:05,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-05-18 14:38:06,422 - INFO - taking picture MAIN: 2026-05-18 14:38:06,422 - INFO - we take 488 photos in this while loop MAIN: 2026-05-18 14:38:06,422 - INFO - /home/pi/Desktop/images/18052026/14/37/image_18052026_14_38_05_60547.jpg MAIN: 2026-05-18 14:38:06,422 - INFO - duration: 0.9245722129999194 MAIN: 2026-05-18 14:38:06,422 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:39: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-05-18 14:39: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-05-18 14:39:05,483 - INFO - taking picture MAIN: 2026-05-18 14:39:05,483 - INFO - we take 489 photos in this while loop MAIN: 2026-05-18 14:39:05,483 - INFO - /home/pi/Desktop/images/18052026/14/38/image_18052026_14_39_04_58990.jpg MAIN: 2026-05-18 14:39:05,483 - INFO - duration: 0.9958207640011096 MAIN: 2026-05-18 14:39:05,484 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:40: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-05-18 14:40: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 ! MAIN: 2026-05-18 14:40:06,010 - INFO - taking picture MAIN: 2026-05-18 14:40:06,010 - INFO - we take 490 photos in this while loop MAIN: 2026-05-18 14:40:06,010 - INFO - /home/pi/Desktop/images/18052026/14/39/image_18052026_14_40_05_60553.jpg MAIN: 2026-05-18 14:40:06,010 - INFO - duration: 0.9693852979980875 MAIN: 2026-05-18 14:40:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14: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-05-18 14:41:05,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-05-18 14:41:06,401 - INFO - taking picture MAIN: 2026-05-18 14:41:06,401 - INFO - we take 491 photos in this while loop MAIN: 2026-05-18 14:41:06,401 - INFO - /home/pi/Desktop/images/18052026/14/40/image_18052026_14_41_05_60276.jpg MAIN: 2026-05-18 14:41:06,401 - INFO - duration: 1.083938871997816 MAIN: 2026-05-18 14:41:06,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:42: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-05-18 14:42:05,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 ! MAIN: 2026-05-18 14:42:05,458 - INFO - taking picture MAIN: 2026-05-18 14:42:05,458 - INFO - we take 492 photos in this while loop MAIN: 2026-05-18 14:42:05,458 - INFO - /home/pi/Desktop/images/18052026/14/41/image_18052026_14_42_04_59123.jpg MAIN: 2026-05-18 14:42:05,458 - INFO - duration: 1.0167195009998977 MAIN: 2026-05-18 14:42:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:43: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-05-18 14:43:04,952 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:43:05,414 - INFO - taking picture MAIN: 2026-05-18 14:43:05,415 - INFO - we take 493 photos in this while loop MAIN: 2026-05-18 14:43:05,415 - INFO - /home/pi/Desktop/images/18052026/14/42/image_18052026_14_43_04_59935.jpg MAIN: 2026-05-18 14:43:05,415 - INFO - duration: 1.038663223000185 MAIN: 2026-05-18 14:43:05,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:44: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-05-18 14:44: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-05-18 14:44:06,245 - INFO - taking picture MAIN: 2026-05-18 14:44:06,245 - INFO - we take 494 photos in this while loop MAIN: 2026-05-18 14:44:06,245 - INFO - /home/pi/Desktop/images/18052026/14/43/image_18052026_14_44_05_60897.jpg MAIN: 2026-05-18 14:44:06,245 - INFO - duration: 0.9710697939954116 MAIN: 2026-05-18 14:44:06,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:45: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-05-18 14:45:05,403 - INFO - taking picture MAIN: 2026-05-18 14:45:05,403 - INFO - we take 495 photos in this while loop MAIN: 2026-05-18 14:45:05,403 - INFO - /home/pi/Desktop/images/18052026/14/44/image_18052026_14_45_04_59219.jpg MAIN: 2026-05-18 14:45:05,403 - INFO - duration: 0.9094580749952001 MAIN: 2026-05-18 14:45:05,404 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/45' MAIN: 2026-05-18 14:45: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-05-18 14:46:04,919 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:46:05,611 - INFO - taking picture MAIN: 2026-05-18 14:46:05,611 - INFO - we take 496 photos in this while loop MAIN: 2026-05-18 14:46:05,611 - INFO - /home/pi/Desktop/images/18052026/14/45/image_18052026_14_46_04_60169.jpg MAIN: 2026-05-18 14:46:05,611 - INFO - duration: 0.9480969459982589 MAIN: 2026-05-18 14:46:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/46' MAIN: 2026-05-18 14:46:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 14:47: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-05-18 14:47:05,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-05-18 14:47:05,776 - INFO - taking picture MAIN: 2026-05-18 14:47:05,776 - INFO - we take 497 photos in this while loop MAIN: 2026-05-18 14:47:05,777 - INFO - /home/pi/Desktop/images/18052026/14/46/image_18052026_14_47_05_60043.jpg MAIN: 2026-05-18 14:47:05,777 - INFO - duration: 1.070367398999224 MAIN: 2026-05-18 14:47:05,778 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:48: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-05-18 14:48: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-05-18 14:48:06,168 - INFO - taking picture MAIN: 2026-05-18 14:48:06,168 - INFO - we take 498 photos in this while loop MAIN: 2026-05-18 14:48:06,168 - INFO - /home/pi/Desktop/images/18052026/14/47/image_18052026_14_48_05_60524.jpg MAIN: 2026-05-18 14:48:06,168 - INFO - duration: 0.9367977020010585 MAIN: 2026-05-18 14:48:06,169 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:49:04,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-05-18 14:49:04,951 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:49:05,654 - INFO - taking picture MAIN: 2026-05-18 14:49:05,654 - INFO - we take 499 photos in this while loop MAIN: 2026-05-18 14:49:05,654 - INFO - /home/pi/Desktop/images/18052026/14/48/image_18052026_14_49_04_59459.jpg MAIN: 2026-05-18 14:49:05,654 - INFO - duration: 0.9634124229996814 MAIN: 2026-05-18 14:49:05,655 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/49' MAIN: 2026-05-18 14:50:04,588 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 14:50:05,298 - INFO - taking picture MAIN: 2026-05-18 14:50:05,299 - INFO - we take 500 photos in this while loop MAIN: 2026-05-18 14:50:05,299 - INFO - /home/pi/Desktop/images/18052026/14/49/image_18052026_14_50_04_59669.jpg MAIN: 2026-05-18 14:50:05,299 - INFO - duration: 0.9382857890013838 MAIN: 2026-05-18 14:50:05,299 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/50' MAIN: 2026-05-18 14:50:05,675 - 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-05-18 14:51: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-05-18 14:51:05,487 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 14:51:05,729 - INFO - taking picture MAIN: 2026-05-18 14:51:05,729 - INFO - we take 501 photos in this while loop MAIN: 2026-05-18 14:51:05,729 - INFO - /home/pi/Desktop/images/18052026/14/50/image_18052026_14_51_05_60360.jpg MAIN: 2026-05-18 14:51:05,729 - INFO - duration: 1.0084543050033972 MAIN: 2026-05-18 14:51:05,730 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:52:05,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-05-18 14:52:05,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-05-18 14:52:06,498 - INFO - taking picture MAIN: 2026-05-18 14:52:06,499 - INFO - we take 502 photos in this while loop MAIN: 2026-05-18 14:52:06,499 - INFO - /home/pi/Desktop/images/18052026/14/51/image_18052026_14_52_05_60775.jpg MAIN: 2026-05-18 14:52:06,499 - INFO - duration: 1.0025715209994814 MAIN: 2026-05-18 14:52:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:53: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-05-18 14:53: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-05-18 14:53:05,954 - INFO - taking picture MAIN: 2026-05-18 14:53:05,954 - INFO - we take 503 photos in this while loop MAIN: 2026-05-18 14:53:05,954 - INFO - /home/pi/Desktop/images/18052026/14/52/image_18052026_14_53_05_59409.jpg MAIN: 2026-05-18 14:53:05,954 - INFO - duration: 1.048712074996729 MAIN: 2026-05-18 14:53:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:54: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-05-18 14:54: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-05-18 14:54:05,354 - INFO - taking picture MAIN: 2026-05-18 14:54:05,355 - INFO - we take 504 photos in this while loop MAIN: 2026-05-18 14:54:05,355 - INFO - /home/pi/Desktop/images/18052026/14/53/image_18052026_14_54_04_59449.jpg MAIN: 2026-05-18 14:54:05,355 - INFO - duration: 1.0002016329963226 MAIN: 2026-05-18 14:54:05,355 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:55: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-05-18 14:55: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-05-18 14:55:06,084 - INFO - taking picture MAIN: 2026-05-18 14:55:06,084 - INFO - we take 505 photos in this while loop MAIN: 2026-05-18 14:55:06,085 - INFO - /home/pi/Desktop/images/18052026/14/54/image_18052026_14_55_05_60628.jpg MAIN: 2026-05-18 14:55:06,085 - INFO - duration: 1.1010448559973156 MAIN: 2026-05-18 14:55:06,085 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:56: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-05-18 14:56: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-05-18 14:56:05,694 - INFO - taking picture MAIN: 2026-05-18 14:56:05,694 - INFO - we take 506 photos in this while loop MAIN: 2026-05-18 14:56:05,695 - INFO - /home/pi/Desktop/images/18052026/14/55/image_18052026_14_56_04_59710.jpg MAIN: 2026-05-18 14:56:05,695 - INFO - duration: 1.0003543159982655 MAIN: 2026-05-18 14:56:05,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:57: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-05-18 14:57: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-05-18 14:57:06,173 - INFO - taking picture MAIN: 2026-05-18 14:57:06,173 - INFO - we take 507 photos in this while loop MAIN: 2026-05-18 14:57:06,173 - INFO - /home/pi/Desktop/images/18052026/14/56/image_18052026_14_57_05_60477.jpg MAIN: 2026-05-18 14:57:06,174 - INFO - duration: 1.0020267329964554 MAIN: 2026-05-18 14:57:06,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 14:58:04,923 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 14:58: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 ! MAIN: 2026-05-18 14:58:05,641 - INFO - taking picture MAIN: 2026-05-18 14:58:05,642 - INFO - we take 508 photos in this while loop MAIN: 2026-05-18 14:58:05,642 - INFO - /home/pi/Desktop/images/18052026/14/57/image_18052026_14_58_04_59492.jpg MAIN: 2026-05-18 14:58:05,642 - INFO - duration: 0.9784684549958911 MAIN: 2026-05-18 14:58:05,643 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 14:59: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-05-18 14:59:05,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-05-18 14:59:06,206 - INFO - taking picture MAIN: 2026-05-18 14:59:06,207 - INFO - we take 509 photos in this while loop MAIN: 2026-05-18 14:59:06,207 - INFO - /home/pi/Desktop/images/18052026/14/58/image_18052026_14_59_05_60586.jpg MAIN: 2026-05-18 14:59:06,207 - INFO - duration: 0.956436048996693 MAIN: 2026-05-18 14:59:06,207 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/14/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-05-18 15:00: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-05-18 15:00: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 ! MAIN: 2026-05-18 15:00:05,598 - INFO - taking picture MAIN: 2026-05-18 15:00:05,599 - INFO - we take 510 photos in this while loop MAIN: 2026-05-18 15:00:05,599 - INFO - /home/pi/Desktop/images/18052026/14/59/image_18052026_15_00_04_59341.jpg MAIN: 2026-05-18 15:00:05,599 - INFO - duration: 1.0070899709971854 MAIN: 2026-05-18 15:00:05,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:01:05,233 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:01: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-05-18 15:01:05,954 - INFO - taking picture MAIN: 2026-05-18 15:01:05,954 - INFO - we take 511 photos in this while loop MAIN: 2026-05-18 15:01:05,954 - INFO - /home/pi/Desktop/images/18052026/15/00/image_18052026_15_01_05_60327.jpg MAIN: 2026-05-18 15:01:05,954 - INFO - duration: 1.0345125919993734 MAIN: 2026-05-18 15:01:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:02: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-05-18 15:02: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-05-18 15:02:05,551 - INFO - taking picture MAIN: 2026-05-18 15:02:05,552 - INFO - we take 512 photos in this while loop MAIN: 2026-05-18 15:02:05,552 - INFO - /home/pi/Desktop/images/18052026/15/01/image_18052026_15_02_04_59655.jpg MAIN: 2026-05-18 15:02:05,552 - INFO - duration: 0.9763936920062406 MAIN: 2026-05-18 15:02:05,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:03: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-05-18 15:03:05,380 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:03:05,958 - INFO - taking picture MAIN: 2026-05-18 15:03:05,958 - INFO - we take 513 photos in this while loop MAIN: 2026-05-18 15:03:05,958 - INFO - /home/pi/Desktop/images/18052026/15/02/image_18052026_15_03_05_60371.jpg MAIN: 2026-05-18 15:03:05,958 - INFO - duration: 1.011155827996845 MAIN: 2026-05-18 15:03:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:04: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-05-18 15:04:05,598 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:04:06,221 - INFO - taking picture MAIN: 2026-05-18 15:04:06,222 - INFO - we take 514 photos in this while loop MAIN: 2026-05-18 15:04:06,222 - INFO - /home/pi/Desktop/images/18052026/15/03/image_18052026_15_04_05_60270.jpg MAIN: 2026-05-18 15:04:06,222 - INFO - duration: 1.0044564999989234 MAIN: 2026-05-18 15:04:06,222 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/04' MAIN: 2026-05-18 15:05:04,599 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 15:05:05,348 - INFO - taking picture MAIN: 2026-05-18 15:05:05,348 - INFO - we take 515 photos in this while loop MAIN: 2026-05-18 15:05:05,348 - INFO - /home/pi/Desktop/images/18052026/15/04/image_18052026_15_05_04_59119.jpg MAIN: 2026-05-18 15:05:05,349 - INFO - duration: 1.0115357370013953 MAIN: 2026-05-18 15:05:05,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/05' MAIN: 2026-05-18 15:05:06,044 - 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-05-18 15:06: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-05-18 15:06:05,154 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:06:05,539 - INFO - taking picture MAIN: 2026-05-18 15:06:05,539 - INFO - we take 516 photos in this while loop MAIN: 2026-05-18 15:06:05,539 - INFO - /home/pi/Desktop/images/18052026/15/05/image_18052026_15_06_04_60248.jpg MAIN: 2026-05-18 15:06:05,540 - INFO - duration: 0.9540428609980154 MAIN: 2026-05-18 15:06:05,540 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:07: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-05-18 15:07:04,885 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:07:05,557 - INFO - taking picture MAIN: 2026-05-18 15:07:05,557 - INFO - we take 517 photos in this while loop MAIN: 2026-05-18 15:07:05,557 - INFO - /home/pi/Desktop/images/18052026/15/06/image_18052026_15_07_04_59959.jpg MAIN: 2026-05-18 15:07:05,558 - INFO - duration: 1.0127389469998889 MAIN: 2026-05-18 15:07:05,558 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:08:04,895 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:08: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-05-18 15:08:05,593 - INFO - taking picture MAIN: 2026-05-18 15:08:05,593 - INFO - we take 518 photos in this while loop MAIN: 2026-05-18 15:08:05,593 - INFO - /home/pi/Desktop/images/18052026/15/07/image_18052026_15_08_04_60130.jpg MAIN: 2026-05-18 15:08:05,593 - INFO - duration: 0.9176187859993661 MAIN: 2026-05-18 15:08:05,594 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:09:05,204 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:09:05,510 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:09:05,906 - INFO - taking picture MAIN: 2026-05-18 15:09:05,906 - INFO - we take 519 photos in this while loop MAIN: 2026-05-18 15:09:05,906 - INFO - /home/pi/Desktop/images/18052026/15/08/image_18052026_15_09_05_60246.jpg MAIN: 2026-05-18 15:09:05,906 - INFO - duration: 0.9840236000018194 MAIN: 2026-05-18 15:09:05,906 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:10:05,246 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:10:05,935 - INFO - taking picture MAIN: 2026-05-18 15:10:05,936 - INFO - we take 520 photos in this while loop MAIN: 2026-05-18 15:10:05,936 - INFO - /home/pi/Desktop/images/18052026/15/09/image_18052026_15_10_05_60103.jpg MAIN: 2026-05-18 15:10:05,936 - INFO - duration: 0.9106703440047568 MAIN: 2026-05-18 15:10:05,936 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/10' MAIN: 2026-05-18 15:10:06,175 - 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-05-18 15:11: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-05-18 15:11: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-05-18 15:11:05,862 - INFO - taking picture MAIN: 2026-05-18 15:11:05,862 - INFO - we take 521 photos in this while loop MAIN: 2026-05-18 15:11:05,862 - INFO - /home/pi/Desktop/images/18052026/15/10/image_18052026_15_11_05_59889.jpg MAIN: 2026-05-18 15:11:05,862 - INFO - duration: 0.947632055998838 MAIN: 2026-05-18 15:11:05,863 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:12: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-05-18 15:12:05,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-05-18 15:12:06,323 - INFO - taking picture MAIN: 2026-05-18 15:12:06,323 - INFO - we take 522 photos in this while loop MAIN: 2026-05-18 15:12:06,323 - INFO - /home/pi/Desktop/images/18052026/15/11/image_18052026_15_12_05_60501.jpg MAIN: 2026-05-18 15:12:06,323 - INFO - duration: 0.9076285150003969 MAIN: 2026-05-18 15:12:06,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:13: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-05-18 15:13: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-05-18 15:13:06,191 - INFO - taking picture MAIN: 2026-05-18 15:13:06,191 - INFO - we take 523 photos in this while loop MAIN: 2026-05-18 15:13:06,191 - INFO - /home/pi/Desktop/images/18052026/15/12/image_18052026_15_13_05_59865.jpg MAIN: 2026-05-18 15:13:06,191 - INFO - duration: 0.9093324799978291 MAIN: 2026-05-18 15:13:06,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:14:04,693 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:14:05,377 - INFO - taking picture MAIN: 2026-05-18 15:14:05,377 - INFO - we take 524 photos in this while loop MAIN: 2026-05-18 15:14:05,377 - INFO - /home/pi/Desktop/images/18052026/15/13/image_18052026_15_14_04_59155.jpg MAIN: 2026-05-18 15:14:05,377 - INFO - duration: 0.9401561010017758 MAIN: 2026-05-18 15:14:05,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/14' MAIN: 2026-05-18 15:14: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:15: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-05-18 15:15:05,463 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:15:05,490 - INFO - taking picture MAIN: 2026-05-18 15:15:05,491 - INFO - we take 525 photos in this while loop MAIN: 2026-05-18 15:15:05,491 - INFO - /home/pi/Desktop/images/18052026/15/14/image_18052026_15_15_04_60106.jpg MAIN: 2026-05-18 15:15:05,491 - INFO - duration: 0.9478715560035198 MAIN: 2026-05-18 15:15:05,492 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/15' MAIN: 2026-05-18 15:16:04,825 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 15:16:05,553 - INFO - taking picture MAIN: 2026-05-18 15:16:05,553 - INFO - we take 526 photos in this while loop MAIN: 2026-05-18 15:16:05,553 - INFO - /home/pi/Desktop/images/18052026/15/15/image_18052026_15_16_04_60047.jpg MAIN: 2026-05-18 15:16:05,553 - INFO - duration: 0.9618032219950692 MAIN: 2026-05-18 15:16:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/16' MAIN: 2026-05-18 15:16:05,948 - 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-05-18 15:17:04,770 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:17: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-05-18 15:17:05,468 - INFO - taking picture MAIN: 2026-05-18 15:17:05,468 - INFO - we take 527 photos in this while loop MAIN: 2026-05-18 15:17:05,468 - INFO - /home/pi/Desktop/images/18052026/15/16/image_18052026_15_17_04_59903.jpg MAIN: 2026-05-18 15:17:05,468 - INFO - duration: 0.9738867209962336 MAIN: 2026-05-18 15:17:05,469 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:18:04,777 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:18:05,086 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:18:05,474 - INFO - taking picture MAIN: 2026-05-18 15:18:05,474 - INFO - we take 528 photos in this while loop MAIN: 2026-05-18 15:18:05,475 - INFO - /home/pi/Desktop/images/18052026/15/17/image_18052026_15_18_04_60002.jpg MAIN: 2026-05-18 15:18:05,475 - INFO - duration: 0.9776309890003176 MAIN: 2026-05-18 15:18:05,475 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:19:04,916 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:19: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-05-18 15:19:05,610 - INFO - taking picture MAIN: 2026-05-18 15:19:05,610 - INFO - we take 529 photos in this while loop MAIN: 2026-05-18 15:19:05,610 - INFO - /home/pi/Desktop/images/18052026/15/18/image_18052026_15_19_04_60143.jpg MAIN: 2026-05-18 15:19:05,611 - INFO - duration: 0.9695867319969693 MAIN: 2026-05-18 15:19:05,611 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:20: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-05-18 15:20:05,809 - INFO - taking picture MAIN: 2026-05-18 15:20:05,809 - INFO - we take 530 photos in this while loop MAIN: 2026-05-18 15:20:05,810 - INFO - /home/pi/Desktop/images/18052026/15/19/image_18052026_15_20_05_60264.jpg MAIN: 2026-05-18 15:20:05,810 - INFO - duration: 0.90449347399408 MAIN: 2026-05-18 15:20:05,810 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/20' MAIN: 2026-05-18 15:20:05,873 - 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-05-18 15:21:05,085 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:21:05,539 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:21:05,777 - INFO - taking picture MAIN: 2026-05-18 15:21:05,778 - INFO - we take 531 photos in this while loop MAIN: 2026-05-18 15:21:05,778 - INFO - /home/pi/Desktop/images/18052026/15/20/image_18052026_15_21_05_59909.jpg MAIN: 2026-05-18 15:21:05,778 - INFO - duration: 0.9630025309961638 MAIN: 2026-05-18 15:21:05,778 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:22:05,153 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:22:05,831 - INFO - taking picture MAIN: 2026-05-18 15:22:05,831 - INFO - we take 532 photos in this while loop MAIN: 2026-05-18 15:22:05,831 - INFO - /home/pi/Desktop/images/18052026/15/21/image_18052026_15_22_05_60080.jpg MAIN: 2026-05-18 15:22:05,831 - INFO - duration: 0.9355567910024547 MAIN: 2026-05-18 15:22:05,832 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/22' MAIN: 2026-05-18 15:22:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:23: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-05-18 15:23: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-05-18 15:23:05,694 - INFO - taking picture MAIN: 2026-05-18 15:23:05,694 - INFO - we take 533 photos in this while loop MAIN: 2026-05-18 15:23:05,694 - INFO - /home/pi/Desktop/images/18052026/15/22/image_18052026_15_23_04_59768.jpg MAIN: 2026-05-18 15:23:05,694 - INFO - duration: 1.0306578380041174 MAIN: 2026-05-18 15:23:05,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:24: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-05-18 15:24: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-05-18 15:24:05,817 - INFO - taking picture MAIN: 2026-05-18 15:24:05,817 - INFO - we take 534 photos in this while loop MAIN: 2026-05-18 15:24:05,817 - INFO - /home/pi/Desktop/images/18052026/15/23/image_18052026_15_24_05_60092.jpg MAIN: 2026-05-18 15:24:05,818 - INFO - duration: 1.0608243590031634 MAIN: 2026-05-18 15:24:05,818 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:25:05,080 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:25: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-05-18 15:25:05,768 - INFO - taking picture MAIN: 2026-05-18 15:25:05,769 - INFO - we take 535 photos in this while loop MAIN: 2026-05-18 15:25:05,769 - INFO - /home/pi/Desktop/images/18052026/15/24/image_18052026_15_25_05_60046.jpg MAIN: 2026-05-18 15:25:05,769 - INFO - duration: 0.966222873001243 MAIN: 2026-05-18 15:25:05,769 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:26:05,329 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:26:05,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-05-18 15:26:06,176 - INFO - taking picture MAIN: 2026-05-18 15:26:06,176 - INFO - we take 536 photos in this while loop MAIN: 2026-05-18 15:26:06,176 - INFO - /home/pi/Desktop/images/18052026/15/25/image_18052026_15_26_05_60416.jpg MAIN: 2026-05-18 15:26:06,177 - INFO - duration: 0.9575177849983447 MAIN: 2026-05-18 15:26:06,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:27:05,351 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:27: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-05-18 15:27:06,050 - INFO - taking picture MAIN: 2026-05-18 15:27:06,051 - INFO - we take 537 photos in this while loop MAIN: 2026-05-18 15:27:06,051 - INFO - /home/pi/Desktop/images/18052026/15/26/image_18052026_15_27_05_59862.jpg MAIN: 2026-05-18 15:27:06,051 - INFO - duration: 0.9693718400012585 MAIN: 2026-05-18 15:27:06,051 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:28:05,357 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:28: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 ! MAIN: 2026-05-18 15:28:06,046 - INFO - taking picture MAIN: 2026-05-18 15:28:06,046 - INFO - we take 538 photos in this while loop MAIN: 2026-05-18 15:28:06,046 - INFO - /home/pi/Desktop/images/18052026/15/27/image_18052026_15_28_05_60023.jpg MAIN: 2026-05-18 15:28:06,046 - INFO - duration: 0.9411420519973035 MAIN: 2026-05-18 15:28:06,047 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:29:05,404 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:29: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 ! MAIN: 2026-05-18 15:29:06,090 - INFO - taking picture MAIN: 2026-05-18 15:29:06,091 - INFO - we take 539 photos in this while loop MAIN: 2026-05-18 15:29:06,091 - INFO - /home/pi/Desktop/images/18052026/15/28/image_18052026_15_29_05_60016.jpg MAIN: 2026-05-18 15:29:06,091 - INFO - duration: 0.96973046399944 MAIN: 2026-05-18 15:29:06,091 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:30:05,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-05-18 15:30:05,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-05-18 15:30:06,461 - INFO - taking picture MAIN: 2026-05-18 15:30:06,461 - INFO - we take 540 photos in this while loop MAIN: 2026-05-18 15:30:06,461 - INFO - /home/pi/Desktop/images/18052026/15/29/image_18052026_15_30_05_60290.jpg MAIN: 2026-05-18 15:30:06,461 - INFO - duration: 1.0496466859985958 MAIN: 2026-05-18 15:30:06,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:31:05,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 ! MAIN: 2026-05-18 15:31:05,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-05-18 15:31:06,393 - INFO - taking picture MAIN: 2026-05-18 15:31:06,393 - INFO - we take 541 photos in this while loop MAIN: 2026-05-18 15:31:06,394 - INFO - /home/pi/Desktop/images/18052026/15/30/image_18052026_15_31_05_60052.jpg MAIN: 2026-05-18 15:31:06,394 - INFO - duration: 0.9299491029960336 MAIN: 2026-05-18 15:31:06,394 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/31' MAIN: 2026-05-18 15:32: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:32:05,356 - INFO - taking picture MAIN: 2026-05-18 15:32:05,357 - INFO - we take 542 photos in this while loop MAIN: 2026-05-18 15:32:05,357 - INFO - /home/pi/Desktop/images/18052026/15/31/image_18052026_15_32_04_58959.jpg MAIN: 2026-05-18 15:32:05,357 - INFO - duration: 0.9338862110016635 MAIN: 2026-05-18 15:32:05,357 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/32' MAIN: 2026-05-18 15:32:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:33: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-05-18 15:33:05,268 - INFO - taking picture MAIN: 2026-05-18 15:33:05,268 - INFO - we take 543 photos in this while loop MAIN: 2026-05-18 15:33:05,268 - INFO - /home/pi/Desktop/images/18052026/15/32/image_18052026_15_33_04_59908.jpg MAIN: 2026-05-18 15:33:05,268 - INFO - duration: 0.9366527120000683 MAIN: 2026-05-18 15:33:05,269 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/33' MAIN: 2026-05-18 15:33: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:34: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-05-18 15:34:04,959 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:34:05,367 - INFO - taking picture MAIN: 2026-05-18 15:34:05,368 - INFO - we take 544 photos in this while loop MAIN: 2026-05-18 15:34:05,368 - INFO - /home/pi/Desktop/images/18052026/15/33/image_18052026_15_34_04_60100.jpg MAIN: 2026-05-18 15:34:05,368 - INFO - duration: 0.9354948039981537 MAIN: 2026-05-18 15:34:05,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:35:04,681 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:35:04,816 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:35:05,368 - INFO - taking picture MAIN: 2026-05-18 15:35:05,368 - INFO - we take 545 photos in this while loop MAIN: 2026-05-18 15:35:05,369 - INFO - /home/pi/Desktop/images/18052026/15/34/image_18052026_15_35_04_59966.jpg MAIN: 2026-05-18 15:35:05,369 - INFO - duration: 0.9693561009989935 MAIN: 2026-05-18 15:35:05,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:36: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-05-18 15:36: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-05-18 15:36:05,638 - INFO - taking picture MAIN: 2026-05-18 15:36:05,638 - INFO - we take 546 photos in this while loop MAIN: 2026-05-18 15:36:05,639 - INFO - /home/pi/Desktop/images/18052026/15/35/image_18052026_15_36_04_60190.jpg MAIN: 2026-05-18 15:36:05,639 - INFO - duration: 1.0485449389962014 MAIN: 2026-05-18 15:36:05,639 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:37: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-05-18 15:37: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-05-18 15:37:05,502 - INFO - taking picture MAIN: 2026-05-18 15:37:05,503 - INFO - we take 547 photos in this while loop MAIN: 2026-05-18 15:37:05,503 - INFO - /home/pi/Desktop/images/18052026/15/36/image_18052026_15_37_04_59967.jpg MAIN: 2026-05-18 15:37:05,503 - INFO - duration: 0.9454803629996604 MAIN: 2026-05-18 15:37:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:38:04,924 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:38:05,677 - INFO - taking picture MAIN: 2026-05-18 15:38:05,677 - INFO - we take 548 photos in this while loop MAIN: 2026-05-18 15:38:05,677 - INFO - /home/pi/Desktop/images/18052026/15/37/image_18052026_15_38_04_60087.jpg MAIN: 2026-05-18 15:38:05,677 - INFO - duration: 1.032449495003675 MAIN: 2026-05-18 15:38:05,678 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/38' MAIN: 2026-05-18 15:38:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:39:04,880 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:39: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-05-18 15:39:05,651 - INFO - taking picture MAIN: 2026-05-18 15:39:05,651 - INFO - we take 549 photos in this while loop MAIN: 2026-05-18 15:39:05,651 - INFO - /home/pi/Desktop/images/18052026/15/38/image_18052026_15_39_04_60033.jpg MAIN: 2026-05-18 15:39:05,651 - INFO - duration: 0.9726132659998257 MAIN: 2026-05-18 15:39:05,652 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:40: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-05-18 15:40: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-05-18 15:40:05,817 - INFO - taking picture MAIN: 2026-05-18 15:40:05,818 - INFO - we take 550 photos in this while loop MAIN: 2026-05-18 15:40:05,818 - INFO - /home/pi/Desktop/images/18052026/15/39/image_18052026_15_40_05_60098.jpg MAIN: 2026-05-18 15:40:05,818 - INFO - duration: 1.0406512369954726 MAIN: 2026-05-18 15:40:05,818 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 15:41:04,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 ! MAIN: 2026-05-18 15:41: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-05-18 15:41:05,847 - INFO - taking picture MAIN: 2026-05-18 15:41:05,847 - INFO - we take 551 photos in this while loop MAIN: 2026-05-18 15:41:05,848 - INFO - /home/pi/Desktop/images/18052026/15/40/image_18052026_15_41_05_60129.jpg MAIN: 2026-05-18 15:41:05,848 - INFO - duration: 0.9409099900003639 MAIN: 2026-05-18 15:41:05,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:42: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-05-18 15:42: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-05-18 15:42:05,793 - INFO - taking picture MAIN: 2026-05-18 15:42:05,794 - INFO - we take 552 photos in this while loop MAIN: 2026-05-18 15:42:05,794 - INFO - /home/pi/Desktop/images/18052026/15/41/image_18052026_15_42_05_59941.jpg MAIN: 2026-05-18 15:42:05,794 - INFO - duration: 0.9455799130009837 MAIN: 2026-05-18 15:42:05,794 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:43: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-05-18 15:43:05,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-05-18 15:43:06,241 - INFO - taking picture MAIN: 2026-05-18 15:43:06,241 - INFO - we take 553 photos in this while loop MAIN: 2026-05-18 15:43:06,241 - INFO - /home/pi/Desktop/images/18052026/15/42/image_18052026_15_43_05_60404.jpg MAIN: 2026-05-18 15:43:06,241 - INFO - duration: 0.9882311019973713 MAIN: 2026-05-18 15:43:06,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:44: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-05-18 15:44:05,732 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:44:06,177 - INFO - taking picture MAIN: 2026-05-18 15:44:06,177 - INFO - we take 554 photos in this while loop MAIN: 2026-05-18 15:44:06,177 - INFO - /home/pi/Desktop/images/18052026/15/43/image_18052026_15_44_05_59965.jpg MAIN: 2026-05-18 15:44:06,177 - INFO - duration: 0.9595268679986475 MAIN: 2026-05-18 15:44:06,178 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:45: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-05-18 15:45: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-05-18 15:45:06,127 - INFO - taking picture MAIN: 2026-05-18 15:45:06,128 - INFO - we take 555 photos in this while loop MAIN: 2026-05-18 15:45:06,128 - INFO - /home/pi/Desktop/images/18052026/15/44/image_18052026_15_45_05_60009.jpg MAIN: 2026-05-18 15:45:06,128 - INFO - duration: 0.9008206260041334 MAIN: 2026-05-18 15:45:06,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:46: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-05-18 15:46: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-05-18 15:46:06,222 - INFO - taking picture MAIN: 2026-05-18 15:46:06,223 - INFO - we take 556 photos in this while loop MAIN: 2026-05-18 15:46:06,223 - INFO - /home/pi/Desktop/images/18052026/15/45/image_18052026_15_46_05_60101.jpg MAIN: 2026-05-18 15:46:06,223 - INFO - duration: 0.8947932660012157 MAIN: 2026-05-18 15:46:06,223 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:47:04,995 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:47:05,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-05-18 15:47:06,466 - INFO - taking picture MAIN: 2026-05-18 15:47:06,466 - INFO - we take 557 photos in this while loop MAIN: 2026-05-18 15:47:06,466 - INFO - /home/pi/Desktop/images/18052026/15/46/image_18052026_15_47_05_60096.jpg MAIN: 2026-05-18 15:47:06,466 - INFO - duration: 1.0416017739989911 MAIN: 2026-05-18 15:47:06,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:48: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 MAIN: 2026-05-18 15:48:05,361 - INFO - taking picture MAIN: 2026-05-18 15:48:05,361 - INFO - we take 558 photos in this while loop MAIN: 2026-05-18 15:48:05,361 - INFO - /home/pi/Desktop/images/18052026/15/47/image_18052026_15_48_04_58975.jpg MAIN: 2026-05-18 15:48:05,361 - INFO - duration: 0.9610830379970139 MAIN: 2026-05-18 15:48:05,362 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/48' MAIN: 2026-05-18 15:48:05,648 - 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-05-18 15:49: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-05-18 15:49:05,340 - INFO - taking picture MAIN: 2026-05-18 15:49:05,341 - INFO - we take 559 photos in this while loop MAIN: 2026-05-18 15:49:05,341 - INFO - /home/pi/Desktop/images/18052026/15/48/image_18052026_15_49_04_59997.jpg MAIN: 2026-05-18 15:49:05,341 - INFO - duration: 0.9435647239952232 MAIN: 2026-05-18 15:49:05,341 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/49' MAIN: 2026-05-18 15:49: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 ! MAIN: 2026-05-18 15:50:04,695 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 15:50:05,377 - INFO - taking picture MAIN: 2026-05-18 15:50:05,377 - INFO - we take 560 photos in this while loop MAIN: 2026-05-18 15:50:05,377 - INFO - /home/pi/Desktop/images/18052026/15/49/image_18052026_15_50_04_60043.jpg MAIN: 2026-05-18 15:50:05,377 - INFO - duration: 0.9362823890041909 MAIN: 2026-05-18 15:50:05,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/50' MAIN: 2026-05-18 15:50:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:51:04,844 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:51:05,743 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:51:06,421 - INFO - taking picture MAIN: 2026-05-18 15:51:06,421 - INFO - we take 561 photos in this while loop MAIN: 2026-05-18 15:51:06,422 - INFO - /home/pi/Desktop/images/18052026/15/50/image_18052026_15_51_05_61048.jpg MAIN: 2026-05-18 15:51:06,422 - INFO - duration: 0.9318225789975259 MAIN: 2026-05-18 15:51:06,422 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:52: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-05-18 15:52:05,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-05-18 15:52:06,599 - INFO - taking picture MAIN: 2026-05-18 15:52:06,600 - INFO - we take 562 photos in this while loop MAIN: 2026-05-18 15:52:06,600 - INFO - /home/pi/Desktop/images/18052026/15/51/image_18052026_15_52_05_60102.jpg MAIN: 2026-05-18 15:52:06,600 - INFO - duration: 1.007970539998496 MAIN: 2026-05-18 15:52:06,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:53:04,795 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:53:05,370 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:53:05,480 - INFO - taking picture MAIN: 2026-05-18 15:53:05,480 - INFO - we take 563 photos in this while loop MAIN: 2026-05-18 15:53:05,480 - INFO - /home/pi/Desktop/images/18052026/15/52/image_18052026_15_53_04_58930.jpg MAIN: 2026-05-18 15:53:05,481 - INFO - duration: 0.9575431320045027 MAIN: 2026-05-18 15:53:05,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:54:04,913 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:54: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-05-18 15:54:05,599 - INFO - taking picture MAIN: 2026-05-18 15:54:05,599 - INFO - we take 564 photos in this while loop MAIN: 2026-05-18 15:54:05,599 - INFO - /home/pi/Desktop/images/18052026/15/53/image_18052026_15_54_04_60111.jpg MAIN: 2026-05-18 15:54:05,600 - INFO - duration: 0.9653223439963767 MAIN: 2026-05-18 15:54:05,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:55:04,999 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 15:55:05,675 - INFO - taking picture MAIN: 2026-05-18 15:55:05,675 - INFO - we take 565 photos in this while loop MAIN: 2026-05-18 15:55:05,675 - INFO - /home/pi/Desktop/images/18052026/15/54/image_18052026_15_55_05_60107.jpg MAIN: 2026-05-18 15:55:05,675 - INFO - duration: 0.9332536520014401 MAIN: 2026-05-18 15:55:05,676 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/55' MAIN: 2026-05-18 15:55:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 15:56: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-05-18 15:56: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-05-18 15:56:05,976 - INFO - taking picture MAIN: 2026-05-18 15:56:05,976 - INFO - we take 566 photos in this while loop MAIN: 2026-05-18 15:56:05,976 - INFO - /home/pi/Desktop/images/18052026/15/55/image_18052026_15_56_05_60228.jpg MAIN: 2026-05-18 15:56:05,977 - INFO - duration: 1.0064837129975786 MAIN: 2026-05-18 15:56:05,977 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:57:04,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 ! MAIN: 2026-05-18 15:57: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-05-18 15:57:06,036 - INFO - taking picture MAIN: 2026-05-18 15:57:06,036 - INFO - we take 567 photos in this while loop MAIN: 2026-05-18 15:57:06,036 - INFO - /home/pi/Desktop/images/18052026/15/56/image_18052026_15_57_05_60167.jpg MAIN: 2026-05-18 15:57:06,036 - INFO - duration: 0.898886955998023 MAIN: 2026-05-18 15:57:06,037 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15:58:05,130 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 15:58: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-05-18 15:58:06,430 - INFO - taking picture MAIN: 2026-05-18 15:58:06,431 - INFO - we take 568 photos in this while loop MAIN: 2026-05-18 15:58:06,431 - INFO - /home/pi/Desktop/images/18052026/15/57/image_18052026_15_58_05_60296.jpg MAIN: 2026-05-18 15:58:06,431 - INFO - duration: 0.9969557180011179 MAIN: 2026-05-18 15:58:06,431 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 15: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-05-18 15:59:05,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-05-18 15:59:06,357 - INFO - taking picture MAIN: 2026-05-18 15:59:06,357 - INFO - we take 569 photos in this while loop MAIN: 2026-05-18 15:59:06,357 - INFO - /home/pi/Desktop/images/18052026/15/58/image_18052026_15_59_05_60024.jpg MAIN: 2026-05-18 15:59:06,357 - INFO - duration: 0.8992009900030098 MAIN: 2026-05-18 15:59:06,358 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/15/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-05-18 16:00:04,711 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:00:05,427 - INFO - taking picture MAIN: 2026-05-18 16:00:05,427 - INFO - we take 570 photos in this while loop MAIN: 2026-05-18 16:00:05,427 - INFO - /home/pi/Desktop/images/18052026/15/59/image_18052026_16_00_04_59033.jpg MAIN: 2026-05-18 16:00:05,427 - INFO - duration: 0.9352917090000119 MAIN: 2026-05-18 16:00:05,427 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/00' MAIN: 2026-05-18 16:00: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-05-18 16:01: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-05-18 16:01:05,157 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:01:05,494 - INFO - taking picture MAIN: 2026-05-18 16:01:05,494 - INFO - we take 571 photos in this while loop MAIN: 2026-05-18 16:01:05,494 - INFO - /home/pi/Desktop/images/18052026/16/00/image_18052026_16_01_04_60036.jpg MAIN: 2026-05-18 16:01:05,495 - INFO - duration: 0.9661138170049526 MAIN: 2026-05-18 16:01:05,495 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:02:04,994 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:02: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-05-18 16:02:05,687 - INFO - taking picture MAIN: 2026-05-18 16:02:05,687 - INFO - we take 572 photos in this while loop MAIN: 2026-05-18 16:02:05,687 - INFO - /home/pi/Desktop/images/18052026/16/01/image_18052026_16_02_04_60188.jpg MAIN: 2026-05-18 16:02:05,687 - INFO - duration: 0.9700474909986951 MAIN: 2026-05-18 16:02:05,687 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:03:04,901 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:03: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-05-18 16:03:05,594 - INFO - taking picture MAIN: 2026-05-18 16:03:05,594 - INFO - we take 573 photos in this while loop MAIN: 2026-05-18 16:03:05,595 - INFO - /home/pi/Desktop/images/18052026/16/02/image_18052026_16_03_04_59916.jpg MAIN: 2026-05-18 16:03:05,595 - INFO - duration: 0.9613964849995682 MAIN: 2026-05-18 16:03:05,595 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:04:05,053 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:04:05,732 - INFO - taking picture MAIN: 2026-05-18 16:04:05,733 - INFO - we take 574 photos in this while loop MAIN: 2026-05-18 16:04:05,733 - INFO - /home/pi/Desktop/images/18052026/16/03/image_18052026_16_04_05_60155.jpg MAIN: 2026-05-18 16:04:05,733 - INFO - duration: 0.9439190370030701 MAIN: 2026-05-18 16:04:05,733 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/04' MAIN: 2026-05-18 16:04:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 16:05:04,754 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:05:05,200 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:05:05,882 - INFO - taking picture MAIN: 2026-05-18 16:05:05,882 - INFO - we take 575 photos in this while loop MAIN: 2026-05-18 16:05:05,882 - INFO - /home/pi/Desktop/images/18052026/16/04/image_18052026_16_05_05_60189.jpg MAIN: 2026-05-18 16:05:05,882 - INFO - duration: 0.9043656590001774 MAIN: 2026-05-18 16:05:05,883 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:06: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-05-18 16:06: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-05-18 16:06:06,213 - INFO - taking picture MAIN: 2026-05-18 16:06:06,213 - INFO - we take 576 photos in this while loop MAIN: 2026-05-18 16:06:06,213 - INFO - /home/pi/Desktop/images/18052026/16/05/image_18052026_16_06_05_60265.jpg MAIN: 2026-05-18 16:06:06,214 - INFO - duration: 0.9701202110009035 MAIN: 2026-05-18 16:06:06,214 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:07:05,180 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:07: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-05-18 16:07:06,246 - INFO - taking picture MAIN: 2026-05-18 16:07:06,246 - INFO - we take 577 photos in this while loop MAIN: 2026-05-18 16:07:06,246 - INFO - /home/pi/Desktop/images/18052026/16/06/image_18052026_16_07_05_60099.jpg MAIN: 2026-05-18 16:07:06,246 - INFO - duration: 0.9030464440002106 MAIN: 2026-05-18 16:07:06,247 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:08: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-05-18 16:08:05,637 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:08:06,322 - INFO - taking picture MAIN: 2026-05-18 16:08:06,322 - INFO - we take 578 photos in this while loop MAIN: 2026-05-18 16:08:06,322 - INFO - /home/pi/Desktop/images/18052026/16/07/image_18052026_16_08_05_60023.jpg MAIN: 2026-05-18 16:08:06,322 - INFO - duration: 0.9557297659994219 MAIN: 2026-05-18 16:08:06,322 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:09:05,227 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:09:05,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-05-18 16:09:05,925 - INFO - taking picture MAIN: 2026-05-18 16:09:05,925 - INFO - we take 579 photos in this while loop MAIN: 2026-05-18 16:09:05,925 - INFO - /home/pi/Desktop/images/18052026/16/08/image_18052026_16_09_05_59579.jpg MAIN: 2026-05-18 16:09:05,925 - INFO - duration: 0.9792068640017533 MAIN: 2026-05-18 16:09:05,926 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:10:05,284 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:10: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-05-18 16:10:06,106 - INFO - taking picture MAIN: 2026-05-18 16:10:06,106 - INFO - we take 580 photos in this while loop MAIN: 2026-05-18 16:10:06,107 - INFO - /home/pi/Desktop/images/18052026/16/09/image_18052026_16_10_05_60186.jpg MAIN: 2026-05-18 16:10:06,107 - INFO - duration: 0.9745195590003277 MAIN: 2026-05-18 16:10:06,107 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:11:04,874 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:11: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-05-18 16:11:06,263 - INFO - taking picture MAIN: 2026-05-18 16:11:06,264 - INFO - we take 581 photos in this while loop MAIN: 2026-05-18 16:11:06,264 - INFO - /home/pi/Desktop/images/18052026/16/10/image_18052026_16_11_05_60193.jpg MAIN: 2026-05-18 16:11:06,264 - INFO - duration: 0.9388140689989086 MAIN: 2026-05-18 16:11:06,264 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:12: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-05-18 16:12:05,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-05-18 16:12:06,412 - INFO - taking picture MAIN: 2026-05-18 16:12:06,412 - INFO - we take 582 photos in this while loop MAIN: 2026-05-18 16:12:06,412 - INFO - /home/pi/Desktop/images/18052026/16/11/image_18052026_16_12_05_60169.jpg MAIN: 2026-05-18 16:12:06,413 - INFO - duration: 0.9173107969982084 MAIN: 2026-05-18 16:12:06,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:13: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-05-18 16:13:05,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-05-18 16:13:06,413 - INFO - taking picture MAIN: 2026-05-18 16:13:06,413 - INFO - we take 583 photos in this while loop MAIN: 2026-05-18 16:13:06,413 - INFO - /home/pi/Desktop/images/18052026/16/12/image_18052026_16_13_05_60014.jpg MAIN: 2026-05-18 16:13:06,413 - INFO - duration: 0.9034922589999042 MAIN: 2026-05-18 16:13:06,414 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:14:04,691 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:14:05,369 - INFO - taking picture MAIN: 2026-05-18 16:14:05,370 - INFO - we take 584 photos in this while loop MAIN: 2026-05-18 16:14:05,370 - INFO - /home/pi/Desktop/images/18052026/16/13/image_18052026_16_14_04_58929.jpg MAIN: 2026-05-18 16:14:05,370 - INFO - duration: 0.9299827329959953 MAIN: 2026-05-18 16:14:05,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/14' MAIN: 2026-05-18 16:14:05,504 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:15:04,827 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 16:15:05,582 - INFO - taking picture MAIN: 2026-05-18 16:15:05,582 - INFO - we take 585 photos in this while loop MAIN: 2026-05-18 16:15:05,583 - INFO - /home/pi/Desktop/images/18052026/16/14/image_18052026_16_15_04_60136.jpg MAIN: 2026-05-18 16:15:05,583 - INFO - duration: 1.0062383209951804 MAIN: 2026-05-18 16:15:05,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/15' MAIN: 2026-05-18 16:15: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 ! MAIN: 2026-05-18 16:16:04,587 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 16:16:05,275 - INFO - taking picture MAIN: 2026-05-18 16:16:05,275 - INFO - we take 586 photos in this while loop MAIN: 2026-05-18 16:16:05,275 - INFO - /home/pi/Desktop/images/18052026/16/15/image_18052026_16_16_04_59757.jpg MAIN: 2026-05-18 16:16:05,275 - INFO - duration: 0.9413988480009721 MAIN: 2026-05-18 16:16:05,275 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/16' MAIN: 2026-05-18 16:16:05,716 - 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-05-18 16:17:04,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 ! MAIN: 2026-05-18 16:17:05,770 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:17:06,453 - INFO - taking picture MAIN: 2026-05-18 16:17:06,453 - INFO - we take 587 photos in this while loop MAIN: 2026-05-18 16:17:06,453 - INFO - /home/pi/Desktop/images/18052026/16/16/image_18052026_16_17_05_61165.jpg MAIN: 2026-05-18 16:17:06,453 - INFO - duration: 0.9545849839996663 MAIN: 2026-05-18 16:17:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:18: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-05-18 16:18: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-05-18 16:18:05,385 - INFO - taking picture MAIN: 2026-05-18 16:18:05,385 - INFO - we take 588 photos in this while loop MAIN: 2026-05-18 16:18:05,385 - INFO - /home/pi/Desktop/images/18052026/16/17/image_18052026_16_18_04_58872.jpg MAIN: 2026-05-18 16:18:05,385 - INFO - duration: 1.0145239700068487 MAIN: 2026-05-18 16:18:05,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:19: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-05-18 16:19: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-05-18 16:19:05,686 - INFO - taking picture MAIN: 2026-05-18 16:19:05,686 - INFO - we take 589 photos in this while loop MAIN: 2026-05-18 16:19:05,686 - INFO - /home/pi/Desktop/images/18052026/16/18/image_18052026_16_19_04_60344.jpg MAIN: 2026-05-18 16:19:05,687 - INFO - duration: 0.9707856599998195 MAIN: 2026-05-18 16:19:05,687 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:20: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-05-18 16:20:05,753 - INFO - taking picture MAIN: 2026-05-18 16:20:05,753 - INFO - we take 590 photos in this while loop MAIN: 2026-05-18 16:20:05,753 - INFO - /home/pi/Desktop/images/18052026/16/19/image_18052026_16_20_05_60091.jpg MAIN: 2026-05-18 16:20:05,754 - INFO - duration: 0.9463396069986629 MAIN: 2026-05-18 16:20:05,754 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/20' MAIN: 2026-05-18 16:20: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 16:21: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-05-18 16:21: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-05-18 16:21:05,800 - INFO - taking picture MAIN: 2026-05-18 16:21:05,801 - INFO - we take 591 photos in this while loop MAIN: 2026-05-18 16:21:05,801 - INFO - /home/pi/Desktop/images/18052026/16/20/image_18052026_16_21_05_60041.jpg MAIN: 2026-05-18 16:21:05,801 - INFO - duration: 0.9522169510019012 MAIN: 2026-05-18 16:21:05,801 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:22: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-05-18 16:22: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-05-18 16:22:06,101 - INFO - taking picture MAIN: 2026-05-18 16:22:06,101 - INFO - we take 592 photos in this while loop MAIN: 2026-05-18 16:22:06,102 - INFO - /home/pi/Desktop/images/18052026/16/21/image_18052026_16_22_05_60237.jpg MAIN: 2026-05-18 16:22:06,102 - INFO - duration: 1.0156793240021216 MAIN: 2026-05-18 16:22:06,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:23:05,450 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:23: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-05-18 16:23:06,137 - INFO - taking picture MAIN: 2026-05-18 16:23:06,137 - INFO - we take 593 photos in this while loop MAIN: 2026-05-18 16:23:06,138 - INFO - /home/pi/Desktop/images/18052026/16/22/image_18052026_16_23_05_60109.jpg MAIN: 2026-05-18 16:23:06,138 - INFO - duration: 0.9418995969972457 MAIN: 2026-05-18 16:23:06,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:24:04,875 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:24: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-05-18 16:24:06,211 - INFO - taking picture MAIN: 2026-05-18 16:24:06,211 - INFO - we take 594 photos in this while loop MAIN: 2026-05-18 16:24:06,212 - INFO - /home/pi/Desktop/images/18052026/16/23/image_18052026_16_24_05_60066.jpg MAIN: 2026-05-18 16:24:06,212 - INFO - duration: 0.9496166440003435 MAIN: 2026-05-18 16:24:06,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:25: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-05-18 16:25:05,787 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:25:06,468 - INFO - taking picture MAIN: 2026-05-18 16:25:06,468 - INFO - we take 595 photos in this while loop MAIN: 2026-05-18 16:25:06,469 - INFO - /home/pi/Desktop/images/18052026/16/24/image_18052026_16_25_05_60295.jpg MAIN: 2026-05-18 16:25:06,469 - INFO - duration: 0.9115491070042481 MAIN: 2026-05-18 16:25:06,469 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:26: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-05-18 16:26:05,339 - INFO - taking picture MAIN: 2026-05-18 16:26:05,340 - INFO - we take 596 photos in this while loop MAIN: 2026-05-18 16:26:05,340 - INFO - /home/pi/Desktop/images/18052026/16/25/image_18052026_16_26_04_58831.jpg MAIN: 2026-05-18 16:26:05,340 - INFO - duration: 0.9508922579989303 MAIN: 2026-05-18 16:26:05,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/26' MAIN: 2026-05-18 16:26: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 16:27:04,827 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:27:05,116 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:27:05,596 - INFO - taking picture MAIN: 2026-05-18 16:27:05,597 - INFO - we take 597 photos in this while loop MAIN: 2026-05-18 16:27:05,597 - INFO - /home/pi/Desktop/images/18052026/16/26/image_18052026_16_27_04_60135.jpg MAIN: 2026-05-18 16:27:05,597 - INFO - duration: 1.0721924190002028 MAIN: 2026-05-18 16:27:05,597 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:28: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-05-18 16:28:05,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-05-18 16:28:05,758 - INFO - taking picture MAIN: 2026-05-18 16:28:05,758 - INFO - we take 598 photos in this while loop MAIN: 2026-05-18 16:28:05,758 - INFO - /home/pi/Desktop/images/18052026/16/27/image_18052026_16_28_05_60276.jpg MAIN: 2026-05-18 16:28:05,759 - INFO - duration: 0.9573153730016202 MAIN: 2026-05-18 16:28:05,759 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:29: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-05-18 16:29: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 ! MAIN: 2026-05-18 16:29:06,043 - INFO - taking picture MAIN: 2026-05-18 16:29:06,043 - INFO - we take 599 photos in this while loop MAIN: 2026-05-18 16:29:06,043 - INFO - /home/pi/Desktop/images/18052026/16/28/image_18052026_16_29_05_60263.jpg MAIN: 2026-05-18 16:29:06,043 - INFO - duration: 0.9783862009935547 MAIN: 2026-05-18 16:29:06,044 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:30: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-05-18 16:30: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-05-18 16:30:06,150 - INFO - taking picture MAIN: 2026-05-18 16:30:06,150 - INFO - we take 600 photos in this while loop MAIN: 2026-05-18 16:30:06,150 - INFO - /home/pi/Desktop/images/18052026/16/29/image_18052026_16_30_05_60104.jpg MAIN: 2026-05-18 16:30:06,150 - INFO - duration: 0.9805175229994347 MAIN: 2026-05-18 16:30:06,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:31:05,086 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:31: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-05-18 16:31:06,273 - INFO - taking picture MAIN: 2026-05-18 16:31:06,273 - INFO - we take 601 photos in this while loop MAIN: 2026-05-18 16:31:06,273 - INFO - /home/pi/Desktop/images/18052026/16/30/image_18052026_16_31_05_60195.jpg MAIN: 2026-05-18 16:31:06,274 - INFO - duration: 0.9085518280044198 MAIN: 2026-05-18 16:31:06,274 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:32:04,599 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:32:05,214 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:32:05,291 - INFO - taking picture MAIN: 2026-05-18 16:32:05,291 - INFO - we take 602 photos in this while loop MAIN: 2026-05-18 16:32:05,291 - INFO - /home/pi/Desktop/images/18052026/16/31/image_18052026_16_32_04_58966.jpg MAIN: 2026-05-18 16:32:05,291 - INFO - duration: 0.9598520170038682 MAIN: 2026-05-18 16:32:05,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:33: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-05-18 16:33: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-05-18 16:33:05,446 - INFO - taking picture MAIN: 2026-05-18 16:33:05,446 - INFO - we take 603 photos in this while loop MAIN: 2026-05-18 16:33:05,446 - INFO - /home/pi/Desktop/images/18052026/16/32/image_18052026_16_33_04_60144.jpg MAIN: 2026-05-18 16:33:05,446 - INFO - duration: 0.9700942440031213 MAIN: 2026-05-18 16:33:05,447 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:34: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-05-18 16:34:05,550 - INFO - taking picture MAIN: 2026-05-18 16:34:05,550 - INFO - we take 604 photos in this while loop MAIN: 2026-05-18 16:34:05,550 - INFO - /home/pi/Desktop/images/18052026/16/33/image_18052026_16_34_04_60127.jpg MAIN: 2026-05-18 16:34:05,551 - INFO - duration: 0.9471942370000761 MAIN: 2026-05-18 16:34:05,551 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/34' MAIN: 2026-05-18 16:34:05,761 - 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-05-18 16:35:05,073 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:35:05,731 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:35:05,763 - INFO - taking picture MAIN: 2026-05-18 16:35:05,764 - INFO - we take 605 photos in this while loop MAIN: 2026-05-18 16:35:05,764 - INFO - /home/pi/Desktop/images/18052026/16/34/image_18052026_16_35_05_60192.jpg MAIN: 2026-05-18 16:35:05,765 - INFO - duration: 0.9684386519948021 MAIN: 2026-05-18 16:35:05,765 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:36: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-05-18 16:36: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 ! MAIN: 2026-05-18 16:36:05,894 - INFO - taking picture MAIN: 2026-05-18 16:36:05,895 - INFO - we take 606 photos in this while loop MAIN: 2026-05-18 16:36:05,895 - INFO - /home/pi/Desktop/images/18052026/16/35/image_18052026_16_36_05_60071.jpg MAIN: 2026-05-18 16:36:05,896 - INFO - duration: 1.0278898819960887 MAIN: 2026-05-18 16:36:05,897 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:37:04,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-05-18 16:37: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-05-18 16:37:05,729 - INFO - taking picture MAIN: 2026-05-18 16:37:05,729 - INFO - we take 607 photos in this while loop MAIN: 2026-05-18 16:37:05,729 - INFO - /home/pi/Desktop/images/18052026/16/36/image_18052026_16_37_05_59925.jpg MAIN: 2026-05-18 16:37:05,730 - INFO - duration: 0.9367586329972255 MAIN: 2026-05-18 16:37:05,730 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:38:04,966 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:38:05,296 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:38:05,659 - INFO - taking picture MAIN: 2026-05-18 16:38:05,660 - INFO - we take 608 photos in this while loop MAIN: 2026-05-18 16:38:05,660 - INFO - /home/pi/Desktop/images/18052026/16/37/image_18052026_16_38_04_59925.jpg MAIN: 2026-05-18 16:38:05,660 - INFO - duration: 0.9413105909989099 MAIN: 2026-05-18 16:38:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:39: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-05-18 16:39: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-05-18 16:39:05,572 - INFO - taking picture MAIN: 2026-05-18 16:39:05,573 - INFO - we take 609 photos in this while loop MAIN: 2026-05-18 16:39:05,573 - INFO - /home/pi/Desktop/images/18052026/16/38/image_18052026_16_39_04_59881.jpg MAIN: 2026-05-18 16:39:05,573 - INFO - duration: 0.9725704999946174 MAIN: 2026-05-18 16:39:05,573 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:40:04,900 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:40: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 ! MAIN: 2026-05-18 16:40:05,705 - INFO - taking picture MAIN: 2026-05-18 16:40:05,705 - INFO - we take 610 photos in this while loop MAIN: 2026-05-18 16:40:05,706 - INFO - /home/pi/Desktop/images/18052026/16/39/image_18052026_16_40_04_60069.jpg MAIN: 2026-05-18 16:40:05,706 - INFO - duration: 1.036147170998447 MAIN: 2026-05-18 16:40:05,706 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:41: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-05-18 16:41: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-05-18 16:41:05,997 - INFO - taking picture MAIN: 2026-05-18 16:41:05,997 - INFO - we take 611 photos in this while loop MAIN: 2026-05-18 16:41:05,998 - INFO - /home/pi/Desktop/images/18052026/16/40/image_18052026_16_41_05_60341.jpg MAIN: 2026-05-18 16:41:05,998 - INFO - duration: 0.986021199998504 MAIN: 2026-05-18 16:41:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:42:05,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-05-18 16:42:05,874 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:42:06,193 - INFO - taking picture MAIN: 2026-05-18 16:42:06,193 - INFO - we take 612 photos in this while loop MAIN: 2026-05-18 16:42:06,193 - INFO - /home/pi/Desktop/images/18052026/16/41/image_18052026_16_42_05_60223.jpg MAIN: 2026-05-18 16:42:06,193 - INFO - duration: 0.9575929589991574 MAIN: 2026-05-18 16:42:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:43:04,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 ! MAIN: 2026-05-18 16:43: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-05-18 16:43:06,257 - INFO - taking picture MAIN: 2026-05-18 16:43:06,257 - INFO - we take 613 photos in this while loop MAIN: 2026-05-18 16:43:06,258 - INFO - /home/pi/Desktop/images/18052026/16/42/image_18052026_16_43_05_60032.jpg MAIN: 2026-05-18 16:43:06,258 - INFO - duration: 0.9898596790008014 MAIN: 2026-05-18 16:43:06,258 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:44:04,768 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:44: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-05-18 16:44:05,556 - INFO - taking picture MAIN: 2026-05-18 16:44:05,557 - INFO - we take 614 photos in this while loop MAIN: 2026-05-18 16:44:05,557 - INFO - /home/pi/Desktop/images/18052026/16/43/image_18052026_16_44_04_59218.jpg MAIN: 2026-05-18 16:44:05,557 - INFO - duration: 1.0708664440026041 MAIN: 2026-05-18 16:44:05,557 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:45: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 ! MAIN: 2026-05-18 16:45: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-05-18 16:45:06,223 - INFO - taking picture MAIN: 2026-05-18 16:45:06,223 - INFO - we take 615 photos in this while loop MAIN: 2026-05-18 16:45:06,223 - INFO - /home/pi/Desktop/images/18052026/16/44/image_18052026_16_45_05_60802.jpg MAIN: 2026-05-18 16:45:06,223 - INFO - duration: 0.9348711189959431 MAIN: 2026-05-18 16:45:06,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/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-05-18 16:46: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-05-18 16:46:05,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-05-18 16:46:06,497 - INFO - taking picture MAIN: 2026-05-18 16:46:06,497 - INFO - we take 616 photos in this while loop MAIN: 2026-05-18 16:46:06,497 - INFO - /home/pi/Desktop/images/18052026/16/45/image_18052026_16_46_05_60263.jpg MAIN: 2026-05-18 16:46:06,497 - INFO - duration: 0.9458644400001504 MAIN: 2026-05-18 16:46:06,498 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:47: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-05-18 16:47:05,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-05-18 16:47:06,335 - INFO - taking picture MAIN: 2026-05-18 16:47:06,335 - INFO - we take 617 photos in this while loop MAIN: 2026-05-18 16:47:06,335 - INFO - /home/pi/Desktop/images/18052026/16/46/image_18052026_16_47_05_59810.jpg MAIN: 2026-05-18 16:47:06,335 - INFO - duration: 0.9730581909971079 MAIN: 2026-05-18 16:47:06,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:48: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-05-18 16:48:05,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-05-18 16:48:06,501 - INFO - taking picture MAIN: 2026-05-18 16:48:06,501 - INFO - we take 618 photos in this while loop MAIN: 2026-05-18 16:48:06,501 - INFO - /home/pi/Desktop/images/18052026/16/47/image_18052026_16_48_05_60173.jpg MAIN: 2026-05-18 16:48:06,501 - INFO - duration: 0.9655856600002153 MAIN: 2026-05-18 16:48:06,502 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:49:04,741 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:49:05,745 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:49:06,437 - INFO - taking picture MAIN: 2026-05-18 16:49:06,437 - INFO - we take 619 photos in this while loop MAIN: 2026-05-18 16:49:06,437 - INFO - /home/pi/Desktop/images/18052026/16/48/image_18052026_16_49_05_59948.jpg MAIN: 2026-05-18 16:49:06,437 - INFO - duration: 0.9527312050049659 MAIN: 2026-05-18 16:49:06,437 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:50:04,607 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:50:05,299 - INFO - taking picture MAIN: 2026-05-18 16:50:05,299 - INFO - we take 620 photos in this while loop MAIN: 2026-05-18 16:50:05,299 - INFO - /home/pi/Desktop/images/18052026/16/49/image_18052026_16_50_04_58888.jpg MAIN: 2026-05-18 16:50:05,300 - INFO - duration: 0.9270374269981403 MAIN: 2026-05-18 16:50:05,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/50' MAIN: 2026-05-18 16:50: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 16:51:04,950 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:51: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-05-18 16:51:05,655 - INFO - taking picture MAIN: 2026-05-18 16:51:05,655 - INFO - we take 621 photos in this while loop MAIN: 2026-05-18 16:51:05,655 - INFO - /home/pi/Desktop/images/18052026/16/50/image_18052026_16_51_04_60320.jpg MAIN: 2026-05-18 16:51:05,655 - INFO - duration: 0.9627618379963678 MAIN: 2026-05-18 16:51:05,656 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:52: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-05-18 16:52:05,434 - INFO - taking picture MAIN: 2026-05-18 16:52:05,434 - INFO - we take 622 photos in this while loop MAIN: 2026-05-18 16:52:05,434 - INFO - /home/pi/Desktop/images/18052026/16/51/image_18052026_16_52_04_59672.jpg MAIN: 2026-05-18 16:52:05,434 - INFO - duration: 1.0691664820042206 MAIN: 2026-05-18 16:52:05,435 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/16/52' MAIN: 2026-05-18 16:52:05,627 - 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-05-18 16:53: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-05-18 16:53: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-05-18 16:53:05,903 - INFO - taking picture MAIN: 2026-05-18 16:53:05,903 - INFO - we take 623 photos in this while loop MAIN: 2026-05-18 16:53:05,903 - INFO - /home/pi/Desktop/images/18052026/16/52/image_18052026_16_53_05_60553.jpg MAIN: 2026-05-18 16:53:05,903 - INFO - duration: 0.9840776749988436 MAIN: 2026-05-18 16:53:05,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:54: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-05-18 16:54:05,642 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:54:06,030 - INFO - taking picture MAIN: 2026-05-18 16:54:06,030 - INFO - we take 624 photos in this while loop MAIN: 2026-05-18 16:54:06,030 - INFO - /home/pi/Desktop/images/18052026/16/53/image_18052026_16_54_05_60147.jpg MAIN: 2026-05-18 16:54:06,030 - INFO - duration: 0.9632731540041277 MAIN: 2026-05-18 16:54:06,030 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:55:05,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-05-18 16:55: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 ! MAIN: 2026-05-18 16:55:06,172 - INFO - taking picture MAIN: 2026-05-18 16:55:06,173 - INFO - we take 625 photos in this while loop MAIN: 2026-05-18 16:55:06,173 - INFO - /home/pi/Desktop/images/18052026/16/54/image_18052026_16_55_05_60091.jpg MAIN: 2026-05-18 16:55:06,173 - INFO - duration: 1.014321687995107 MAIN: 2026-05-18 16:55:06,173 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:56:05,070 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:56:05,775 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:56:06,540 - INFO - taking picture MAIN: 2026-05-18 16:56:06,540 - INFO - we take 626 photos in this while loop MAIN: 2026-05-18 16:56:06,540 - INFO - /home/pi/Desktop/images/18052026/16/55/image_18052026_16_56_05_60389.jpg MAIN: 2026-05-18 16:56:06,541 - INFO - duration: 0.9926235829989309 MAIN: 2026-05-18 16:56:06,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:57:04,854 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 16:57: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-05-18 16:57:05,720 - INFO - taking picture MAIN: 2026-05-18 16:57:05,721 - INFO - we take 627 photos in this while loop MAIN: 2026-05-18 16:57:05,721 - INFO - /home/pi/Desktop/images/18052026/16/56/image_18052026_16_57_04_59090.jpg MAIN: 2026-05-18 16:57:05,721 - INFO - duration: 1.08288903599896 MAIN: 2026-05-18 16:57:05,721 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:58: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-05-18 16:58: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-05-18 16:58:06,072 - INFO - taking picture MAIN: 2026-05-18 16:58:06,072 - INFO - we take 628 photos in this while loop MAIN: 2026-05-18 16:58:06,072 - INFO - /home/pi/Desktop/images/18052026/16/57/image_18052026_16_58_05_60480.jpg MAIN: 2026-05-18 16:58:06,072 - INFO - duration: 0.9541482409986202 MAIN: 2026-05-18 16:58:06,073 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 16:59:04,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 ! MAIN: 2026-05-18 16:59:05,125 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 16:59:05,818 - INFO - taking picture MAIN: 2026-05-18 16:59:05,818 - INFO - we take 629 photos in this while loop MAIN: 2026-05-18 16:59:05,818 - INFO - /home/pi/Desktop/images/18052026/16/58/image_18052026_16_59_05_59726.jpg MAIN: 2026-05-18 16:59:05,818 - INFO - duration: 0.973659529001452 MAIN: 2026-05-18 16:59:05,818 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:00:05,416 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:00:06,109 - INFO - taking picture MAIN: 2026-05-18 17:00:06,109 - INFO - we take 630 photos in this while loop MAIN: 2026-05-18 17:00:06,110 - INFO - /home/pi/Desktop/images/18052026/16/59/image_18052026_17_00_05_60283.jpg MAIN: 2026-05-18 17:00:06,110 - INFO - duration: 0.981315225995786 MAIN: 2026-05-18 17:00:06,110 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/00' MAIN: 2026-05-18 17:00: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-05-18 17:01:05,244 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:01:05,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-05-18 17:01:05,947 - INFO - taking picture MAIN: 2026-05-18 17:01:05,948 - INFO - we take 631 photos in this while loop MAIN: 2026-05-18 17:01:05,948 - INFO - /home/pi/Desktop/images/18052026/17/00/image_18052026_17_01_05_59836.jpg MAIN: 2026-05-18 17:01:05,948 - INFO - duration: 0.9832579489957425 MAIN: 2026-05-18 17:01:05,948 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:02: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-05-18 17:02: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 ! MAIN: 2026-05-18 17:02:06,123 - INFO - taking picture MAIN: 2026-05-18 17:02:06,123 - INFO - we take 632 photos in this while loop MAIN: 2026-05-18 17:02:06,124 - INFO - /home/pi/Desktop/images/18052026/17/01/image_18052026_17_02_05_60193.jpg MAIN: 2026-05-18 17:02:06,124 - INFO - duration: 0.9660932039987529 MAIN: 2026-05-18 17:02:06,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:03:04,741 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:03: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-05-18 17:03:06,091 - INFO - taking picture MAIN: 2026-05-18 17:03:06,092 - INFO - we take 633 photos in this while loop MAIN: 2026-05-18 17:03:06,092 - INFO - /home/pi/Desktop/images/18052026/17/02/image_18052026_17_03_05_59953.jpg MAIN: 2026-05-18 17:03:06,092 - INFO - duration: 0.9807608549963334 MAIN: 2026-05-18 17:03:06,092 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:04: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 ! MAIN: 2026-05-18 17:04:05,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-05-18 17:04:06,337 - INFO - taking picture MAIN: 2026-05-18 17:04:06,337 - INFO - we take 634 photos in this while loop MAIN: 2026-05-18 17:04:06,337 - INFO - /home/pi/Desktop/images/18052026/17/03/image_18052026_17_04_05_60309.jpg MAIN: 2026-05-18 17:04:06,337 - INFO - duration: 0.917224056996929 MAIN: 2026-05-18 17:04:06,338 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:05: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-05-18 17:05:05,635 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:05:05,717 - INFO - taking picture MAIN: 2026-05-18 17:05:05,718 - INFO - we take 635 photos in this while loop MAIN: 2026-05-18 17:05:05,718 - INFO - /home/pi/Desktop/images/18052026/17/04/image_18052026_17_05_05_59324.jpg MAIN: 2026-05-18 17:05:05,718 - INFO - duration: 0.9734561170043889 MAIN: 2026-05-18 17:05:05,718 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:06: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-05-18 17:06: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 ! MAIN: 2026-05-18 17:06:05,925 - INFO - taking picture MAIN: 2026-05-18 17:06:05,926 - INFO - we take 636 photos in this while loop MAIN: 2026-05-18 17:06:05,926 - INFO - /home/pi/Desktop/images/18052026/17/05/image_18052026_17_06_05_60210.jpg MAIN: 2026-05-18 17:06:05,926 - INFO - duration: 0.9713553260007757 MAIN: 2026-05-18 17:06:05,926 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:07: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-05-18 17:07:05,423 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:07:06,192 - INFO - taking picture MAIN: 2026-05-18 17:07:06,192 - INFO - we take 637 photos in this while loop MAIN: 2026-05-18 17:07:06,192 - INFO - /home/pi/Desktop/images/18052026/17/06/image_18052026_17_07_05_60172.jpg MAIN: 2026-05-18 17:07:06,193 - INFO - duration: 1.0658401559994672 MAIN: 2026-05-18 17:07:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:08: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-05-18 17:08:05,656 - INFO - taking picture MAIN: 2026-05-18 17:08:05,656 - INFO - we take 638 photos in this while loop MAIN: 2026-05-18 17:08:05,656 - INFO - /home/pi/Desktop/images/18052026/17/07/image_18052026_17_08_04_59571.jpg MAIN: 2026-05-18 17:08:05,657 - INFO - duration: 0.9588363419970847 MAIN: 2026-05-18 17:08:05,657 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/08' MAIN: 2026-05-18 17:08:05,771 - 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-05-18 17:09:04,635 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:09:04,850 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:09:05,546 - INFO - taking picture MAIN: 2026-05-18 17:09:05,546 - INFO - we take 639 photos in this while loop MAIN: 2026-05-18 17:09:05,546 - INFO - /home/pi/Desktop/images/18052026/17/08/image_18052026_17_09_04_59877.jpg MAIN: 2026-05-18 17:09:05,546 - INFO - duration: 0.9709452349998173 MAIN: 2026-05-18 17:09:05,546 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:10:04,979 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:10:05,288 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:10:05,701 - INFO - taking picture MAIN: 2026-05-18 17:10:05,701 - INFO - we take 640 photos in this while loop MAIN: 2026-05-18 17:10:05,701 - INFO - /home/pi/Desktop/images/18052026/17/09/image_18052026_17_10_04_60142.jpg MAIN: 2026-05-18 17:10:05,701 - INFO - duration: 0.9837983429970336 MAIN: 2026-05-18 17:10:05,701 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:11: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-05-18 17:11:04,995 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:11:05,624 - INFO - taking picture MAIN: 2026-05-18 17:11:05,624 - INFO - we take 641 photos in this while loop MAIN: 2026-05-18 17:11:05,624 - INFO - /home/pi/Desktop/images/18052026/17/10/image_18052026_17_11_04_59935.jpg MAIN: 2026-05-18 17:11:05,624 - INFO - duration: 0.9718237799970666 MAIN: 2026-05-18 17:11:05,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:12:05,285 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:12:05,752 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:12:06,000 - INFO - taking picture MAIN: 2026-05-18 17:12:06,000 - INFO - we take 642 photos in this while loop MAIN: 2026-05-18 17:12:06,000 - INFO - /home/pi/Desktop/images/18052026/17/11/image_18052026_17_12_05_60367.jpg MAIN: 2026-05-18 17:12:06,000 - INFO - duration: 0.9802952159952838 MAIN: 2026-05-18 17:12:06,001 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:13:04,788 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:13: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-05-18 17:13:05,523 - INFO - taking picture MAIN: 2026-05-18 17:13:05,523 - INFO - we take 643 photos in this while loop MAIN: 2026-05-18 17:13:05,523 - INFO - /home/pi/Desktop/images/18052026/17/12/image_18052026_17_13_04_59505.jpg MAIN: 2026-05-18 17:13:05,523 - INFO - duration: 0.9980916630011052 MAIN: 2026-05-18 17:13:05,524 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:14:04,907 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:14: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-05-18 17:14:06,251 - INFO - taking picture MAIN: 2026-05-18 17:14:06,252 - INFO - we take 644 photos in this while loop MAIN: 2026-05-18 17:14:06,252 - INFO - /home/pi/Desktop/images/18052026/17/13/image_18052026_17_14_05_60749.jpg MAIN: 2026-05-18 17:14:06,252 - INFO - duration: 0.976907165000739 MAIN: 2026-05-18 17:14:06,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:15:04,796 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:15: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-05-18 17:15:05,510 - INFO - taking picture MAIN: 2026-05-18 17:15:05,510 - INFO - we take 645 photos in this while loop MAIN: 2026-05-18 17:15:05,510 - INFO - /home/pi/Desktop/images/18052026/17/14/image_18052026_17_15_04_59235.jpg MAIN: 2026-05-18 17:15:05,511 - INFO - duration: 1.0000335359945893 MAIN: 2026-05-18 17:15:05,511 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:16:05,592 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:16: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-05-18 17:16:06,329 - INFO - taking picture MAIN: 2026-05-18 17:16:06,329 - INFO - we take 646 photos in this while loop MAIN: 2026-05-18 17:16:06,329 - INFO - /home/pi/Desktop/images/18052026/17/15/image_18052026_17_16_05_60835.jpg MAIN: 2026-05-18 17:16:06,329 - INFO - duration: 0.9834145269996952 MAIN: 2026-05-18 17:16:06,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:17: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-05-18 17:17: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-05-18 17:17:05,672 - INFO - taking picture MAIN: 2026-05-18 17:17:05,672 - INFO - we take 647 photos in this while loop MAIN: 2026-05-18 17:17:05,672 - INFO - /home/pi/Desktop/images/18052026/17/16/image_18052026_17_17_04_59314.jpg MAIN: 2026-05-18 17:17:05,673 - INFO - duration: 1.012575499000377 MAIN: 2026-05-18 17:17:05,673 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:18: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 ! MAIN: 2026-05-18 17:18:05,455 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:18:06,238 - INFO - taking picture MAIN: 2026-05-18 17:18:06,238 - INFO - we take 648 photos in this while loop MAIN: 2026-05-18 17:18:06,238 - INFO - /home/pi/Desktop/images/18052026/17/17/image_18052026_17_18_05_60505.jpg MAIN: 2026-05-18 17:18:06,238 - INFO - duration: 1.072442229000444 MAIN: 2026-05-18 17:18:06,239 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:19:04,771 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:19:05,393 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:19:06,099 - INFO - taking picture MAIN: 2026-05-18 17:19:06,100 - INFO - we take 649 photos in this while loop MAIN: 2026-05-18 17:19:06,100 - INFO - /home/pi/Desktop/images/18052026/17/18/image_18052026_17_19_05_59995.jpg MAIN: 2026-05-18 17:19:06,100 - INFO - duration: 0.9385713570009102 MAIN: 2026-05-18 17:19:06,100 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:20: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-05-18 17:20:05,251 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:20:05,807 - INFO - taking picture MAIN: 2026-05-18 17:20:05,807 - INFO - we take 650 photos in this while loop MAIN: 2026-05-18 17:20:05,807 - INFO - /home/pi/Desktop/images/18052026/17/19/image_18052026_17_20_05_59532.jpg MAIN: 2026-05-18 17:20:05,807 - INFO - duration: 1.1137185289990157 MAIN: 2026-05-18 17:20:05,807 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:21:05,242 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:21: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-05-18 17:21:06,333 - INFO - taking picture MAIN: 2026-05-18 17:21:06,333 - INFO - we take 651 photos in this while loop MAIN: 2026-05-18 17:21:06,333 - INFO - /home/pi/Desktop/images/18052026/17/20/image_18052026_17_21_05_60701.jpg MAIN: 2026-05-18 17:21:06,333 - INFO - duration: 0.9384527779984637 MAIN: 2026-05-18 17:21:06,334 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:22:04,973 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:22:05,313 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:22:05,738 - INFO - taking picture MAIN: 2026-05-18 17:22:05,738 - INFO - we take 652 photos in this while loop MAIN: 2026-05-18 17:22:05,738 - INFO - /home/pi/Desktop/images/18052026/17/21/image_18052026_17_22_04_59306.jpg MAIN: 2026-05-18 17:22:05,738 - INFO - duration: 1.0371995829991647 MAIN: 2026-05-18 17:22:05,739 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:23:05,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 ! MAIN: 2026-05-18 17:23:05,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-05-18 17:23:06,407 - INFO - taking picture MAIN: 2026-05-18 17:23:06,408 - INFO - we take 653 photos in this while loop MAIN: 2026-05-18 17:23:06,408 - INFO - /home/pi/Desktop/images/18052026/17/22/image_18052026_17_23_05_60757.jpg MAIN: 2026-05-18 17:23:06,408 - INFO - duration: 0.9488255120013491 MAIN: 2026-05-18 17:23:06,408 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:24:05,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-05-18 17:24:05,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-05-18 17:24:06,308 - INFO - taking picture MAIN: 2026-05-18 17:24:06,308 - INFO - we take 654 photos in this while loop MAIN: 2026-05-18 17:24:06,309 - INFO - /home/pi/Desktop/images/18052026/17/23/image_18052026_17_24_05_59753.jpg MAIN: 2026-05-18 17:24:06,309 - INFO - duration: 1.0964253369966173 MAIN: 2026-05-18 17:24:06,309 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:25: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-05-18 17:25: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-05-18 17:25:06,054 - INFO - taking picture MAIN: 2026-05-18 17:25:06,054 - INFO - we take 655 photos in this while loop MAIN: 2026-05-18 17:25:06,054 - INFO - /home/pi/Desktop/images/18052026/17/24/image_18052026_17_25_05_59733.jpg MAIN: 2026-05-18 17:25:06,055 - INFO - duration: 1.1092590090047452 MAIN: 2026-05-18 17:25:06,055 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:26:04,749 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:26:04,758 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:26:05,467 - INFO - taking picture MAIN: 2026-05-18 17:26:05,467 - INFO - we take 656 photos in this while loop MAIN: 2026-05-18 17:26:05,467 - INFO - /home/pi/Desktop/images/18052026/17/25/image_18052026_17_26_04_59552.jpg MAIN: 2026-05-18 17:26:05,467 - INFO - duration: 0.9695943900005659 MAIN: 2026-05-18 17:26:05,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:27:04,995 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:27: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-05-18 17:27:06,041 - INFO - taking picture MAIN: 2026-05-18 17:27:06,041 - INFO - we take 657 photos in this while loop MAIN: 2026-05-18 17:27:06,041 - INFO - /home/pi/Desktop/images/18052026/17/26/image_18052026_17_27_05_60489.jpg MAIN: 2026-05-18 17:27:06,041 - INFO - duration: 1.054196368000703 MAIN: 2026-05-18 17:27:06,042 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:28:04,793 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:28: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-05-18 17:28:05,501 - INFO - taking picture MAIN: 2026-05-18 17:28:05,502 - INFO - we take 658 photos in this while loop MAIN: 2026-05-18 17:28:05,502 - INFO - /home/pi/Desktop/images/18052026/17/27/image_18052026_17_28_04_59513.jpg MAIN: 2026-05-18 17:28:05,502 - INFO - duration: 1.0015093710026122 MAIN: 2026-05-18 17:28:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:29: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-05-18 17:29:05,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-05-18 17:29:06,434 - INFO - taking picture MAIN: 2026-05-18 17:29:06,434 - INFO - we take 659 photos in this while loop MAIN: 2026-05-18 17:29:06,434 - INFO - /home/pi/Desktop/images/18052026/17/28/image_18052026_17_29_05_60996.jpg MAIN: 2026-05-18 17:29:06,434 - INFO - duration: 0.9371381489982014 MAIN: 2026-05-18 17:29:06,434 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:30: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-05-18 17:30:06,060 - INFO - taking picture MAIN: 2026-05-18 17:30:06,060 - INFO - we take 660 photos in this while loop MAIN: 2026-05-18 17:30:06,060 - INFO - /home/pi/Desktop/images/18052026/17/29/image_18052026_17_30_05_59569.jpg MAIN: 2026-05-18 17:30:06,060 - INFO - duration: 0.9938498590054223 MAIN: 2026-05-18 17:30:06,061 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/30' MAIN: 2026-05-18 17:30:06,118 - 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-05-18 17:31: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-05-18 17:31:05,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-05-18 17:31:06,511 - INFO - taking picture MAIN: 2026-05-18 17:31:06,511 - INFO - we take 661 photos in this while loop MAIN: 2026-05-18 17:31:06,511 - INFO - /home/pi/Desktop/images/18052026/17/30/image_18052026_17_31_05_60386.jpg MAIN: 2026-05-18 17:31:06,512 - INFO - duration: 1.058781628998986 MAIN: 2026-05-18 17:31:06,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:32:05,097 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:32:05,231 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:32:05,995 - INFO - taking picture MAIN: 2026-05-18 17:32:05,995 - INFO - we take 662 photos in this while loop MAIN: 2026-05-18 17:32:05,995 - INFO - /home/pi/Desktop/images/18052026/17/31/image_18052026_17_32_05_59467.jpg MAIN: 2026-05-18 17:32:05,996 - INFO - duration: 1.0749302090043784 MAIN: 2026-05-18 17:32:05,996 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:33: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-05-18 17:33: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-05-18 17:33:06,331 - INFO - taking picture MAIN: 2026-05-18 17:33:06,332 - INFO - we take 663 photos in this while loop MAIN: 2026-05-18 17:33:06,332 - INFO - /home/pi/Desktop/images/18052026/17/32/image_18052026_17_33_05_60369.jpg MAIN: 2026-05-18 17:33:06,332 - INFO - duration: 1.0415015019971179 MAIN: 2026-05-18 17:33:06,332 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:34: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-05-18 17:34: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 ! MAIN: 2026-05-18 17:34:05,898 - INFO - taking picture MAIN: 2026-05-18 17:34:05,899 - INFO - we take 664 photos in this while loop MAIN: 2026-05-18 17:34:05,899 - INFO - /home/pi/Desktop/images/18052026/17/33/image_18052026_17_34_05_59539.jpg MAIN: 2026-05-18 17:34:05,899 - INFO - duration: 1.069097530998988 MAIN: 2026-05-18 17:34:05,899 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:35: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-05-18 17:35: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-05-18 17:35:06,048 - INFO - taking picture MAIN: 2026-05-18 17:35:06,048 - INFO - we take 665 photos in this while loop MAIN: 2026-05-18 17:35:06,048 - INFO - /home/pi/Desktop/images/18052026/17/34/image_18052026_17_35_05_60190.jpg MAIN: 2026-05-18 17:35:06,049 - INFO - duration: 1.027804762001324 MAIN: 2026-05-18 17:35:06,049 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:36: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-05-18 17:36:05,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-05-18 17:36:06,300 - INFO - taking picture MAIN: 2026-05-18 17:36:06,301 - INFO - we take 666 photos in this while loop MAIN: 2026-05-18 17:36:06,301 - INFO - /home/pi/Desktop/images/18052026/17/35/image_18052026_17_36_05_60324.jpg MAIN: 2026-05-18 17:36:06,301 - INFO - duration: 0.9560402729985071 MAIN: 2026-05-18 17:36:06,301 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:37:04,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 ! MAIN: 2026-05-18 17:37: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-05-18 17:37:05,847 - INFO - taking picture MAIN: 2026-05-18 17:37:05,847 - INFO - we take 667 photos in this while loop MAIN: 2026-05-18 17:37:05,847 - INFO - /home/pi/Desktop/images/18052026/17/36/image_18052026_17_37_05_59570.jpg MAIN: 2026-05-18 17:37:05,847 - INFO - duration: 0.9319008750026114 MAIN: 2026-05-18 17:37:05,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:38:05,241 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:38:05,353 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:38:06,044 - INFO - taking picture MAIN: 2026-05-18 17:38:06,044 - INFO - we take 668 photos in this while loop MAIN: 2026-05-18 17:38:06,044 - INFO - /home/pi/Desktop/images/18052026/17/37/image_18052026_17_38_05_60138.jpg MAIN: 2026-05-18 17:38:06,044 - INFO - duration: 0.9904885170035413 MAIN: 2026-05-18 17:38:06,044 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:39: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-05-18 17:39: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-05-18 17:39:05,887 - INFO - taking picture MAIN: 2026-05-18 17:39:05,887 - INFO - we take 669 photos in this while loop MAIN: 2026-05-18 17:39:05,887 - INFO - /home/pi/Desktop/images/18052026/17/38/image_18052026_17_39_05_59786.jpg MAIN: 2026-05-18 17:39:05,887 - INFO - duration: 1.0472787910039187 MAIN: 2026-05-18 17:39:05,888 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:40: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-05-18 17:40: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-05-18 17:40:06,131 - INFO - taking picture MAIN: 2026-05-18 17:40:06,131 - INFO - we take 670 photos in this while loop MAIN: 2026-05-18 17:40:06,131 - INFO - /home/pi/Desktop/images/18052026/17/39/image_18052026_17_40_05_60309.jpg MAIN: 2026-05-18 17:40:06,131 - INFO - duration: 0.9817999389997567 MAIN: 2026-05-18 17:40:06,132 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:41:05,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-05-18 17:41: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 ! MAIN: 2026-05-18 17:41:06,153 - INFO - taking picture MAIN: 2026-05-18 17:41:06,153 - INFO - we take 671 photos in this while loop MAIN: 2026-05-18 17:41:06,153 - INFO - /home/pi/Desktop/images/18052026/17/40/image_18052026_17_41_05_60018.jpg MAIN: 2026-05-18 17:41:06,153 - INFO - duration: 0.9844816879995051 MAIN: 2026-05-18 17:41:06,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:42: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-05-18 17:42:05,986 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:42:06,188 - INFO - taking picture MAIN: 2026-05-18 17:42:06,189 - INFO - we take 672 photos in this while loop MAIN: 2026-05-18 17:42:06,189 - INFO - /home/pi/Desktop/images/18052026/17/41/image_18052026_17_42_05_60058.jpg MAIN: 2026-05-18 17:42:06,189 - INFO - duration: 0.961765974003356 MAIN: 2026-05-18 17:42:06,189 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:43:04,767 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:43:04,830 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:43:05,526 - INFO - taking picture MAIN: 2026-05-18 17:43:05,526 - INFO - we take 673 photos in this while loop MAIN: 2026-05-18 17:43:05,526 - INFO - /home/pi/Desktop/images/18052026/17/42/image_18052026_17_43_04_59313.jpg MAIN: 2026-05-18 17:43:05,526 - INFO - duration: 0.9856405540049309 MAIN: 2026-05-18 17:43:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:44: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-05-18 17:44: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-05-18 17:44:05,741 - INFO - taking picture MAIN: 2026-05-18 17:44:05,741 - INFO - we take 674 photos in this while loop MAIN: 2026-05-18 17:44:05,741 - INFO - /home/pi/Desktop/images/18052026/17/43/image_18052026_17_44_05_60223.jpg MAIN: 2026-05-18 17:44:05,742 - INFO - duration: 0.9776869409979554 MAIN: 2026-05-18 17:44:05,742 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:45:05,146 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:45:05,225 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:45:05,921 - INFO - taking picture MAIN: 2026-05-18 17:45:05,922 - INFO - we take 675 photos in this while loop MAIN: 2026-05-18 17:45:05,922 - INFO - /home/pi/Desktop/images/18052026/17/44/image_18052026_17_45_05_60172.jpg MAIN: 2026-05-18 17:45:05,922 - INFO - duration: 0.9849618700027349 MAIN: 2026-05-18 17:45:05,922 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:46:05,386 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:46: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-05-18 17:46:06,083 - INFO - taking picture MAIN: 2026-05-18 17:46:06,083 - INFO - we take 676 photos in this while loop MAIN: 2026-05-18 17:46:06,083 - INFO - /home/pi/Desktop/images/18052026/17/45/image_18052026_17_46_05_60179.jpg MAIN: 2026-05-18 17:46:06,083 - INFO - duration: 0.967153089994099 MAIN: 2026-05-18 17:46:06,083 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:47:05,263 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:47: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-05-18 17:47:05,966 - INFO - taking picture MAIN: 2026-05-18 17:47:05,967 - INFO - we take 677 photos in this while loop MAIN: 2026-05-18 17:47:05,967 - INFO - /home/pi/Desktop/images/18052026/17/46/image_18052026_17_47_05_59894.jpg MAIN: 2026-05-18 17:47:05,967 - INFO - duration: 0.9568032489987672 MAIN: 2026-05-18 17:47:05,967 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:48: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-05-18 17:48: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-05-18 17:48:06,065 - INFO - taking picture MAIN: 2026-05-18 17:48:06,066 - INFO - we take 678 photos in this while loop MAIN: 2026-05-18 17:48:06,066 - INFO - /home/pi/Desktop/images/18052026/17/47/image_18052026_17_48_05_60080.jpg MAIN: 2026-05-18 17:48:06,066 - INFO - duration: 0.9750570619944483 MAIN: 2026-05-18 17:48:06,066 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:49: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-05-18 17:49: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-05-18 17:49:06,097 - INFO - taking picture MAIN: 2026-05-18 17:49:06,098 - INFO - we take 679 photos in this while loop MAIN: 2026-05-18 17:49:06,098 - INFO - /home/pi/Desktop/images/18052026/17/48/image_18052026_17_49_05_60008.jpg MAIN: 2026-05-18 17:49:06,098 - INFO - duration: 0.9983270250013447 MAIN: 2026-05-18 17:49:06,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:50: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-05-18 17:50:05,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-05-18 17:50:06,403 - INFO - taking picture MAIN: 2026-05-18 17:50:06,403 - INFO - we take 680 photos in this while loop MAIN: 2026-05-18 17:50:06,403 - INFO - /home/pi/Desktop/images/18052026/17/49/image_18052026_17_50_05_60350.jpg MAIN: 2026-05-18 17:50:06,403 - INFO - duration: 0.9529997710051248 MAIN: 2026-05-18 17:50:06,404 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:51:04,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-05-18 17:51: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-05-18 17:51:06,136 - INFO - taking picture MAIN: 2026-05-18 17:51:06,136 - INFO - we take 681 photos in this while loop MAIN: 2026-05-18 17:51:06,136 - INFO - /home/pi/Desktop/images/18052026/17/50/image_18052026_17_51_05_59731.jpg MAIN: 2026-05-18 17:51:06,136 - INFO - duration: 0.9538453670029412 MAIN: 2026-05-18 17:51:06,136 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:52:05,167 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:52:05,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-05-18 17:52:06,592 - INFO - taking picture MAIN: 2026-05-18 17:52:06,592 - INFO - we take 682 photos in this while loop MAIN: 2026-05-18 17:52:06,592 - INFO - /home/pi/Desktop/images/18052026/17/51/image_18052026_17_52_05_60349.jpg MAIN: 2026-05-18 17:52:06,592 - INFO - duration: 1.0609782499959692 MAIN: 2026-05-18 17:52:06,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:53: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-05-18 17:53: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-05-18 17:53:05,603 - INFO - taking picture MAIN: 2026-05-18 17:53:05,604 - INFO - we take 683 photos in this while loop MAIN: 2026-05-18 17:53:05,604 - INFO - /home/pi/Desktop/images/18052026/17/52/image_18052026_17_53_04_59108.jpg MAIN: 2026-05-18 17:53:05,604 - INFO - duration: 0.9635174380018725 MAIN: 2026-05-18 17:53:05,604 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:54:05,032 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:54:05,633 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:54:05,728 - INFO - taking picture MAIN: 2026-05-18 17:54:05,728 - INFO - we take 684 photos in this while loop MAIN: 2026-05-18 17:54:05,728 - INFO - /home/pi/Desktop/images/18052026/17/53/image_18052026_17_54_05_60118.jpg MAIN: 2026-05-18 17:54:05,729 - INFO - duration: 0.9692745010033832 MAIN: 2026-05-18 17:54:05,729 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:55: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-05-18 17:55: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-05-18 17:55:05,943 - INFO - taking picture MAIN: 2026-05-18 17:55:05,943 - INFO - we take 685 photos in this while loop MAIN: 2026-05-18 17:55:05,943 - INFO - /home/pi/Desktop/images/18052026/17/54/image_18052026_17_55_05_60130.jpg MAIN: 2026-05-18 17:55:05,944 - INFO - duration: 1.053624447005859 MAIN: 2026-05-18 17:55:05,944 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:56:05,026 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 17:56:05,785 - INFO - taking picture MAIN: 2026-05-18 17:56:05,785 - INFO - we take 686 photos in this while loop MAIN: 2026-05-18 17:56:05,785 - INFO - /home/pi/Desktop/images/18052026/17/55/image_18052026_17_56_05_59846.jpg MAIN: 2026-05-18 17:56:05,786 - INFO - duration: 1.0485281290020794 MAIN: 2026-05-18 17:56:05,786 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/56' MAIN: 2026-05-18 17:56: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-05-18 17:57:04,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 ! MAIN: 2026-05-18 17:57:05,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-05-18 17:57:06,311 - INFO - taking picture MAIN: 2026-05-18 17:57:06,311 - INFO - we take 687 photos in this while loop MAIN: 2026-05-18 17:57:06,311 - INFO - /home/pi/Desktop/images/18052026/17/56/image_18052026_17_57_05_60604.jpg MAIN: 2026-05-18 17:57:06,311 - INFO - duration: 0.9697300050029298 MAIN: 2026-05-18 17:57:06,312 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 17:58:04,963 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:58:05,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-05-18 17:58:06,485 - INFO - taking picture MAIN: 2026-05-18 17:58:06,485 - INFO - we take 688 photos in this while loop MAIN: 2026-05-18 17:58:06,485 - INFO - /home/pi/Desktop/images/18052026/17/57/image_18052026_17_58_05_60138.jpg MAIN: 2026-05-18 17:58:06,485 - INFO - duration: 1.0046619729982922 MAIN: 2026-05-18 17:58:06,486 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/17/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-05-18 17:59:04,998 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 17:59: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-05-18 17:59:06,175 - INFO - taking picture MAIN: 2026-05-18 17:59:06,175 - INFO - we take 689 photos in this while loop MAIN: 2026-05-18 17:59:06,175 - INFO - /home/pi/Desktop/images/18052026/17/58/image_18052026_17_59_05_59777.jpg MAIN: 2026-05-18 17:59:06,176 - INFO - duration: 0.91710401999444 MAIN: 2026-05-18 17:59:06,176 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:00: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-05-18 18:00:05,762 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:00:06,522 - INFO - taking picture MAIN: 2026-05-18 18:00:06,522 - INFO - we take 690 photos in this while loop MAIN: 2026-05-18 18:00:06,522 - INFO - /home/pi/Desktop/images/18052026/17/59/image_18052026_18_00_05_60251.jpg MAIN: 2026-05-18 18:00:06,522 - INFO - duration: 1.0121270540039404 MAIN: 2026-05-18 18:00:06,523 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:01: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-05-18 18:01:05,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-05-18 18:01:06,600 - INFO - taking picture MAIN: 2026-05-18 18:01:06,600 - INFO - we take 691 photos in this while loop MAIN: 2026-05-18 18:01:06,601 - INFO - /home/pi/Desktop/images/18052026/18/00/image_18052026_18_01_05_60051.jpg MAIN: 2026-05-18 18:01:06,601 - INFO - duration: 1.0388835199992172 MAIN: 2026-05-18 18:01:06,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:02: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-05-18 18:02: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-05-18 18:02:05,428 - INFO - taking picture MAIN: 2026-05-18 18:02:05,429 - INFO - we take 692 photos in this while loop MAIN: 2026-05-18 18:02:05,429 - INFO - /home/pi/Desktop/images/18052026/18/01/image_18052026_18_02_04_58858.jpg MAIN: 2026-05-18 18:02:05,429 - INFO - duration: 1.0086969039984979 MAIN: 2026-05-18 18:02:05,429 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:03: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-05-18 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-05-18 18:03:05,591 - INFO - taking picture MAIN: 2026-05-18 18:03:05,592 - INFO - we take 693 photos in this while loop MAIN: 2026-05-18 18:03:05,592 - INFO - /home/pi/Desktop/images/18052026/18/02/image_18052026_18_03_04_60121.jpg MAIN: 2026-05-18 18:03:05,592 - INFO - duration: 1.0496840650012018 MAIN: 2026-05-18 18:03:05,592 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:04: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-05-18 18:04:05,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-05-18 18:04:05,885 - INFO - taking picture MAIN: 2026-05-18 18:04:05,886 - INFO - we take 694 photos in this while loop MAIN: 2026-05-18 18:04:05,886 - INFO - /home/pi/Desktop/images/18052026/18/03/image_18052026_18_04_05_60311.jpg MAIN: 2026-05-18 18:04:05,886 - INFO - duration: 1.0321408480012906 MAIN: 2026-05-18 18:04:05,886 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:05: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-05-18 18:05: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-05-18 18:05:05,797 - INFO - taking picture MAIN: 2026-05-18 18:05:05,798 - INFO - we take 695 photos in this while loop MAIN: 2026-05-18 18:05:05,798 - INFO - /home/pi/Desktop/images/18052026/18/04/image_18052026_18_05_05_59979.jpg MAIN: 2026-05-18 18:05:05,798 - INFO - duration: 0.9647802129984484 MAIN: 2026-05-18 18:05:05,798 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:06:05,326 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:06: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-05-18 18:06:06,040 - INFO - taking picture MAIN: 2026-05-18 18:06:06,041 - INFO - we take 696 photos in this while loop MAIN: 2026-05-18 18:06:06,041 - INFO - /home/pi/Desktop/images/18052026/18/05/image_18052026_18_06_05_60219.jpg MAIN: 2026-05-18 18:06:06,041 - INFO - duration: 0.9881240870017791 MAIN: 2026-05-18 18:06:06,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:07: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-05-18 18:07:05,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-05-18 18:07:06,199 - INFO - taking picture MAIN: 2026-05-18 18:07:06,199 - INFO - we take 697 photos in this while loop MAIN: 2026-05-18 18:07:06,199 - INFO - /home/pi/Desktop/images/18052026/18/06/image_18052026_18_07_05_60179.jpg MAIN: 2026-05-18 18:07:06,199 - INFO - duration: 0.9669682239982649 MAIN: 2026-05-18 18:07:06,200 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:08:05,150 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:08:05,693 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:08:06,386 - INFO - taking picture MAIN: 2026-05-18 18:08:06,386 - INFO - we take 698 photos in this while loop MAIN: 2026-05-18 18:08:06,386 - INFO - /home/pi/Desktop/images/18052026/18/07/image_18052026_18_08_05_60237.jpg MAIN: 2026-05-18 18:08:06,386 - INFO - duration: 0.9168248639980447 MAIN: 2026-05-18 18:08:06,387 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18: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-05-18 18:09: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-05-18 18:09:06,260 - INFO - taking picture MAIN: 2026-05-18 18:09:06,260 - INFO - we take 699 photos in this while loop MAIN: 2026-05-18 18:09:06,260 - INFO - /home/pi/Desktop/images/18052026/18/08/image_18052026_18_09_05_59873.jpg MAIN: 2026-05-18 18:09:06,260 - INFO - duration: 0.9169851030019345 MAIN: 2026-05-18 18:09:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/09' MAIN: 2026-05-18 18:10:04,689 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 18:10:05,400 - INFO - taking picture MAIN: 2026-05-18 18:10:05,400 - INFO - we take 700 photos in this while loop MAIN: 2026-05-18 18:10:05,400 - INFO - /home/pi/Desktop/images/18052026/18/09/image_18052026_18_10_04_59107.jpg MAIN: 2026-05-18 18:10:05,400 - INFO - duration: 0.9493628139971406 MAIN: 2026-05-18 18:10:05,400 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/10' MAIN: 2026-05-18 18:10:05,988 - 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-05-18 18:11:04,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-05-18 18:11: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-05-18 18:11:06,141 - INFO - taking picture MAIN: 2026-05-18 18:11:06,141 - INFO - we take 701 photos in this while loop MAIN: 2026-05-18 18:11:06,142 - INFO - /home/pi/Desktop/images/18052026/18/10/image_18052026_18_11_05_60609.jpg MAIN: 2026-05-18 18:11:06,142 - INFO - duration: 1.0813695920005557 MAIN: 2026-05-18 18:11:06,142 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:12:04,709 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:12: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-05-18 18:12:05,426 - INFO - taking picture MAIN: 2026-05-18 18:12:05,427 - INFO - we take 702 photos in this while loop MAIN: 2026-05-18 18:12:05,427 - INFO - /home/pi/Desktop/images/18052026/18/11/image_18052026_18_12_04_59391.jpg MAIN: 2026-05-18 18:12:05,427 - INFO - duration: 0.9752509140016627 MAIN: 2026-05-18 18:12:05,427 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:13:04,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 ! MAIN: 2026-05-18 18:13:04,950 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:13:05,659 - INFO - taking picture MAIN: 2026-05-18 18:13:05,660 - INFO - we take 703 photos in this while loop MAIN: 2026-05-18 18:13:05,660 - INFO - /home/pi/Desktop/images/18052026/18/12/image_18052026_18_13_04_60208.jpg MAIN: 2026-05-18 18:13:05,660 - INFO - duration: 0.9995111090029241 MAIN: 2026-05-18 18:13:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:14: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-05-18 18:14:05,332 - INFO - taking picture MAIN: 2026-05-18 18:14:05,332 - INFO - we take 704 photos in this while loop MAIN: 2026-05-18 18:14:05,332 - INFO - /home/pi/Desktop/images/18052026/18/13/image_18052026_18_14_04_59701.jpg MAIN: 2026-05-18 18:14:05,332 - INFO - duration: 0.9697055439974065 MAIN: 2026-05-18 18:14:05,332 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/14' MAIN: 2026-05-18 18:14:05,561 - 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-05-18 18:15: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-05-18 18:15:05,463 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:15:06,184 - INFO - taking picture MAIN: 2026-05-18 18:15:06,184 - INFO - we take 705 photos in this while loop MAIN: 2026-05-18 18:15:06,184 - INFO - /home/pi/Desktop/images/18052026/18/14/image_18052026_18_15_05_60721.jpg MAIN: 2026-05-18 18:15:06,184 - INFO - duration: 1.1005694839986973 MAIN: 2026-05-18 18:15:06,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:16:04,925 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:16:05,651 - INFO - taking picture MAIN: 2026-05-18 18:16:05,651 - INFO - we take 706 photos in this while loop MAIN: 2026-05-18 18:16:05,651 - INFO - /home/pi/Desktop/images/18052026/18/15/image_18052026_18_16_04_59604.jpg MAIN: 2026-05-18 18:16:05,651 - INFO - duration: 0.9635197370007518 MAIN: 2026-05-18 18:16:05,651 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/16' MAIN: 2026-05-18 18:16:05,778 - 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-05-18 18:17:04,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-05-18 18:17:05,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-05-18 18:17:06,221 - INFO - taking picture MAIN: 2026-05-18 18:17:06,221 - INFO - we take 707 photos in this while loop MAIN: 2026-05-18 18:17:06,221 - INFO - /home/pi/Desktop/images/18052026/18/16/image_18052026_18_17_05_60533.jpg MAIN: 2026-05-18 18:17:06,221 - INFO - duration: 1.000517520995345 MAIN: 2026-05-18 18:17:06,222 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:18:04,862 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:18:05,132 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:18:05,605 - INFO - taking picture MAIN: 2026-05-18 18:18:05,605 - INFO - we take 708 photos in this while loop MAIN: 2026-05-18 18:18:05,605 - INFO - /home/pi/Desktop/images/18052026/18/17/image_18052026_18_18_04_59357.jpg MAIN: 2026-05-18 18:18:05,605 - INFO - duration: 1.0269869719995768 MAIN: 2026-05-18 18:18:05,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:19: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-05-18 18:19:05,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-05-18 18:19:06,440 - INFO - taking picture MAIN: 2026-05-18 18:19:06,440 - INFO - we take 709 photos in this while loop MAIN: 2026-05-18 18:19:06,440 - INFO - /home/pi/Desktop/images/18052026/18/18/image_18052026_18_19_05_60867.jpg MAIN: 2026-05-18 18:19:06,440 - INFO - duration: 0.993961174004653 MAIN: 2026-05-18 18:19:06,441 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:20: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-05-18 18:20: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 ! MAIN: 2026-05-18 18:20:06,021 - INFO - taking picture MAIN: 2026-05-18 18:20:06,022 - INFO - we take 710 photos in this while loop MAIN: 2026-05-18 18:20:06,022 - INFO - /home/pi/Desktop/images/18052026/18/19/image_18052026_18_20_05_59571.jpg MAIN: 2026-05-18 18:20:06,022 - INFO - duration: 1.003852633999486 MAIN: 2026-05-18 18:20:06,022 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:21:05,309 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:21:05,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-05-18 18:21:06,427 - INFO - taking picture MAIN: 2026-05-18 18:21:06,427 - INFO - we take 711 photos in this while loop MAIN: 2026-05-18 18:21:06,428 - INFO - /home/pi/Desktop/images/18052026/18/20/image_18052026_18_21_05_60469.jpg MAIN: 2026-05-18 18:21:06,428 - INFO - duration: 0.9396775639979751 MAIN: 2026-05-18 18:21:06,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:22:05,117 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:22:05,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-05-18 18:22:05,835 - INFO - taking picture MAIN: 2026-05-18 18:22:05,835 - INFO - we take 712 photos in this while loop MAIN: 2026-05-18 18:22:05,835 - INFO - /home/pi/Desktop/images/18052026/18/21/image_18052026_18_22_05_59344.jpg MAIN: 2026-05-18 18:22:05,835 - INFO - duration: 1.002648143999977 MAIN: 2026-05-18 18:22:05,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:23:04,685 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:23:04,883 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:23:05,592 - INFO - taking picture MAIN: 2026-05-18 18:23:05,592 - INFO - we take 713 photos in this while loop MAIN: 2026-05-18 18:23:05,592 - INFO - /home/pi/Desktop/images/18052026/18/22/image_18052026_18_23_04_59751.jpg MAIN: 2026-05-18 18:23:05,592 - INFO - duration: 1.0076787380021415 MAIN: 2026-05-18 18:23:05,592 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:24:04,948 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:24:05,594 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:24:06,354 - INFO - taking picture MAIN: 2026-05-18 18:24:06,354 - INFO - we take 714 photos in this while loop MAIN: 2026-05-18 18:24:06,354 - INFO - /home/pi/Desktop/images/18052026/18/23/image_18052026_18_24_05_60743.jpg MAIN: 2026-05-18 18:24:06,354 - INFO - duration: 1.0261584229956497 MAIN: 2026-05-18 18:24:06,354 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:25: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-05-18 18:25:05,242 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:25:05,742 - INFO - taking picture MAIN: 2026-05-18 18:25:05,742 - INFO - we take 715 photos in this while loop MAIN: 2026-05-18 18:25:05,742 - INFO - /home/pi/Desktop/images/18052026/18/24/image_18052026_18_25_05_59408.jpg MAIN: 2026-05-18 18:25:05,743 - INFO - duration: 1.0061915280020912 MAIN: 2026-05-18 18:25:05,743 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:26: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-05-18 18:26:05,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-05-18 18:26:06,554 - INFO - taking picture MAIN: 2026-05-18 18:26:06,555 - INFO - we take 716 photos in this while loop MAIN: 2026-05-18 18:26:06,555 - INFO - /home/pi/Desktop/images/18052026/18/25/image_18052026_18_26_05_60801.jpg MAIN: 2026-05-18 18:26:06,555 - INFO - duration: 1.0174416480003856 MAIN: 2026-05-18 18:26:06,555 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:27:05,184 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:27:05,312 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:27:06,024 - INFO - taking picture MAIN: 2026-05-18 18:27:06,024 - INFO - we take 717 photos in this while loop MAIN: 2026-05-18 18:27:06,024 - INFO - /home/pi/Desktop/images/18052026/18/26/image_18052026_18_27_05_59459.jpg MAIN: 2026-05-18 18:27:06,024 - INFO - duration: 1.027359088002413 MAIN: 2026-05-18 18:27:06,024 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:28:04,842 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:28:05,598 - INFO - taking picture MAIN: 2026-05-18 18:28:05,598 - INFO - we take 718 photos in this while loop MAIN: 2026-05-18 18:28:05,598 - INFO - /home/pi/Desktop/images/18052026/18/27/image_18052026_18_28_04_59585.jpg MAIN: 2026-05-18 18:28:05,598 - INFO - duration: 1.0161692249967018 MAIN: 2026-05-18 18:28:05,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/28' MAIN: 2026-05-18 18:28:05,694 - 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-05-18 18:29:05,561 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:29: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-05-18 18:29:06,295 - INFO - taking picture MAIN: 2026-05-18 18:29:06,295 - INFO - we take 719 photos in this while loop MAIN: 2026-05-18 18:29:06,295 - INFO - /home/pi/Desktop/images/18052026/18/28/image_18052026_18_29_05_60704.jpg MAIN: 2026-05-18 18:29:06,295 - INFO - duration: 1.0092939469977864 MAIN: 2026-05-18 18:29:06,296 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:30: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-05-18 18:30:05,383 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:30:05,741 - INFO - taking picture MAIN: 2026-05-18 18:30:05,741 - INFO - we take 720 photos in this while loop MAIN: 2026-05-18 18:30:05,741 - INFO - /home/pi/Desktop/images/18052026/18/29/image_18052026_18_30_04_59423.jpg MAIN: 2026-05-18 18:30:05,741 - INFO - duration: 1.0319776460019057 MAIN: 2026-05-18 18:30:05,741 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:31: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-05-18 18:31: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-05-18 18:31:06,404 - INFO - taking picture MAIN: 2026-05-18 18:31:06,404 - INFO - we take 721 photos in this while loop MAIN: 2026-05-18 18:31:06,404 - INFO - /home/pi/Desktop/images/18052026/18/30/image_18052026_18_31_05_60640.jpg MAIN: 2026-05-18 18:31:06,404 - INFO - duration: 1.0544388630005415 MAIN: 2026-05-18 18:31:06,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:32:04,901 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:32: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-05-18 18:32:05,624 - INFO - taking picture MAIN: 2026-05-18 18:32:05,624 - INFO - we take 722 photos in this while loop MAIN: 2026-05-18 18:32:05,624 - INFO - /home/pi/Desktop/images/18052026/18/31/image_18052026_18_32_04_59268.jpg MAIN: 2026-05-18 18:32:05,624 - INFO - duration: 1.0065347810013918 MAIN: 2026-05-18 18:32:05,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18: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-05-18 18:33:05,587 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:33:06,294 - INFO - taking picture MAIN: 2026-05-18 18:33:06,295 - INFO - we take 723 photos in this while loop MAIN: 2026-05-18 18:33:06,295 - INFO - /home/pi/Desktop/images/18052026/18/32/image_18052026_18_33_05_60685.jpg MAIN: 2026-05-18 18:33:06,295 - INFO - duration: 0.9911773869971512 MAIN: 2026-05-18 18:33:06,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:34: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-05-18 18:34:05,846 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:34:05,945 - INFO - taking picture MAIN: 2026-05-18 18:34:05,945 - INFO - we take 724 photos in this while loop MAIN: 2026-05-18 18:34:05,945 - INFO - /home/pi/Desktop/images/18052026/18/33/image_18052026_18_34_05_59587.jpg MAIN: 2026-05-18 18:34:05,946 - INFO - duration: 1.054707479001081 MAIN: 2026-05-18 18:34:05,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:35: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-05-18 18:35:05,200 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:35:05,546 - INFO - taking picture MAIN: 2026-05-18 18:35:05,546 - INFO - we take 725 photos in this while loop MAIN: 2026-05-18 18:35:05,546 - INFO - /home/pi/Desktop/images/18052026/18/34/image_18052026_18_35_04_59588.jpg MAIN: 2026-05-18 18:35:05,546 - INFO - duration: 1.0671440549995168 MAIN: 2026-05-18 18:35:05,546 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:36:04,884 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:36:05,088 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:36:05,658 - INFO - taking picture MAIN: 2026-05-18 18:36:05,659 - INFO - we take 726 photos in this while loop MAIN: 2026-05-18 18:36:05,659 - INFO - /home/pi/Desktop/images/18052026/18/35/image_18052026_18_36_04_60104.jpg MAIN: 2026-05-18 18:36:05,659 - INFO - duration: 1.0749752210031147 MAIN: 2026-05-18 18:36:05,659 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:37: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-05-18 18:37: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-05-18 18:37:05,455 - INFO - taking picture MAIN: 2026-05-18 18:37:05,455 - INFO - we take 727 photos in this while loop MAIN: 2026-05-18 18:37:05,455 - INFO - /home/pi/Desktop/images/18052026/18/36/image_18052026_18_37_04_59913.jpg MAIN: 2026-05-18 18:37:05,456 - INFO - duration: 0.958457148000889 MAIN: 2026-05-18 18:37:05,456 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/37' MAIN: 2026-05-18 18:38: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 18:38:05,367 - INFO - taking picture MAIN: 2026-05-18 18:38:05,367 - INFO - we take 728 photos in this while loop MAIN: 2026-05-18 18:38:05,367 - INFO - /home/pi/Desktop/images/18052026/18/37/image_18052026_18_38_04_59917.jpg MAIN: 2026-05-18 18:38:05,367 - INFO - duration: 0.953046146001725 MAIN: 2026-05-18 18:38:05,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/38' MAIN: 2026-05-18 18:38:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 18:39: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-05-18 18:39: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 ! MAIN: 2026-05-18 18:39:06,368 - INFO - taking picture MAIN: 2026-05-18 18:39:06,369 - INFO - we take 729 photos in this while loop MAIN: 2026-05-18 18:39:06,369 - INFO - /home/pi/Desktop/images/18052026/18/38/image_18052026_18_39_05_60917.jpg MAIN: 2026-05-18 18:39:06,369 - INFO - duration: 1.0372897409979487 MAIN: 2026-05-18 18:39:06,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:40:04,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-05-18 18:40:05,390 - INFO - taking picture MAIN: 2026-05-18 18:40:05,390 - INFO - we take 730 photos in this while loop MAIN: 2026-05-18 18:40:05,390 - INFO - /home/pi/Desktop/images/18052026/18/39/image_18052026_18_40_04_58999.jpg MAIN: 2026-05-18 18:40:05,390 - INFO - duration: 1.0592116320040077 MAIN: 2026-05-18 18:40:05,391 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/40' MAIN: 2026-05-18 18:40: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 18:41:04,606 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:41:05,115 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:41:05,311 - INFO - taking picture MAIN: 2026-05-18 18:41:05,312 - INFO - we take 731 photos in this while loop MAIN: 2026-05-18 18:41:05,312 - INFO - /home/pi/Desktop/images/18052026/18/40/image_18052026_18_41_04_60011.jpg MAIN: 2026-05-18 18:41:05,312 - INFO - duration: 0.9694031070030178 MAIN: 2026-05-18 18:41:05,312 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:42:04,634 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:42: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-05-18 18:42:05,332 - INFO - taking picture MAIN: 2026-05-18 18:42:05,332 - INFO - we take 732 photos in this while loop MAIN: 2026-05-18 18:42:05,332 - INFO - /home/pi/Desktop/images/18052026/18/41/image_18052026_18_42_04_60006.jpg MAIN: 2026-05-18 18:42:05,332 - INFO - duration: 0.9829825369961327 MAIN: 2026-05-18 18:42:05,333 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:43: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-05-18 18:43: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-05-18 18:43:06,371 - INFO - taking picture MAIN: 2026-05-18 18:43:06,371 - INFO - we take 733 photos in this while loop MAIN: 2026-05-18 18:43:06,371 - INFO - /home/pi/Desktop/images/18052026/18/42/image_18052026_18_43_05_61002.jpg MAIN: 2026-05-18 18:43:06,371 - INFO - duration: 1.0188666639951407 MAIN: 2026-05-18 18:43:06,372 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/43' MAIN: 2026-05-18 18:44: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 18:44:05,250 - INFO - taking picture MAIN: 2026-05-18 18:44:05,250 - INFO - we take 734 photos in this while loop MAIN: 2026-05-18 18:44:05,251 - INFO - /home/pi/Desktop/images/18052026/18/43/image_18052026_18_44_04_58987.jpg MAIN: 2026-05-18 18:44:05,251 - INFO - duration: 0.9103546190017369 MAIN: 2026-05-18 18:44:05,251 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/44' MAIN: 2026-05-18 18:44: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-05-18 18:45:05,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-05-18 18:45: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 ! MAIN: 2026-05-18 18:45:06,387 - INFO - taking picture MAIN: 2026-05-18 18:45:06,387 - INFO - we take 735 photos in this while loop MAIN: 2026-05-18 18:45:06,387 - INFO - /home/pi/Desktop/images/18052026/18/44/image_18052026_18_45_05_61035.jpg MAIN: 2026-05-18 18:45:06,388 - INFO - duration: 1.01167969800008 MAIN: 2026-05-18 18:45:06,388 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:46: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-05-18 18:46:05,683 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:46:06,285 - INFO - taking picture MAIN: 2026-05-18 18:46:06,285 - INFO - we take 736 photos in this while loop MAIN: 2026-05-18 18:46:06,285 - INFO - /home/pi/Desktop/images/18052026/18/45/image_18052026_18_46_05_59922.jpg MAIN: 2026-05-18 18:46:06,285 - INFO - duration: 0.987340084000607 MAIN: 2026-05-18 18:46:06,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:47: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-05-18 18:47: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-05-18 18:47:06,342 - INFO - taking picture MAIN: 2026-05-18 18:47:06,342 - INFO - we take 737 photos in this while loop MAIN: 2026-05-18 18:47:06,342 - INFO - /home/pi/Desktop/images/18052026/18/46/image_18052026_18_47_05_60075.jpg MAIN: 2026-05-18 18:47:06,342 - INFO - duration: 0.9686026240015053 MAIN: 2026-05-18 18:47:06,343 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:48:05,463 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:48:05,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-05-18 18:48:06,492 - INFO - taking picture MAIN: 2026-05-18 18:48:06,493 - INFO - we take 738 photos in this while loop MAIN: 2026-05-18 18:48:06,493 - INFO - /home/pi/Desktop/images/18052026/18/47/image_18052026_18_48_05_60180.jpg MAIN: 2026-05-18 18:48:06,493 - INFO - duration: 0.9383330280033988 MAIN: 2026-05-18 18:48:06,493 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:49:05,332 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:49: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-05-18 18:49:06,278 - INFO - taking picture MAIN: 2026-05-18 18:49:06,278 - INFO - we take 739 photos in this while loop MAIN: 2026-05-18 18:49:06,278 - INFO - /home/pi/Desktop/images/18052026/18/48/image_18052026_18_49_05_59664.jpg MAIN: 2026-05-18 18:49:06,278 - INFO - duration: 1.0593381250000675 MAIN: 2026-05-18 18:49:06,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/49' MAIN: 2026-05-18 18:50: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-05-18 18:50:05,299 - INFO - taking picture MAIN: 2026-05-18 18:50:05,300 - INFO - we take 740 photos in this while loop MAIN: 2026-05-18 18:50:05,300 - INFO - /home/pi/Desktop/images/18052026/18/49/image_18052026_18_50_04_59135.jpg MAIN: 2026-05-18 18:50:05,300 - INFO - duration: 0.9457177160002175 MAIN: 2026-05-18 18:50:05,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/50' MAIN: 2026-05-18 18:50:05,991 - 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-05-18 18:51:05,556 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:51:05,681 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:51:06,372 - INFO - taking picture MAIN: 2026-05-18 18:51:06,372 - INFO - we take 741 photos in this while loop MAIN: 2026-05-18 18:51:06,372 - INFO - /home/pi/Desktop/images/18052026/18/50/image_18052026_18_51_05_61047.jpg MAIN: 2026-05-18 18:51:06,372 - INFO - duration: 0.9710758990040631 MAIN: 2026-05-18 18:51:06,372 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:52:04,764 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:52:04,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 ! MAIN: 2026-05-18 18:52:05,487 - INFO - taking picture MAIN: 2026-05-18 18:52:05,487 - INFO - we take 742 photos in this while loop MAIN: 2026-05-18 18:52:05,487 - INFO - /home/pi/Desktop/images/18052026/18/51/image_18052026_18_52_04_59105.jpg MAIN: 2026-05-18 18:52:05,487 - INFO - duration: 0.9811634670040803 MAIN: 2026-05-18 18:52:05,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:53:04,887 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 18:53:05,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-05-18 18:53:06,509 - INFO - taking picture MAIN: 2026-05-18 18:53:06,510 - INFO - we take 743 photos in this while loop MAIN: 2026-05-18 18:53:06,510 - INFO - /home/pi/Desktop/images/18052026/18/52/image_18052026_18_53_05_60942.jpg MAIN: 2026-05-18 18:53:06,510 - INFO - duration: 1.0608373659997596 MAIN: 2026-05-18 18:53:06,510 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:54:04,852 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:54: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-05-18 18:54:05,588 - INFO - taking picture MAIN: 2026-05-18 18:54:05,589 - INFO - we take 744 photos in this while loop MAIN: 2026-05-18 18:54:05,589 - INFO - /home/pi/Desktop/images/18052026/18/53/image_18052026_18_54_04_59133.jpg MAIN: 2026-05-18 18:54:05,589 - INFO - duration: 1.0067838670001947 MAIN: 2026-05-18 18:54:05,589 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:55: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-05-18 18:55:05,855 - INFO - taking picture MAIN: 2026-05-18 18:55:05,855 - INFO - we take 745 photos in this while loop MAIN: 2026-05-18 18:55:05,855 - INFO - /home/pi/Desktop/images/18052026/18/54/image_18052026_18_55_05_60307.jpg MAIN: 2026-05-18 18:55:05,855 - INFO - duration: 0.9658762639955967 MAIN: 2026-05-18 18:55:05,856 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/55' MAIN: 2026-05-18 18:55: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-05-18 18:56: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-05-18 18:56: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-05-18 18:56:06,145 - INFO - taking picture MAIN: 2026-05-18 18:56:06,146 - INFO - we take 746 photos in this while loop MAIN: 2026-05-18 18:56:06,146 - INFO - /home/pi/Desktop/images/18052026/18/55/image_18052026_18_56_05_60350.jpg MAIN: 2026-05-18 18:56:06,146 - INFO - duration: 0.90636089900363 MAIN: 2026-05-18 18:56:06,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:57: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-05-18 18:57:05,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-05-18 18:57:06,258 - INFO - taking picture MAIN: 2026-05-18 18:57:06,258 - INFO - we take 747 photos in this while loop MAIN: 2026-05-18 18:57:06,258 - INFO - /home/pi/Desktop/images/18052026/18/56/image_18052026_18_57_05_60093.jpg MAIN: 2026-05-18 18:57:06,258 - INFO - duration: 0.9256781509975553 MAIN: 2026-05-18 18:57:06,259 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 18:58:04,992 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 18:58:05,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 ! MAIN: 2026-05-18 18:58:05,774 - INFO - taking picture MAIN: 2026-05-18 18:58:05,774 - INFO - we take 748 photos in this while loop MAIN: 2026-05-18 18:58:05,774 - INFO - /home/pi/Desktop/images/18052026/18/57/image_18052026_18_58_04_59380.jpg MAIN: 2026-05-18 18:58:05,774 - INFO - duration: 1.0608708239960833 MAIN: 2026-05-18 18:58:05,775 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/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-05-18 18:59:04,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-05-18 18:59: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-05-18 18:59:05,549 - INFO - taking picture MAIN: 2026-05-18 18:59:05,550 - INFO - we take 749 photos in this while loop MAIN: 2026-05-18 18:59:05,550 - INFO - /home/pi/Desktop/images/18052026/18/58/image_18052026_18_59_04_59833.jpg MAIN: 2026-05-18 18:59:05,550 - INFO - duration: 1.0028973069929634 MAIN: 2026-05-18 18:59:05,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/18/59' MAIN: 2026-05-18 19:00: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:00:05,584 - INFO - taking picture MAIN: 2026-05-18 19:00:05,584 - INFO - we take 750 photos in this while loop MAIN: 2026-05-18 19:00:05,584 - INFO - /home/pi/Desktop/images/18052026/18/59/image_18052026_19_00_04_60108.jpg MAIN: 2026-05-18 19:00:05,584 - INFO - duration: 0.9288646000059089 MAIN: 2026-05-18 19:00:05,584 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/00' MAIN: 2026-05-18 19:00:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:01:04,812 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:01:05,526 - INFO - taking picture MAIN: 2026-05-18 19:01:05,526 - INFO - we take 751 photos in this while loop MAIN: 2026-05-18 19:01:05,526 - INFO - /home/pi/Desktop/images/18052026/19/00/image_18052026_19_01_04_59915.jpg MAIN: 2026-05-18 19:01:05,526 - INFO - duration: 0.9554105220013298 MAIN: 2026-05-18 19:01:05,527 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/01' MAIN: 2026-05-18 19:01:05,764 - 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-05-18 19:02: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-05-18 19:02:05,000 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:02:05,460 - INFO - taking picture MAIN: 2026-05-18 19:02:05,460 - INFO - we take 752 photos in this while loop MAIN: 2026-05-18 19:02:05,460 - INFO - /home/pi/Desktop/images/18052026/19/01/image_18052026_19_02_04_59928.jpg MAIN: 2026-05-18 19:02:05,461 - INFO - duration: 0.9608403989986982 MAIN: 2026-05-18 19:02:05,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:03:04,764 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:03: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-05-18 19:03:05,462 - INFO - taking picture MAIN: 2026-05-18 19:03:05,462 - INFO - we take 753 photos in this while loop MAIN: 2026-05-18 19:03:05,462 - INFO - /home/pi/Desktop/images/18052026/19/02/image_18052026_19_03_04_59981.jpg MAIN: 2026-05-18 19:03:05,462 - INFO - duration: 0.980897304994869 MAIN: 2026-05-18 19:03:05,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:04: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-05-18 19:04:05,121 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:04:05,553 - INFO - taking picture MAIN: 2026-05-18 19:04:05,553 - INFO - we take 754 photos in this while loop MAIN: 2026-05-18 19:04:05,553 - INFO - /home/pi/Desktop/images/18052026/19/03/image_18052026_19_04_04_60056.jpg MAIN: 2026-05-18 19:04:05,554 - INFO - duration: 1.0159307140056626 MAIN: 2026-05-18 19:04:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:05: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-05-18 19:05: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-05-18 19:05:06,131 - INFO - taking picture MAIN: 2026-05-18 19:05:06,132 - INFO - we take 755 photos in this while loop MAIN: 2026-05-18 19:05:06,132 - INFO - /home/pi/Desktop/images/18052026/19/04/image_18052026_19_05_05_60623.jpg MAIN: 2026-05-18 19:05:06,132 - INFO - duration: 0.9711524330050452 MAIN: 2026-05-18 19:05:06,132 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:06: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-05-18 19:06: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-05-18 19:06:06,141 - INFO - taking picture MAIN: 2026-05-18 19:06:06,141 - INFO - we take 756 photos in this while loop MAIN: 2026-05-18 19:06:06,141 - INFO - /home/pi/Desktop/images/18052026/19/05/image_18052026_19_06_05_60020.jpg MAIN: 2026-05-18 19:06:06,141 - INFO - duration: 0.9594567919994006 MAIN: 2026-05-18 19:06:06,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:07: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-05-18 19:07: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-05-18 19:07:06,240 - INFO - taking picture MAIN: 2026-05-18 19:07:06,240 - INFO - we take 757 photos in this while loop MAIN: 2026-05-18 19:07:06,240 - INFO - /home/pi/Desktop/images/18052026/19/06/image_18052026_19_07_05_59975.jpg MAIN: 2026-05-18 19:07:06,241 - INFO - duration: 1.0832164140010718 MAIN: 2026-05-18 19:07:06,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:08:05,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-05-18 19:08:05,814 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:08:06,545 - INFO - taking picture MAIN: 2026-05-18 19:08:06,546 - INFO - we take 758 photos in this while loop MAIN: 2026-05-18 19:08:06,546 - INFO - /home/pi/Desktop/images/18052026/19/07/image_18052026_19_08_05_60381.jpg MAIN: 2026-05-18 19:08:06,546 - INFO - duration: 1.0065926539973589 MAIN: 2026-05-18 19:08:06,546 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:09:04,694 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:09:05,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-05-18 19:09:06,418 - INFO - taking picture MAIN: 2026-05-18 19:09:06,418 - INFO - we take 759 photos in this while loop MAIN: 2026-05-18 19:09:06,418 - INFO - /home/pi/Desktop/images/18052026/19/08/image_18052026_19_09_05_59920.jpg MAIN: 2026-05-18 19:09:06,419 - INFO - duration: 0.9591654679970816 MAIN: 2026-05-18 19:09:06,419 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:10: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-05-18 19:10:05,413 - INFO - taking picture MAIN: 2026-05-18 19:10:05,413 - INFO - we take 760 photos in this while loop MAIN: 2026-05-18 19:10:05,413 - INFO - /home/pi/Desktop/images/18052026/19/09/image_18052026_19_10_04_59045.jpg MAIN: 2026-05-18 19:10:05,413 - INFO - duration: 0.9083088089973899 MAIN: 2026-05-18 19:10:05,414 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/10' MAIN: 2026-05-18 19:10: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-05-18 19:11:04,688 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:11:04,797 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:11:05,402 - INFO - taking picture MAIN: 2026-05-18 19:11:05,402 - INFO - we take 761 photos in this while loop MAIN: 2026-05-18 19:11:05,402 - INFO - /home/pi/Desktop/images/18052026/19/10/image_18052026_19_11_04_59901.jpg MAIN: 2026-05-18 19:11:05,402 - INFO - duration: 0.9952006750027067 MAIN: 2026-05-18 19:11:05,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:12: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-05-18 19:12: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-05-18 19:12:05,826 - INFO - taking picture MAIN: 2026-05-18 19:12:05,826 - INFO - we take 762 photos in this while loop MAIN: 2026-05-18 19:12:05,826 - INFO - /home/pi/Desktop/images/18052026/19/11/image_18052026_19_12_05_60331.jpg MAIN: 2026-05-18 19:12:05,826 - INFO - duration: 1.0877782790048514 MAIN: 2026-05-18 19:12:05,827 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:13: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-05-18 19:13:05,130 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:13:05,894 - INFO - taking picture MAIN: 2026-05-18 19:13:05,894 - INFO - we take 763 photos in this while loop MAIN: 2026-05-18 19:13:05,894 - INFO - /home/pi/Desktop/images/18052026/19/12/image_18052026_19_13_05_60082.jpg MAIN: 2026-05-18 19:13:05,894 - INFO - duration: 1.0736831149988575 MAIN: 2026-05-18 19:13:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:14: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-05-18 19:14:05,765 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:14:05,937 - INFO - taking picture MAIN: 2026-05-18 19:14:05,937 - INFO - we take 764 photos in this while loop MAIN: 2026-05-18 19:14:05,938 - INFO - /home/pi/Desktop/images/18052026/19/13/image_18052026_19_14_05_60127.jpg MAIN: 2026-05-18 19:14:05,938 - INFO - duration: 0.9894024699970032 MAIN: 2026-05-18 19:14:05,938 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/14' MAIN: 2026-05-18 19:15:04,686 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 19:15:05,382 - INFO - taking picture MAIN: 2026-05-18 19:15:05,382 - INFO - we take 765 photos in this while loop MAIN: 2026-05-18 19:15:05,383 - INFO - /home/pi/Desktop/images/18052026/19/14/image_18052026_19_15_04_59499.jpg MAIN: 2026-05-18 19:15:05,383 - INFO - duration: 0.9353996869976982 MAIN: 2026-05-18 19:15:05,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/15' MAIN: 2026-05-18 19:15: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-05-18 19:16:04,901 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:16:04,994 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:16:05,601 - INFO - taking picture MAIN: 2026-05-18 19:16:05,601 - INFO - we take 766 photos in this while loop MAIN: 2026-05-18 19:16:05,601 - INFO - /home/pi/Desktop/images/18052026/19/15/image_18052026_19_16_04_60176.jpg MAIN: 2026-05-18 19:16:05,601 - INFO - duration: 0.9779068220013869 MAIN: 2026-05-18 19:16:05,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:17: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-05-18 19:17:05,144 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:17:05,704 - INFO - taking picture MAIN: 2026-05-18 19:17:05,704 - INFO - we take 767 photos in this while loop MAIN: 2026-05-18 19:17:05,704 - INFO - /home/pi/Desktop/images/18052026/19/16/image_18052026_19_17_05_60099.jpg MAIN: 2026-05-18 19:17:05,704 - INFO - duration: 0.9810789719995228 MAIN: 2026-05-18 19:17:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:18:05,271 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:18: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-05-18 19:18:06,047 - INFO - taking picture MAIN: 2026-05-18 19:18:06,047 - INFO - we take 768 photos in this while loop MAIN: 2026-05-18 19:18:06,047 - INFO - /home/pi/Desktop/images/18052026/19/17/image_18052026_19_18_05_60272.jpg MAIN: 2026-05-18 19:18:06,047 - INFO - duration: 1.0509759330016095 MAIN: 2026-05-18 19:18:06,048 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:19:05,377 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:19:05,491 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:19:06,073 - INFO - taking picture MAIN: 2026-05-18 19:19:06,073 - INFO - we take 769 photos in this while loop MAIN: 2026-05-18 19:19:06,073 - INFO - /home/pi/Desktop/images/18052026/19/18/image_18052026_19_19_05_60104.jpg MAIN: 2026-05-18 19:19:06,074 - INFO - duration: 0.9727961440003128 MAIN: 2026-05-18 19:19:06,074 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:20: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-05-18 19:20:05,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-05-18 19:20:06,359 - INFO - taking picture MAIN: 2026-05-18 19:20:06,359 - INFO - we take 770 photos in this while loop MAIN: 2026-05-18 19:20:06,359 - INFO - /home/pi/Desktop/images/18052026/19/19/image_18052026_19_20_05_60261.jpg MAIN: 2026-05-18 19:20:06,359 - INFO - duration: 0.9969041680014925 MAIN: 2026-05-18 19:20:06,360 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:21: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-05-18 19:21:05,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-05-18 19:21:06,375 - INFO - taking picture MAIN: 2026-05-18 19:21:06,376 - INFO - we take 771 photos in this while loop MAIN: 2026-05-18 19:21:06,376 - INFO - /home/pi/Desktop/images/18052026/19/20/image_18052026_19_21_05_60061.jpg MAIN: 2026-05-18 19:21:06,376 - INFO - duration: 0.9518278379982803 MAIN: 2026-05-18 19:21:06,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:22: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-05-18 19:22:05,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-05-18 19:22:06,361 - INFO - taking picture MAIN: 2026-05-18 19:22:06,361 - INFO - we take 772 photos in this while loop MAIN: 2026-05-18 19:22:06,361 - INFO - /home/pi/Desktop/images/18052026/19/21/image_18052026_19_22_05_60027.jpg MAIN: 2026-05-18 19:22:06,361 - INFO - duration: 0.9095896309954696 MAIN: 2026-05-18 19:22:06,362 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:23: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-05-18 19:23: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-05-18 19:23:05,664 - INFO - taking picture MAIN: 2026-05-18 19:23:05,665 - INFO - we take 773 photos in this while loop MAIN: 2026-05-18 19:23:05,665 - INFO - /home/pi/Desktop/images/18052026/19/22/image_18052026_19_23_04_59205.jpg MAIN: 2026-05-18 19:23:05,665 - INFO - duration: 1.0076802639960079 MAIN: 2026-05-18 19:23:05,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:24:05,130 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:24: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-05-18 19:24:05,831 - INFO - taking picture MAIN: 2026-05-18 19:24:05,831 - INFO - we take 774 photos in this while loop MAIN: 2026-05-18 19:24:05,831 - INFO - /home/pi/Desktop/images/18052026/19/23/image_18052026_19_24_05_60215.jpg MAIN: 2026-05-18 19:24:05,832 - INFO - duration: 0.9591021779997391 MAIN: 2026-05-18 19:24:05,832 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:25: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-05-18 19:25: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-05-18 19:25:05,923 - INFO - taking picture MAIN: 2026-05-18 19:25:05,923 - INFO - we take 775 photos in this while loop MAIN: 2026-05-18 19:25:05,923 - INFO - /home/pi/Desktop/images/18052026/19/24/image_18052026_19_25_05_60034.jpg MAIN: 2026-05-18 19:25:05,923 - INFO - duration: 1.0160859570023604 MAIN: 2026-05-18 19:25:05,924 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:26: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-05-18 19:26:05,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-05-18 19:26:06,291 - INFO - taking picture MAIN: 2026-05-18 19:26:06,292 - INFO - we take 776 photos in this while loop MAIN: 2026-05-18 19:26:06,292 - INFO - /home/pi/Desktop/images/18052026/19/25/image_18052026_19_26_05_60411.jpg MAIN: 2026-05-18 19:26:06,292 - INFO - duration: 0.9734030379986507 MAIN: 2026-05-18 19:26:06,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:27: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-05-18 19:27:05,053 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:27:05,743 - INFO - taking picture MAIN: 2026-05-18 19:27:05,744 - INFO - we take 777 photos in this while loop MAIN: 2026-05-18 19:27:05,744 - INFO - /home/pi/Desktop/images/18052026/19/26/image_18052026_19_27_05_59457.jpg MAIN: 2026-05-18 19:27:05,744 - INFO - duration: 0.9674100150004961 MAIN: 2026-05-18 19:27:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:28:04,932 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19: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-05-18 19:28:05,627 - INFO - taking picture MAIN: 2026-05-18 19:28:05,627 - INFO - we take 778 photos in this while loop MAIN: 2026-05-18 19:28:05,628 - INFO - /home/pi/Desktop/images/18052026/19/27/image_18052026_19_28_04_59882.jpg MAIN: 2026-05-18 19:28:05,628 - INFO - duration: 0.9686820520000765 MAIN: 2026-05-18 19:28:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:29: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-05-18 19:29:04,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-05-18 19:29:05,521 - INFO - taking picture MAIN: 2026-05-18 19:29:05,521 - INFO - we take 779 photos in this while loop MAIN: 2026-05-18 19:29:05,521 - INFO - /home/pi/Desktop/images/18052026/19/28/image_18052026_19_29_04_59803.jpg MAIN: 2026-05-18 19:29:05,522 - INFO - duration: 1.0588244309983565 MAIN: 2026-05-18 19:29:05,522 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:30: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 MAIN: 2026-05-18 19:30:05,552 - INFO - taking picture MAIN: 2026-05-18 19:30:05,552 - INFO - we take 780 photos in this while loop MAIN: 2026-05-18 19:30:05,552 - INFO - /home/pi/Desktop/images/18052026/19/29/image_18052026_19_30_04_60176.jpg MAIN: 2026-05-18 19:30:05,552 - INFO - duration: 0.9134933300010744 MAIN: 2026-05-18 19:30:05,553 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/30' MAIN: 2026-05-18 19:30: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:31: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-05-18 19:31:05,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 MAIN: 2026-05-18 19:31:06,329 - INFO - taking picture MAIN: 2026-05-18 19:31:06,329 - INFO - we take 781 photos in this while loop MAIN: 2026-05-18 19:31:06,330 - INFO - /home/pi/Desktop/images/18052026/19/30/image_18052026_19_31_05_60685.jpg MAIN: 2026-05-18 19:31:06,330 - INFO - duration: 1.0049572139978409 MAIN: 2026-05-18 19:31:06,330 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:32: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-05-18 19:32:05,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-05-18 19:32:05,848 - INFO - taking picture MAIN: 2026-05-18 19:32:05,848 - INFO - we take 782 photos in this while loop MAIN: 2026-05-18 19:32:05,848 - INFO - /home/pi/Desktop/images/18052026/19/31/image_18052026_19_32_05_59449.jpg MAIN: 2026-05-18 19:32:05,848 - INFO - duration: 1.0735697519994574 MAIN: 2026-05-18 19:32:05,849 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:33: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-05-18 19:33: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-05-18 19:33:06,192 - INFO - taking picture MAIN: 2026-05-18 19:33:06,192 - INFO - we take 783 photos in this while loop MAIN: 2026-05-18 19:33:06,192 - INFO - /home/pi/Desktop/images/18052026/19/32/image_18052026_19_33_05_60325.jpg MAIN: 2026-05-18 19:33:06,192 - INFO - duration: 1.0923545979967457 MAIN: 2026-05-18 19:33:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:34: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-05-18 19:34:05,699 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:34:06,433 - INFO - taking picture MAIN: 2026-05-18 19:34:06,433 - INFO - we take 784 photos in this while loop MAIN: 2026-05-18 19:34:06,433 - INFO - /home/pi/Desktop/images/18052026/19/33/image_18052026_19_34_05_60357.jpg MAIN: 2026-05-18 19:34:06,433 - INFO - duration: 0.9755459040025016 MAIN: 2026-05-18 19:34:06,434 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19: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-05-18 19:35: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-05-18 19:35:05,926 - INFO - taking picture MAIN: 2026-05-18 19:35:05,926 - INFO - we take 785 photos in this while loop MAIN: 2026-05-18 19:35:05,926 - INFO - /home/pi/Desktop/images/18052026/19/34/image_18052026_19_35_05_59454.jpg MAIN: 2026-05-18 19:35:05,926 - INFO - duration: 1.0135166890031542 MAIN: 2026-05-18 19:35:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:36: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-05-18 19:36:05,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-05-18 19:36:06,417 - INFO - taking picture MAIN: 2026-05-18 19:36:06,417 - INFO - we take 786 photos in this while loop MAIN: 2026-05-18 19:36:06,417 - INFO - /home/pi/Desktop/images/18052026/19/35/image_18052026_19_36_05_60556.jpg MAIN: 2026-05-18 19:36:06,417 - INFO - duration: 0.9477733219973743 MAIN: 2026-05-18 19:36:06,418 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:37:04,699 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:37: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-05-18 19:37:05,411 - INFO - taking picture MAIN: 2026-05-18 19:37:05,411 - INFO - we take 787 photos in this while loop MAIN: 2026-05-18 19:37:05,411 - INFO - /home/pi/Desktop/images/18052026/19/36/image_18052026_19_37_04_58947.jpg MAIN: 2026-05-18 19:37:05,411 - INFO - duration: 0.9946868170009111 MAIN: 2026-05-18 19:37:05,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:38: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-05-18 19:38:05,380 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:38:05,714 - INFO - taking picture MAIN: 2026-05-18 19:38:05,714 - INFO - we take 788 photos in this while loop MAIN: 2026-05-18 19:38:05,714 - INFO - /home/pi/Desktop/images/18052026/19/37/image_18052026_19_38_05_60314.jpg MAIN: 2026-05-18 19:38:05,715 - INFO - duration: 0.9830684119951911 MAIN: 2026-05-18 19:38:05,715 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:39:05,214 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:39:05,331 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:39:05,932 - INFO - taking picture MAIN: 2026-05-18 19:39:05,932 - INFO - we take 789 photos in this while loop MAIN: 2026-05-18 19:39:05,932 - INFO - /home/pi/Desktop/images/18052026/19/38/image_18052026_19_39_05_60202.jpg MAIN: 2026-05-18 19:39:05,933 - INFO - duration: 0.9982583140008501 MAIN: 2026-05-18 19:39:05,933 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/39' MAIN: 2026-05-18 19:40: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 [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:40:05,578 - INFO - taking picture MAIN: 2026-05-18 19:40:05,579 - INFO - we take 790 photos in this while loop MAIN: 2026-05-18 19:40:05,579 - INFO - /home/pi/Desktop/images/18052026/19/39/image_18052026_19_40_04_59699.jpg MAIN: 2026-05-18 19:40:05,579 - INFO - duration: 0.9455607819982106 MAIN: 2026-05-18 19:40:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/40' MAIN: 2026-05-18 19:40:06,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:41:04,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-05-18 19:41:05,751 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:41:06,458 - INFO - taking picture MAIN: 2026-05-18 19:41:06,459 - INFO - we take 791 photos in this while loop MAIN: 2026-05-18 19:41:06,459 - INFO - /home/pi/Desktop/images/18052026/19/40/image_18052026_19_41_05_60846.jpg MAIN: 2026-05-18 19:41:06,459 - INFO - duration: 0.9789148560012109 MAIN: 2026-05-18 19:41:06,459 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:42: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-05-18 19:42: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-05-18 19:42:05,900 - INFO - taking picture MAIN: 2026-05-18 19:42:05,900 - INFO - we take 792 photos in this while loop MAIN: 2026-05-18 19:42:05,900 - INFO - /home/pi/Desktop/images/18052026/19/41/image_18052026_19_42_05_59378.jpg MAIN: 2026-05-18 19:42:05,901 - INFO - duration: 1.0419572829996468 MAIN: 2026-05-18 19:42:05,901 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:43: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-05-18 19:43:05,697 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:43:06,403 - INFO - taking picture MAIN: 2026-05-18 19:43:06,403 - INFO - we take 793 photos in this while loop MAIN: 2026-05-18 19:43:06,403 - INFO - /home/pi/Desktop/images/18052026/19/42/image_18052026_19_43_05_60547.jpg MAIN: 2026-05-18 19:43:06,403 - INFO - duration: 0.996660509998037 MAIN: 2026-05-18 19:43:06,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:44:05,049 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:44: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 ! MAIN: 2026-05-18 19:44:05,824 - INFO - taking picture MAIN: 2026-05-18 19:44:05,824 - INFO - we take 794 photos in this while loop MAIN: 2026-05-18 19:44:05,824 - INFO - /home/pi/Desktop/images/18052026/19/43/image_18052026_19_44_05_59379.jpg MAIN: 2026-05-18 19:44:05,824 - INFO - duration: 1.0388235339996754 MAIN: 2026-05-18 19:44:05,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 19:45:04,656 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:45:05,362 - INFO - taking picture MAIN: 2026-05-18 19:45:05,362 - INFO - we take 795 photos in this while loop MAIN: 2026-05-18 19:45:05,362 - INFO - /home/pi/Desktop/images/18052026/19/44/image_18052026_19_45_04_59641.jpg MAIN: 2026-05-18 19:45:05,362 - INFO - duration: 0.9346554770017974 MAIN: 2026-05-18 19:45:05,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/45' MAIN: 2026-05-18 19:45: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 19:46: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-05-18 19:46:05,728 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:46:06,122 - INFO - taking picture MAIN: 2026-05-18 19:46:06,122 - INFO - we take 796 photos in this while loop MAIN: 2026-05-18 19:46:06,122 - INFO - /home/pi/Desktop/images/18052026/19/45/image_18052026_19_46_05_60616.jpg MAIN: 2026-05-18 19:46:06,122 - INFO - duration: 1.0782657509989804 MAIN: 2026-05-18 19:46:06,123 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:47: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-05-18 19:47: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-05-18 19:47:05,905 - INFO - taking picture MAIN: 2026-05-18 19:47:05,905 - INFO - we take 797 photos in this while loop MAIN: 2026-05-18 19:47:05,905 - INFO - /home/pi/Desktop/images/18052026/19/46/image_18052026_19_47_05_59854.jpg MAIN: 2026-05-18 19:47:05,905 - INFO - duration: 1.006630073999986 MAIN: 2026-05-18 19:47:05,905 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:48: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-05-18 19:48: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-05-18 19:48:05,424 - INFO - taking picture MAIN: 2026-05-18 19:48:05,424 - INFO - we take 798 photos in this while loop MAIN: 2026-05-18 19:48:05,424 - INFO - /home/pi/Desktop/images/18052026/19/47/image_18052026_19_48_04_59461.jpg MAIN: 2026-05-18 19:48:05,424 - INFO - duration: 1.0644527939948603 MAIN: 2026-05-18 19:48:05,425 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:49: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-05-18 19:49:05,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-05-18 19:49:06,341 - INFO - taking picture MAIN: 2026-05-18 19:49:06,341 - INFO - we take 799 photos in this while loop MAIN: 2026-05-18 19:49:06,341 - INFO - /home/pi/Desktop/images/18052026/19/48/image_18052026_19_49_05_60970.jpg MAIN: 2026-05-18 19:49:06,342 - INFO - duration: 1.0111920459967223 MAIN: 2026-05-18 19:49:06,342 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:50: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-05-18 19:50:05,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-05-18 19:50:05,846 - INFO - taking picture MAIN: 2026-05-18 19:50:05,846 - INFO - we take 800 photos in this while loop MAIN: 2026-05-18 19:50:05,846 - INFO - /home/pi/Desktop/images/18052026/19/49/image_18052026_19_50_05_59567.jpg MAIN: 2026-05-18 19:50:05,846 - INFO - duration: 0.9485101509999367 MAIN: 2026-05-18 19:50:05,846 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:51: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-05-18 19:51:05,291 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:51:05,410 - INFO - taking picture MAIN: 2026-05-18 19:51:05,410 - INFO - we take 801 photos in this while loop MAIN: 2026-05-18 19:51:05,410 - INFO - /home/pi/Desktop/images/18052026/19/50/image_18052026_19_51_04_59510.jpg MAIN: 2026-05-18 19:51:05,410 - INFO - duration: 1.0022419309971156 MAIN: 2026-05-18 19:51:05,410 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:52:05,267 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:52:05,578 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:52:06,018 - INFO - taking picture MAIN: 2026-05-18 19:52:06,019 - INFO - we take 802 photos in this while loop MAIN: 2026-05-18 19:52:06,019 - INFO - /home/pi/Desktop/images/18052026/19/51/image_18052026_19_52_05_60580.jpg MAIN: 2026-05-18 19:52:06,019 - INFO - duration: 1.0305394450042513 MAIN: 2026-05-18 19:52:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:53:05,141 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:53: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-05-18 19:53:05,890 - INFO - taking picture MAIN: 2026-05-18 19:53:05,890 - INFO - we take 803 photos in this while loop MAIN: 2026-05-18 19:53:05,890 - INFO - /home/pi/Desktop/images/18052026/19/52/image_18052026_19_53_05_59862.jpg MAIN: 2026-05-18 19:53:05,890 - INFO - duration: 1.0399074149972876 MAIN: 2026-05-18 19:53:05,891 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:54: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-05-18 19:54: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-05-18 19:54:05,437 - INFO - taking picture MAIN: 2026-05-18 19:54:05,437 - INFO - we take 804 photos in this while loop MAIN: 2026-05-18 19:54:05,437 - INFO - /home/pi/Desktop/images/18052026/19/53/image_18052026_19_54_04_59571.jpg MAIN: 2026-05-18 19:54:05,437 - INFO - duration: 1.0151720159992692 MAIN: 2026-05-18 19:54:05,437 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:55:04,881 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 19:55:05,173 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 19:55:05,623 - INFO - taking picture MAIN: 2026-05-18 19:55:05,623 - INFO - we take 805 photos in this while loop MAIN: 2026-05-18 19:55:05,623 - INFO - /home/pi/Desktop/images/18052026/19/54/image_18052026_19_55_04_60149.jpg MAIN: 2026-05-18 19:55:05,624 - INFO - duration: 1.051816911996866 MAIN: 2026-05-18 19:55:05,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:56: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-05-18 19:56: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-05-18 19:56:05,537 - INFO - taking picture MAIN: 2026-05-18 19:56:05,537 - INFO - we take 806 photos in this while loop MAIN: 2026-05-18 19:56:05,537 - INFO - /home/pi/Desktop/images/18052026/19/55/image_18052026_19_56_04_59984.jpg MAIN: 2026-05-18 19:56:05,537 - INFO - duration: 0.98091432700312 MAIN: 2026-05-18 19:56:05,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:57: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-05-18 19:57: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-05-18 19:57:05,661 - INFO - taking picture MAIN: 2026-05-18 19:57:05,661 - INFO - we take 807 photos in this while loop MAIN: 2026-05-18 19:57:05,661 - INFO - /home/pi/Desktop/images/18052026/19/56/image_18052026_19_57_04_60029.jpg MAIN: 2026-05-18 19:57:05,661 - INFO - duration: 1.0757928430030006 MAIN: 2026-05-18 19:57:05,662 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:58: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-05-18 19:58: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-05-18 19:58:05,726 - INFO - taking picture MAIN: 2026-05-18 19:58:05,726 - INFO - we take 808 photos in this while loop MAIN: 2026-05-18 19:58:05,727 - INFO - /home/pi/Desktop/images/18052026/19/57/image_18052026_19_58_05_60161.jpg MAIN: 2026-05-18 19:58:05,727 - INFO - duration: 0.9796344970018254 MAIN: 2026-05-18 19:58:05,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 19:59: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-05-18 19:59: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-05-18 19:59:05,471 - INFO - taking picture MAIN: 2026-05-18 19:59:05,472 - INFO - we take 809 photos in this while loop MAIN: 2026-05-18 19:59:05,472 - INFO - /home/pi/Desktop/images/18052026/19/58/image_18052026_19_59_04_59742.jpg MAIN: 2026-05-18 19:59:05,472 - INFO - duration: 0.9827436790001229 MAIN: 2026-05-18 19:59:05,472 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/19/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-05-18 20:00: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-05-18 20:00:05,485 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:00:05,636 - INFO - taking picture MAIN: 2026-05-18 20:00:05,636 - INFO - we take 810 photos in this while loop MAIN: 2026-05-18 20:00:05,636 - INFO - /home/pi/Desktop/images/18052026/19/59/image_18052026_20_00_04_60171.jpg MAIN: 2026-05-18 20:00:05,636 - INFO - duration: 0.9759647350001615 MAIN: 2026-05-18 20:00:05,637 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:01:05,158 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:01:05,322 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:01:05,894 - INFO - taking picture MAIN: 2026-05-18 20:01:05,894 - INFO - we take 811 photos in this while loop MAIN: 2026-05-18 20:01:05,895 - INFO - /home/pi/Desktop/images/18052026/20/00/image_18052026_20_01_05_60194.jpg MAIN: 2026-05-18 20:01:05,895 - INFO - duration: 1.0392883790045744 MAIN: 2026-05-18 20:01:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:02: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-05-18 20:02: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-05-18 20:02:05,448 - INFO - taking picture MAIN: 2026-05-18 20:02:05,449 - INFO - we take 812 photos in this while loop MAIN: 2026-05-18 20:02:05,449 - INFO - /home/pi/Desktop/images/18052026/20/01/image_18052026_20_02_04_59573.jpg MAIN: 2026-05-18 20:02:05,449 - INFO - duration: 1.0198111570061883 MAIN: 2026-05-18 20:02:05,449 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:03:05,163 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:03:05,293 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:03:06,082 - INFO - taking picture MAIN: 2026-05-18 20:03:06,082 - INFO - we take 813 photos in this while loop MAIN: 2026-05-18 20:03:06,083 - INFO - /home/pi/Desktop/images/18052026/20/02/image_18052026_20_03_05_60555.jpg MAIN: 2026-05-18 20:03:06,083 - INFO - duration: 1.098059682000894 MAIN: 2026-05-18 20:03:06,083 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:04:04,648 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:04:04,858 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:04:05,647 - INFO - taking picture MAIN: 2026-05-18 20:04:05,648 - INFO - we take 814 photos in this while loop MAIN: 2026-05-18 20:04:05,648 - INFO - /home/pi/Desktop/images/18052026/20/03/image_18052026_20_04_04_59596.jpg MAIN: 2026-05-18 20:04:05,648 - INFO - duration: 1.0663263999958872 MAIN: 2026-05-18 20:04:05,648 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:05: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-05-18 20:05:05,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-05-18 20:05:06,512 - INFO - taking picture MAIN: 2026-05-18 20:05:06,512 - INFO - we take 815 photos in this while loop MAIN: 2026-05-18 20:05:06,512 - INFO - /home/pi/Desktop/images/18052026/20/04/image_18052026_20_05_05_60933.jpg MAIN: 2026-05-18 20:05:06,512 - INFO - duration: 0.9975781239991193 MAIN: 2026-05-18 20:05:06,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:06: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-05-18 20:06:05,564 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:06:06,276 - INFO - taking picture MAIN: 2026-05-18 20:06:06,276 - INFO - we take 816 photos in this while loop MAIN: 2026-05-18 20:06:06,276 - INFO - /home/pi/Desktop/images/18052026/20/05/image_18052026_20_06_05_59733.jpg MAIN: 2026-05-18 20:06:06,276 - INFO - duration: 1.0278965199977392 MAIN: 2026-05-18 20:06:06,276 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:07: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-05-18 20:07: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-05-18 20:07:05,781 - INFO - taking picture MAIN: 2026-05-18 20:07:05,781 - INFO - we take 817 photos in this while loop MAIN: 2026-05-18 20:07:05,781 - INFO - /home/pi/Desktop/images/18052026/20/06/image_18052026_20_07_05_59529.jpg MAIN: 2026-05-18 20:07:05,781 - INFO - duration: 1.0028462880000006 MAIN: 2026-05-18 20:07:05,781 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:08:05,635 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:08:05,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-05-18 20:08:06,440 - INFO - taking picture MAIN: 2026-05-18 20:08:06,440 - INFO - we take 818 photos in this while loop MAIN: 2026-05-18 20:08:06,440 - INFO - /home/pi/Desktop/images/18052026/20/07/image_18052026_20_08_05_60666.jpg MAIN: 2026-05-18 20:08:06,440 - INFO - duration: 0.9953914070065366 MAIN: 2026-05-18 20:08:06,441 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:09: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-05-18 20:09: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-05-18 20:09:05,948 - INFO - taking picture MAIN: 2026-05-18 20:09:05,948 - INFO - we take 819 photos in this while loop MAIN: 2026-05-18 20:09:05,948 - INFO - /home/pi/Desktop/images/18052026/20/08/image_18052026_20_09_05_59481.jpg MAIN: 2026-05-18 20:09:05,948 - INFO - duration: 1.021863966001547 MAIN: 2026-05-18 20:09:05,949 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:10: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-05-18 20:10:05,336 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:10:05,349 - INFO - taking picture MAIN: 2026-05-18 20:10:05,349 - INFO - we take 820 photos in this while loop MAIN: 2026-05-18 20:10:05,349 - INFO - /home/pi/Desktop/images/18052026/20/09/image_18052026_20_10_04_59454.jpg MAIN: 2026-05-18 20:10:05,350 - INFO - duration: 0.968075371994928 MAIN: 2026-05-18 20:10:05,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:11:04,875 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:11: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-05-18 20:11:06,109 - INFO - taking picture MAIN: 2026-05-18 20:11:06,109 - INFO - we take 821 photos in this while loop MAIN: 2026-05-18 20:11:06,110 - INFO - /home/pi/Desktop/images/18052026/20/10/image_18052026_20_11_05_60712.jpg MAIN: 2026-05-18 20:11:06,110 - INFO - duration: 1.0157957629999146 MAIN: 2026-05-18 20:11:06,110 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:12:04,901 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:12: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-05-18 20:12:05,649 - INFO - taking picture MAIN: 2026-05-18 20:12:05,649 - INFO - we take 822 photos in this while loop MAIN: 2026-05-18 20:12:05,649 - INFO - /home/pi/Desktop/images/18052026/20/11/image_18052026_20_12_04_59506.jpg MAIN: 2026-05-18 20:12:05,649 - INFO - duration: 1.0492754959996091 MAIN: 2026-05-18 20:12:05,650 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:13: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-05-18 20:13: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-05-18 20:13:06,335 - INFO - taking picture MAIN: 2026-05-18 20:13:06,335 - INFO - we take 823 photos in this while loop MAIN: 2026-05-18 20:13:06,335 - INFO - /home/pi/Desktop/images/18052026/20/12/image_18052026_20_13_05_60791.jpg MAIN: 2026-05-18 20:13:06,335 - INFO - duration: 0.9434910570053034 MAIN: 2026-05-18 20:13:06,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:14: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-05-18 20:14:05,688 - INFO - taking picture MAIN: 2026-05-18 20:14:05,688 - INFO - we take 824 photos in this while loop MAIN: 2026-05-18 20:14:05,688 - INFO - /home/pi/Desktop/images/18052026/20/13/image_18052026_20_14_04_59297.jpg MAIN: 2026-05-18 20:14:05,688 - INFO - duration: 0.9988818860001629 MAIN: 2026-05-18 20:14:05,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/14' MAIN: 2026-05-18 20:14:05,733 - 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-05-18 20:15:05,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-05-18 20:15:05,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-05-18 20:15:06,545 - INFO - taking picture MAIN: 2026-05-18 20:15:06,545 - INFO - we take 825 photos in this while loop MAIN: 2026-05-18 20:15:06,545 - INFO - /home/pi/Desktop/images/18052026/20/14/image_18052026_20_15_05_60793.jpg MAIN: 2026-05-18 20:15:06,545 - INFO - duration: 1.0620082620007452 MAIN: 2026-05-18 20:15:06,546 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:16: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-05-18 20:16:05,904 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:16:05,993 - INFO - taking picture MAIN: 2026-05-18 20:16:05,993 - INFO - we take 826 photos in this while loop MAIN: 2026-05-18 20:16:05,994 - INFO - /home/pi/Desktop/images/18052026/20/15/image_18052026_20_16_05_59509.jpg MAIN: 2026-05-18 20:16:05,994 - INFO - duration: 1.0006955319986446 MAIN: 2026-05-18 20:16:05,994 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:17:04,780 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:17:05,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-05-18 20:17:06,489 - INFO - taking picture MAIN: 2026-05-18 20:17:06,489 - INFO - we take 827 photos in this while loop MAIN: 2026-05-18 20:17:06,490 - INFO - /home/pi/Desktop/images/18052026/20/16/image_18052026_20_17_05_60511.jpg MAIN: 2026-05-18 20:17:06,490 - INFO - duration: 0.9855929810000816 MAIN: 2026-05-18 20:17:06,490 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:18: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-05-18 20:18:05,402 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:18:05,415 - INFO - taking picture MAIN: 2026-05-18 20:18:05,415 - INFO - we take 828 photos in this while loop MAIN: 2026-05-18 20:18:05,415 - INFO - /home/pi/Desktop/images/18052026/20/17/image_18052026_20_18_04_58875.jpg MAIN: 2026-05-18 20:18:05,416 - INFO - duration: 1.0361061399962637 MAIN: 2026-05-18 20:18:05,416 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:19: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-05-18 20:19: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-05-18 20:19:06,158 - INFO - taking picture MAIN: 2026-05-18 20:19:06,159 - INFO - we take 829 photos in this while loop MAIN: 2026-05-18 20:19:06,159 - INFO - /home/pi/Desktop/images/18052026/20/18/image_18052026_20_19_05_60700.jpg MAIN: 2026-05-18 20:19:06,159 - INFO - duration: 1.0793444540031487 MAIN: 2026-05-18 20:19:06,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:20:05,525 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:20:06,016 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:20:06,268 - INFO - taking picture MAIN: 2026-05-18 20:20:06,269 - INFO - we take 830 photos in this while loop MAIN: 2026-05-18 20:20:06,269 - INFO - /home/pi/Desktop/images/18052026/20/19/image_18052026_20_20_05_60183.jpg MAIN: 2026-05-18 20:20:06,269 - INFO - duration: 1.0059262100039632 MAIN: 2026-05-18 20:20:06,269 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:21:04,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-05-18 20:21:05,681 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:21:06,385 - INFO - taking picture MAIN: 2026-05-18 20:21:06,385 - INFO - we take 831 photos in this while loop MAIN: 2026-05-18 20:21:06,385 - INFO - /home/pi/Desktop/images/18052026/20/20/image_18052026_20_21_05_60143.jpg MAIN: 2026-05-18 20:21:06,385 - INFO - duration: 0.97823125099967 MAIN: 2026-05-18 20:21:06,385 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:22:04,686 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:22: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-05-18 20:22:05,436 - INFO - taking picture MAIN: 2026-05-18 20:22:05,436 - INFO - we take 832 photos in this while loop MAIN: 2026-05-18 20:22:05,436 - INFO - /home/pi/Desktop/images/18052026/20/21/image_18052026_20_22_04_58970.jpg MAIN: 2026-05-18 20:22:05,436 - INFO - duration: 1.058815754004172 MAIN: 2026-05-18 20:22:05,436 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20: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-05-18 20:23: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-05-18 20:23:05,447 - INFO - taking picture MAIN: 2026-05-18 20:23:05,447 - INFO - we take 833 photos in this while loop MAIN: 2026-05-18 20:23:05,447 - INFO - /home/pi/Desktop/images/18052026/20/22/image_18052026_20_23_04_60023.jpg MAIN: 2026-05-18 20:23:05,447 - INFO - duration: 1.0460502089990769 MAIN: 2026-05-18 20:23:05,448 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:24: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-05-18 20:24:05,208 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:24:05,704 - INFO - taking picture MAIN: 2026-05-18 20:24:05,705 - INFO - we take 834 photos in this while loop MAIN: 2026-05-18 20:24:05,705 - INFO - /home/pi/Desktop/images/18052026/20/23/image_18052026_20_24_04_60211.jpg MAIN: 2026-05-18 20:24:05,705 - INFO - duration: 1.092417932995886 MAIN: 2026-05-18 20:24:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:25: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-05-18 20:25:05,476 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:25:05,861 - INFO - taking picture MAIN: 2026-05-18 20:25:05,861 - INFO - we take 835 photos in this while loop MAIN: 2026-05-18 20:25:05,862 - INFO - /home/pi/Desktop/images/18052026/20/24/image_18052026_20_25_05_60249.jpg MAIN: 2026-05-18 20:25:05,862 - INFO - duration: 1.0000339909965987 MAIN: 2026-05-18 20:25:05,862 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:26:05,225 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:26:05,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-05-18 20:26:05,945 - INFO - taking picture MAIN: 2026-05-18 20:26:05,946 - INFO - we take 836 photos in this while loop MAIN: 2026-05-18 20:26:05,946 - INFO - /home/pi/Desktop/images/18052026/20/25/image_18052026_20_26_05_60109.jpg MAIN: 2026-05-18 20:26:05,946 - INFO - duration: 0.9750553749981918 MAIN: 2026-05-18 20:26:05,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:27:04,903 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:27:05,213 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:27:05,623 - INFO - taking picture MAIN: 2026-05-18 20:27:05,624 - INFO - we take 837 photos in this while loop MAIN: 2026-05-18 20:27:05,624 - INFO - /home/pi/Desktop/images/18052026/20/26/image_18052026_20_27_04_59664.jpg MAIN: 2026-05-18 20:27:05,624 - INFO - duration: 0.9891004810051527 MAIN: 2026-05-18 20:27:05,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:28: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-05-18 20:28:05,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-05-18 20:28:06,264 - INFO - taking picture MAIN: 2026-05-18 20:28:06,264 - INFO - we take 838 photos in this while loop MAIN: 2026-05-18 20:28:06,265 - INFO - /home/pi/Desktop/images/18052026/20/27/image_18052026_20_28_05_60597.jpg MAIN: 2026-05-18 20:28:06,265 - INFO - duration: 1.0320394439986558 MAIN: 2026-05-18 20:28:06,265 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:29:04,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-05-18 20:29:05,594 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:29:06,326 - INFO - taking picture MAIN: 2026-05-18 20:29:06,326 - INFO - we take 839 photos in this while loop MAIN: 2026-05-18 20:29:06,326 - INFO - /home/pi/Desktop/images/18052026/20/28/image_18052026_20_29_05_60065.jpg MAIN: 2026-05-18 20:29:06,326 - INFO - duration: 1.028523918997962 MAIN: 2026-05-18 20:29:06,327 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:30:04,634 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:30:05,345 - INFO - taking picture MAIN: 2026-05-18 20:30:05,345 - INFO - we take 840 photos in this while loop MAIN: 2026-05-18 20:30:05,345 - INFO - /home/pi/Desktop/images/18052026/20/29/image_18052026_20_30_04_59115.jpg MAIN: 2026-05-18 20:30:05,345 - INFO - duration: 0.9317646570052602 MAIN: 2026-05-18 20:30:05,346 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/30' MAIN: 2026-05-18 20:30:05,514 - 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-05-18 20:31:04,717 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:31:05,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 ! MAIN: 2026-05-18 20:31:05,520 - INFO - taking picture MAIN: 2026-05-18 20:31:05,520 - INFO - we take 841 photos in this while loop MAIN: 2026-05-18 20:31:05,520 - INFO - /home/pi/Desktop/images/18052026/20/30/image_18052026_20_31_04_59997.jpg MAIN: 2026-05-18 20:31:05,521 - INFO - duration: 1.109211836999748 MAIN: 2026-05-18 20:31:05,521 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:32:04,994 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:32:05,389 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:32:05,721 - INFO - taking picture MAIN: 2026-05-18 20:32:05,722 - INFO - we take 842 photos in this while loop MAIN: 2026-05-18 20:32:05,722 - INFO - /home/pi/Desktop/images/18052026/20/31/image_18052026_20_32_04_60311.jpg MAIN: 2026-05-18 20:32:05,722 - INFO - duration: 0.9988274130009813 MAIN: 2026-05-18 20:32:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:33:05,067 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:33:05,309 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:33:05,799 - INFO - taking picture MAIN: 2026-05-18 20:33:05,800 - INFO - we take 843 photos in this while loop MAIN: 2026-05-18 20:33:05,800 - INFO - /home/pi/Desktop/images/18052026/20/32/image_18052026_20_33_05_60052.jpg MAIN: 2026-05-18 20:33:05,800 - INFO - duration: 1.0239502399999765 MAIN: 2026-05-18 20:33:05,800 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/33' MAIN: 2026-05-18 20:34:04,941 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 20:34:05,680 - INFO - taking picture MAIN: 2026-05-18 20:34:05,681 - INFO - we take 844 photos in this while loop MAIN: 2026-05-18 20:34:05,681 - INFO - /home/pi/Desktop/images/18052026/20/33/image_18052026_20_34_04_59926.jpg MAIN: 2026-05-18 20:34:05,681 - INFO - duration: 0.9783552730004885 MAIN: 2026-05-18 20:34:05,681 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/34' MAIN: 2026-05-18 20:34: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 20:35:05,274 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:35: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-05-18 20:35:06,158 - INFO - taking picture MAIN: 2026-05-18 20:35:06,159 - INFO - we take 845 photos in this while loop MAIN: 2026-05-18 20:35:06,159 - INFO - /home/pi/Desktop/images/18052026/20/34/image_18052026_20_35_05_60454.jpg MAIN: 2026-05-18 20:35:06,159 - INFO - duration: 1.001921732997289 MAIN: 2026-05-18 20:35:06,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:36: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-05-18 20:36:05,238 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:36:07,049 - INFO - taking picture MAIN: 2026-05-18 20:36:07,050 - INFO - we take 846 photos in this while loop MAIN: 2026-05-18 20:36:07,050 - INFO - /home/pi/Desktop/images/18052026/20/35/image_18052026_20_36_06_59581.jpg MAIN: 2026-05-18 20:36:07,050 - INFO - duration: 2.311662116997468 MAIN: 2026-05-18 20:36:07,050 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:37: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-05-18 20:37: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-05-18 20:37:06,124 - INFO - taking picture MAIN: 2026-05-18 20:37:06,125 - INFO - we take 847 photos in this while loop MAIN: 2026-05-18 20:37:06,125 - INFO - /home/pi/Desktop/images/18052026/20/36/image_18052026_20_37_05_60414.jpg MAIN: 2026-05-18 20:37:06,125 - INFO - duration: 0.9717781139988801 MAIN: 2026-05-18 20:37:06,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:38:05,309 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:38: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-05-18 20:38:06,302 - INFO - taking picture MAIN: 2026-05-18 20:38:06,302 - INFO - we take 848 photos in this while loop MAIN: 2026-05-18 20:38:06,303 - INFO - /home/pi/Desktop/images/18052026/20/37/image_18052026_20_38_05_60174.jpg MAIN: 2026-05-18 20:38:06,303 - INFO - duration: 0.9745929950004211 MAIN: 2026-05-18 20:38:06,303 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:39: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-05-18 20:39:05,525 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:39:06,244 - INFO - taking picture MAIN: 2026-05-18 20:39:06,244 - INFO - we take 849 photos in this while loop MAIN: 2026-05-18 20:39:06,244 - INFO - /home/pi/Desktop/images/18052026/20/38/image_18052026_20_39_05_59916.jpg MAIN: 2026-05-18 20:39:06,244 - INFO - duration: 1.0001643909999984 MAIN: 2026-05-18 20:39:06,245 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:40:05,336 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:40:05,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-05-18 20:40:06,355 - INFO - taking picture MAIN: 2026-05-18 20:40:06,356 - INFO - we take 850 photos in this while loop MAIN: 2026-05-18 20:40:06,356 - INFO - /home/pi/Desktop/images/18052026/20/39/image_18052026_20_40_05_60124.jpg MAIN: 2026-05-18 20:40:06,356 - INFO - duration: 0.9869723490046454 MAIN: 2026-05-18 20:40:06,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:41: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-05-18 20:41:05,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-05-18 20:41:06,343 - INFO - taking picture MAIN: 2026-05-18 20:41:06,343 - INFO - we take 851 photos in this while loop MAIN: 2026-05-18 20:41:06,343 - INFO - /home/pi/Desktop/images/18052026/20/40/image_18052026_20_41_05_59989.jpg MAIN: 2026-05-18 20:41:06,344 - INFO - duration: 0.9849385760026053 MAIN: 2026-05-18 20:41:06,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:42:05,220 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:42: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-05-18 20:42:06,288 - INFO - taking picture MAIN: 2026-05-18 20:42:06,288 - INFO - we take 852 photos in this while loop MAIN: 2026-05-18 20:42:06,288 - INFO - /home/pi/Desktop/images/18052026/20/41/image_18052026_20_42_05_59980.jpg MAIN: 2026-05-18 20:42:06,288 - INFO - duration: 0.94923070200457 MAIN: 2026-05-18 20:42:06,288 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:43: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-05-18 20:43:05,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-05-18 20:43:06,210 - INFO - taking picture MAIN: 2026-05-18 20:43:06,211 - INFO - we take 853 photos in this while loop MAIN: 2026-05-18 20:43:06,211 - INFO - /home/pi/Desktop/images/18052026/20/42/image_18052026_20_43_05_59891.jpg MAIN: 2026-05-18 20:43:06,211 - INFO - duration: 0.9800077879990567 MAIN: 2026-05-18 20:43:06,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:44:05,427 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:44: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 ! MAIN: 2026-05-18 20:44:06,184 - INFO - taking picture MAIN: 2026-05-18 20:44:06,184 - INFO - we take 854 photos in this while loop MAIN: 2026-05-18 20:44:06,184 - INFO - /home/pi/Desktop/images/18052026/20/43/image_18052026_20_44_05_59935.jpg MAIN: 2026-05-18 20:44:06,185 - INFO - duration: 1.0180063539955881 MAIN: 2026-05-18 20:44:06,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:45: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-05-18 20:45:06,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-05-18 20:45:06,320 - INFO - taking picture MAIN: 2026-05-18 20:45:06,320 - INFO - we take 855 photos in this while loop MAIN: 2026-05-18 20:45:06,320 - INFO - /home/pi/Desktop/images/18052026/20/44/image_18052026_20_45_05_60187.jpg MAIN: 2026-05-18 20:45:06,320 - INFO - duration: 0.9660699540036148 MAIN: 2026-05-18 20:45:06,321 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:46:04,910 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:46:05,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-05-18 20:46:06,335 - INFO - taking picture MAIN: 2026-05-18 20:46:06,335 - INFO - we take 856 photos in this while loop MAIN: 2026-05-18 20:46:06,335 - INFO - /home/pi/Desktop/images/18052026/20/45/image_18052026_20_46_05_59939.jpg MAIN: 2026-05-18 20:46:06,336 - INFO - duration: 1.0419206549995579 MAIN: 2026-05-18 20:46:06,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:47:04,912 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:47:05,827 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:47:06,529 - INFO - taking picture MAIN: 2026-05-18 20:47:06,529 - INFO - we take 857 photos in this while loop MAIN: 2026-05-18 20:47:06,529 - INFO - /home/pi/Desktop/images/18052026/20/46/image_18052026_20_47_05_60247.jpg MAIN: 2026-05-18 20:47:06,529 - INFO - duration: 0.987797892994422 MAIN: 2026-05-18 20:47:06,530 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:48:05,099 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:48: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-05-18 20:48:05,827 - INFO - taking picture MAIN: 2026-05-18 20:48:05,827 - INFO - we take 858 photos in this while loop MAIN: 2026-05-18 20:48:05,828 - INFO - /home/pi/Desktop/images/18052026/20/47/image_18052026_20_48_05_59271.jpg MAIN: 2026-05-18 20:48:05,828 - INFO - duration: 1.014483721999568 MAIN: 2026-05-18 20:48:05,828 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:49: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-05-18 20:49:05,726 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:49:06,444 - INFO - taking picture MAIN: 2026-05-18 20:49:06,444 - INFO - we take 859 photos in this while loop MAIN: 2026-05-18 20:49:06,444 - INFO - /home/pi/Desktop/images/18052026/20/48/image_18052026_20_49_05_60682.jpg MAIN: 2026-05-18 20:49:06,444 - INFO - duration: 0.948368424004002 MAIN: 2026-05-18 20:49:06,445 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:50:05,315 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:50:05,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-05-18 20:50:06,077 - INFO - taking picture MAIN: 2026-05-18 20:50:06,078 - INFO - we take 860 photos in this while loop MAIN: 2026-05-18 20:50:06,078 - INFO - /home/pi/Desktop/images/18052026/20/49/image_18052026_20_50_05_59578.jpg MAIN: 2026-05-18 20:50:06,078 - INFO - duration: 1.003736189006304 MAIN: 2026-05-18 20:50:06,078 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:51: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-05-18 20:51: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-05-18 20:51:05,561 - INFO - taking picture MAIN: 2026-05-18 20:51:05,562 - INFO - we take 861 photos in this while loop MAIN: 2026-05-18 20:51:05,562 - INFO - /home/pi/Desktop/images/18052026/20/50/image_18052026_20_51_04_59490.jpg MAIN: 2026-05-18 20:51:05,562 - INFO - duration: 0.9976047380041564 MAIN: 2026-05-18 20:51:05,562 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/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-05-18 20:52: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-05-18 20:52:05,677 - INFO - taking picture MAIN: 2026-05-18 20:52:05,678 - INFO - we take 862 photos in this while loop MAIN: 2026-05-18 20:52:05,678 - INFO - /home/pi/Desktop/images/18052026/20/51/image_18052026_20_52_04_60138.jpg MAIN: 2026-05-18 20:52:05,678 - INFO - duration: 0.9753472770025837 MAIN: 2026-05-18 20:52:05,678 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/20/52' MAIN: 2026-05-18 20:52:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 20:53: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-05-18 20:53:05,634 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:53:06,328 - INFO - taking picture MAIN: 2026-05-18 20:53:06,329 - INFO - we take 863 photos in this while loop MAIN: 2026-05-18 20:53:06,329 - INFO - /home/pi/Desktop/images/18052026/20/52/image_18052026_20_53_05_60671.jpg MAIN: 2026-05-18 20:53:06,329 - INFO - duration: 0.9544585530020413 MAIN: 2026-05-18 20:53:06,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:54: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-05-18 20:54:05,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-05-18 20:54:06,498 - INFO - taking picture MAIN: 2026-05-18 20:54:06,498 - INFO - we take 864 photos in this while loop MAIN: 2026-05-18 20:54:06,498 - INFO - /home/pi/Desktop/images/18052026/20/53/image_18052026_20_54_05_60127.jpg MAIN: 2026-05-18 20:54:06,498 - INFO - duration: 0.9961425549990963 MAIN: 2026-05-18 20:54:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:55:05,082 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:55:05,391 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:55:05,815 - INFO - taking picture MAIN: 2026-05-18 20:55:05,816 - INFO - we take 865 photos in this while loop MAIN: 2026-05-18 20:55:05,816 - INFO - /home/pi/Desktop/images/18052026/20/54/image_18052026_20_55_05_59349.jpg MAIN: 2026-05-18 20:55:05,816 - INFO - duration: 0.9638090940061375 MAIN: 2026-05-18 20:55:05,816 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:56: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-05-18 20:56:05,599 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:56:06,010 - INFO - taking picture MAIN: 2026-05-18 20:56:06,010 - INFO - we take 866 photos in this while loop MAIN: 2026-05-18 20:56:06,010 - INFO - /home/pi/Desktop/images/18052026/20/55/image_18052026_20_56_05_60138.jpg MAIN: 2026-05-18 20:56:06,010 - INFO - duration: 1.0192696829981287 MAIN: 2026-05-18 20:56:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:57: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-05-18 20:57: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-05-18 20:57:06,040 - INFO - taking picture MAIN: 2026-05-18 20:57:06,041 - INFO - we take 867 photos in this while loop MAIN: 2026-05-18 20:57:06,041 - INFO - /home/pi/Desktop/images/18052026/20/56/image_18052026_20_57_05_59995.jpg MAIN: 2026-05-18 20:57:06,041 - INFO - duration: 1.0548729299989645 MAIN: 2026-05-18 20:57:06,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:58:05,665 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:58:05,720 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 20:58:06,383 - INFO - taking picture MAIN: 2026-05-18 20:58:06,384 - INFO - we take 868 photos in this while loop MAIN: 2026-05-18 20:58:06,384 - INFO - /home/pi/Desktop/images/18052026/20/57/image_18052026_20_58_05_60375.jpg MAIN: 2026-05-18 20:58:06,384 - INFO - duration: 1.0221484770008828 MAIN: 2026-05-18 20:58:06,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 20:59:04,607 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 20:59:04,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 ! MAIN: 2026-05-18 20:59:05,369 - INFO - taking picture MAIN: 2026-05-18 20:59:05,369 - INFO - we take 869 photos in this while loop MAIN: 2026-05-18 20:59:05,369 - INFO - /home/pi/Desktop/images/18052026/20/58/image_18052026_20_59_04_58974.jpg MAIN: 2026-05-18 20:59:05,369 - INFO - duration: 1.0329110019956715 MAIN: 2026-05-18 20:59:05,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:00:05,329 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:00:06,044 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:00:06,147 - INFO - taking picture MAIN: 2026-05-18 21:00:06,147 - INFO - we take 870 photos in this while loop MAIN: 2026-05-18 21:00:06,147 - INFO - /home/pi/Desktop/images/18052026/20/59/image_18052026_21_00_05_60715.jpg MAIN: 2026-05-18 21:00:06,148 - INFO - duration: 1.09630657100206 MAIN: 2026-05-18 21:00:06,148 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:01: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-05-18 21:01: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-05-18 21:01:06,111 - INFO - taking picture MAIN: 2026-05-18 21:01:06,111 - INFO - we take 871 photos in this while loop MAIN: 2026-05-18 21:01:06,111 - INFO - /home/pi/Desktop/images/18052026/21/00/image_18052026_21_01_05_60141.jpg MAIN: 2026-05-18 21:01:06,111 - INFO - duration: 0.9189135940032429 MAIN: 2026-05-18 21:01:06,112 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:02: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 ! MAIN: 2026-05-18 21:02:05,753 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:02:06,467 - INFO - taking picture MAIN: 2026-05-18 21:02:06,467 - INFO - we take 872 photos in this while loop MAIN: 2026-05-18 21:02:06,467 - INFO - /home/pi/Desktop/images/18052026/21/01/image_18052026_21_02_05_60327.jpg MAIN: 2026-05-18 21:02:06,467 - INFO - duration: 0.9476337759988382 MAIN: 2026-05-18 21:02:06,468 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:03:05,232 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:03: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 ! MAIN: 2026-05-18 21:03:05,954 - INFO - taking picture MAIN: 2026-05-18 21:03:05,954 - INFO - we take 873 photos in this while loop MAIN: 2026-05-18 21:03:05,954 - INFO - /home/pi/Desktop/images/18052026/21/02/image_18052026_21_03_05_59425.jpg MAIN: 2026-05-18 21:03:05,954 - INFO - duration: 1.0090759510057978 MAIN: 2026-05-18 21:03:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:04:05,393 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:04:05,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 ! MAIN: 2026-05-18 21:04:06,092 - INFO - taking picture MAIN: 2026-05-18 21:04:06,093 - INFO - we take 874 photos in this while loop MAIN: 2026-05-18 21:04:06,093 - INFO - /home/pi/Desktop/images/18052026/21/03/image_18052026_21_04_05_60172.jpg MAIN: 2026-05-18 21:04:06,093 - INFO - duration: 0.9759812709962716 MAIN: 2026-05-18 21:04:06,093 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:05:05,427 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:05:05,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-05-18 21:05:06,150 - INFO - taking picture MAIN: 2026-05-18 21:05:06,150 - INFO - we take 875 photos in this while loop MAIN: 2026-05-18 21:05:06,150 - INFO - /home/pi/Desktop/images/18052026/21/04/image_18052026_21_05_05_60022.jpg MAIN: 2026-05-18 21:05:06,150 - INFO - duration: 1.010977568999806 MAIN: 2026-05-18 21:05:06,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/05' MAIN: 2026-05-18 21:06:04,711 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 21:06:05,527 - INFO - taking picture MAIN: 2026-05-18 21:06:05,527 - INFO - we take 876 photos in this while loop MAIN: 2026-05-18 21:06:05,527 - INFO - /home/pi/Desktop/images/18052026/21/05/image_18052026_21_06_04_59341.jpg MAIN: 2026-05-18 21:06:05,527 - INFO - duration: 1.0470146459992975 MAIN: 2026-05-18 21:06:05,528 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/06' MAIN: 2026-05-18 21:06: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-05-18 21:07:04,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-05-18 21:07:05,797 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:07:06,501 - INFO - taking picture MAIN: 2026-05-18 21:07:06,501 - INFO - we take 877 photos in this while loop MAIN: 2026-05-18 21:07:06,501 - INFO - /home/pi/Desktop/images/18052026/21/06/image_18052026_21_07_05_61058.jpg MAIN: 2026-05-18 21:07:06,501 - INFO - duration: 0.961887362995185 MAIN: 2026-05-18 21:07:06,501 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:08:04,991 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:08: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-05-18 21:08:05,963 - INFO - taking picture MAIN: 2026-05-18 21:08:05,964 - INFO - we take 878 photos in this while loop MAIN: 2026-05-18 21:08:05,964 - INFO - /home/pi/Desktop/images/18052026/21/07/image_18052026_21_08_05_59374.jpg MAIN: 2026-05-18 21:08:05,964 - INFO - duration: 1.0506319440028165 MAIN: 2026-05-18 21:08:05,965 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:09: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-05-18 21:09:05,140 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:09:05,832 - INFO - taking picture MAIN: 2026-05-18 21:09:05,833 - INFO - we take 879 photos in this while loop MAIN: 2026-05-18 21:09:05,833 - INFO - /home/pi/Desktop/images/18052026/21/08/image_18052026_21_09_05_59942.jpg MAIN: 2026-05-18 21:09:05,833 - INFO - duration: 0.9768846239967388 MAIN: 2026-05-18 21:09:05,833 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:10:05,252 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:10:05,715 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:10:06,004 - INFO - taking picture MAIN: 2026-05-18 21:10:06,004 - INFO - we take 880 photos in this while loop MAIN: 2026-05-18 21:10:06,004 - INFO - /home/pi/Desktop/images/18052026/21/09/image_18052026_21_10_05_60157.jpg MAIN: 2026-05-18 21:10:06,004 - INFO - duration: 0.990384015996824 MAIN: 2026-05-18 21:10:06,005 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:11:05,436 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:11: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-05-18 21:11:06,134 - INFO - taking picture MAIN: 2026-05-18 21:11:06,134 - INFO - we take 881 photos in this while loop MAIN: 2026-05-18 21:11:06,135 - INFO - /home/pi/Desktop/images/18052026/21/10/image_18052026_21_11_05_60147.jpg MAIN: 2026-05-18 21:11:06,135 - INFO - duration: 0.9734437690058257 MAIN: 2026-05-18 21:11:06,135 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:12: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-05-18 21:12:06,124 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:12:06,157 - INFO - taking picture MAIN: 2026-05-18 21:12:06,157 - INFO - we take 882 photos in this while loop MAIN: 2026-05-18 21:12:06,157 - INFO - /home/pi/Desktop/images/18052026/21/11/image_18052026_21_12_05_60021.jpg MAIN: 2026-05-18 21:12:06,158 - INFO - duration: 0.975189094999223 MAIN: 2026-05-18 21:12:06,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:13:04,595 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:13:05,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-05-18 21:13:06,343 - INFO - taking picture MAIN: 2026-05-18 21:13:06,343 - INFO - we take 883 photos in this while loop MAIN: 2026-05-18 21:13:06,343 - INFO - /home/pi/Desktop/images/18052026/21/12/image_18052026_21_13_05_60196.jpg MAIN: 2026-05-18 21:13:06,343 - INFO - duration: 0.9643949460005388 MAIN: 2026-05-18 21:13:06,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:14: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-05-18 21:14:05,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-05-18 21:14:06,398 - INFO - taking picture MAIN: 2026-05-18 21:14:06,398 - INFO - we take 884 photos in this while loop MAIN: 2026-05-18 21:14:06,398 - INFO - /home/pi/Desktop/images/18052026/21/13/image_18052026_21_14_05_60095.jpg MAIN: 2026-05-18 21:14:06,398 - INFO - duration: 0.9238855809962843 MAIN: 2026-05-18 21:14:06,398 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:15:04,661 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:15: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-05-18 21:15:05,404 - INFO - taking picture MAIN: 2026-05-18 21:15:05,405 - INFO - we take 885 photos in this while loop MAIN: 2026-05-18 21:15:05,405 - INFO - /home/pi/Desktop/images/18052026/21/14/image_18052026_21_15_04_58951.jpg MAIN: 2026-05-18 21:15:05,405 - INFO - duration: 0.9795216190032079 MAIN: 2026-05-18 21:15:05,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:16:05,086 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:16: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 ! MAIN: 2026-05-18 21:16:05,842 - INFO - taking picture MAIN: 2026-05-18 21:16:05,843 - INFO - we take 886 photos in this while loop MAIN: 2026-05-18 21:16:05,843 - INFO - /home/pi/Desktop/images/18052026/21/15/image_18052026_21_16_05_60375.jpg MAIN: 2026-05-18 21:16:05,843 - INFO - duration: 1.0419745529943611 MAIN: 2026-05-18 21:16:05,843 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:17: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-05-18 21:17:05,376 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:17:05,894 - INFO - taking picture MAIN: 2026-05-18 21:17:05,894 - INFO - we take 887 photos in this while loop MAIN: 2026-05-18 21:17:05,894 - INFO - /home/pi/Desktop/images/18052026/21/16/image_18052026_21_17_05_60105.jpg MAIN: 2026-05-18 21:17:05,894 - INFO - duration: 0.9885169609988225 MAIN: 2026-05-18 21:17:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:18: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-05-18 21:18: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-05-18 21:18:05,999 - INFO - taking picture MAIN: 2026-05-18 21:18:05,999 - INFO - we take 888 photos in this while loop MAIN: 2026-05-18 21:18:05,999 - INFO - /home/pi/Desktop/images/18052026/21/17/image_18052026_21_18_05_60137.jpg MAIN: 2026-05-18 21:18:06,000 - INFO - duration: 0.9563140579994069 MAIN: 2026-05-18 21:18:06,000 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:19: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-05-18 21:19:05,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-05-18 21:19:06,314 - INFO - taking picture MAIN: 2026-05-18 21:19:06,314 - INFO - we take 889 photos in this while loop MAIN: 2026-05-18 21:19:06,314 - INFO - /home/pi/Desktop/images/18052026/21/18/image_18052026_21_19_05_60309.jpg MAIN: 2026-05-18 21:19:06,314 - INFO - duration: 0.9619646869978169 MAIN: 2026-05-18 21:19:06,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:20:05,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-05-18 21:20:05,732 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:20:06,450 - INFO - taking picture MAIN: 2026-05-18 21:20:06,451 - INFO - we take 890 photos in this while loop MAIN: 2026-05-18 21:20:06,451 - INFO - /home/pi/Desktop/images/18052026/21/19/image_18052026_21_20_05_60114.jpg MAIN: 2026-05-18 21:20:06,451 - INFO - duration: 0.9839734400011366 MAIN: 2026-05-18 21:20:06,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:21: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-05-18 21:21:05,214 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:21:05,402 - INFO - taking picture MAIN: 2026-05-18 21:21:05,402 - INFO - we take 891 photos in this while loop MAIN: 2026-05-18 21:21:05,402 - INFO - /home/pi/Desktop/images/18052026/21/20/image_18052026_21_21_04_58913.jpg MAIN: 2026-05-18 21:21:05,402 - INFO - duration: 1.0221344269957626 MAIN: 2026-05-18 21:21:05,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:22:05,152 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:22: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-05-18 21:22:05,836 - INFO - taking picture MAIN: 2026-05-18 21:22:05,836 - INFO - we take 892 photos in this while loop MAIN: 2026-05-18 21:22:05,837 - INFO - /home/pi/Desktop/images/18052026/21/21/image_18052026_21_22_05_60498.jpg MAIN: 2026-05-18 21:22:05,837 - INFO - duration: 0.958599443998537 MAIN: 2026-05-18 21:22:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:23: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-05-18 21:23:05,556 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:23:05,746 - INFO - taking picture MAIN: 2026-05-18 21:23:05,747 - INFO - we take 893 photos in this while loop MAIN: 2026-05-18 21:23:05,747 - INFO - /home/pi/Desktop/images/18052026/21/22/image_18052026_21_23_05_59919.jpg MAIN: 2026-05-18 21:23:05,747 - INFO - duration: 0.9497261430005892 MAIN: 2026-05-18 21:23:05,747 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:24:04,938 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:24:05,606 - INFO - taking picture MAIN: 2026-05-18 21:24:05,606 - INFO - we take 894 photos in this while loop MAIN: 2026-05-18 21:24:05,607 - INFO - /home/pi/Desktop/images/18052026/21/23/image_18052026_21_24_04_59916.jpg MAIN: 2026-05-18 21:24:05,607 - INFO - duration: 0.8926866390029318 MAIN: 2026-05-18 21:24:05,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/24' MAIN: 2026-05-18 21:24:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 21:25:04,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-05-18 21:25:04,865 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:25:05,544 - INFO - taking picture MAIN: 2026-05-18 21:25:05,544 - INFO - we take 895 photos in this while loop MAIN: 2026-05-18 21:25:05,544 - INFO - /home/pi/Desktop/images/18052026/21/24/image_18052026_21_25_04_59901.jpg MAIN: 2026-05-18 21:25:05,545 - INFO - duration: 0.9290492779982742 MAIN: 2026-05-18 21:25:05,545 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:26:04,795 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:26: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-05-18 21:26:05,473 - INFO - taking picture MAIN: 2026-05-18 21:26:05,473 - INFO - we take 896 photos in this while loop MAIN: 2026-05-18 21:26:05,474 - INFO - /home/pi/Desktop/images/18052026/21/25/image_18052026_21_26_04_59909.jpg MAIN: 2026-05-18 21:26:05,474 - INFO - duration: 0.9486117220003507 MAIN: 2026-05-18 21:26:05,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:27: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-05-18 21:27: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-05-18 21:27:05,469 - INFO - taking picture MAIN: 2026-05-18 21:27:05,470 - INFO - we take 897 photos in this while loop MAIN: 2026-05-18 21:27:05,470 - INFO - /home/pi/Desktop/images/18052026/21/26/image_18052026_21_27_04_60005.jpg MAIN: 2026-05-18 21:27:05,470 - INFO - duration: 0.9395120209956076 MAIN: 2026-05-18 21:27:05,470 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:28:04,999 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:28: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-05-18 21:28:05,683 - INFO - taking picture MAIN: 2026-05-18 21:28:05,683 - INFO - we take 898 photos in this while loop MAIN: 2026-05-18 21:28:05,683 - INFO - /home/pi/Desktop/images/18052026/21/27/image_18052026_21_28_04_60153.jpg MAIN: 2026-05-18 21:28:05,684 - INFO - duration: 0.9998294540055213 MAIN: 2026-05-18 21:28:05,684 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:29:05,166 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:29:05,337 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:29:05,899 - INFO - taking picture MAIN: 2026-05-18 21:29:05,899 - INFO - we take 899 photos in this while loop MAIN: 2026-05-18 21:29:05,899 - INFO - /home/pi/Desktop/images/18052026/21/28/image_18052026_21_29_05_60193.jpg MAIN: 2026-05-18 21:29:05,899 - INFO - duration: 1.0221834140029387 MAIN: 2026-05-18 21:29:05,900 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/29' MAIN: 2026-05-18 21:30:05,029 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 21:30:05,730 - INFO - taking picture MAIN: 2026-05-18 21:30:05,731 - INFO - we take 900 photos in this while loop MAIN: 2026-05-18 21:30:05,731 - INFO - /home/pi/Desktop/images/18052026/21/29/image_18052026_21_30_05_59905.jpg MAIN: 2026-05-18 21:30:05,731 - INFO - duration: 0.9484266389990808 MAIN: 2026-05-18 21:30:05,731 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/30' MAIN: 2026-05-18 21:30:06,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-05-18 21:31:04,691 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:31:04,740 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:31:05,362 - INFO - taking picture MAIN: 2026-05-18 21:31:05,362 - INFO - we take 901 photos in this while loop MAIN: 2026-05-18 21:31:05,362 - INFO - /home/pi/Desktop/images/18052026/21/30/image_18052026_21_31_04_59640.jpg MAIN: 2026-05-18 21:31:05,362 - INFO - duration: 0.9388829020026606 MAIN: 2026-05-18 21:31:05,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:32:05,047 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:32:05,811 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:32:06,484 - INFO - taking picture MAIN: 2026-05-18 21:32:06,485 - INFO - we take 902 photos in this while loop MAIN: 2026-05-18 21:32:06,485 - INFO - /home/pi/Desktop/images/18052026/21/31/image_18052026_21_32_05_61116.jpg MAIN: 2026-05-18 21:32:06,485 - INFO - duration: 0.945401683995442 MAIN: 2026-05-18 21:32:06,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:33: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-05-18 21:33:05,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-05-18 21:33:06,253 - INFO - taking picture MAIN: 2026-05-18 21:33:06,253 - INFO - we take 903 photos in this while loop MAIN: 2026-05-18 21:33:06,253 - INFO - /home/pi/Desktop/images/18052026/21/32/image_18052026_21_33_05_59808.jpg MAIN: 2026-05-18 21:33:06,254 - INFO - duration: 0.9056924730030005 MAIN: 2026-05-18 21:33:06,254 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:34:05,321 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:34: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-05-18 21:34:06,309 - INFO - taking picture MAIN: 2026-05-18 21:34:06,309 - INFO - we take 904 photos in this while loop MAIN: 2026-05-18 21:34:06,310 - INFO - /home/pi/Desktop/images/18052026/21/33/image_18052026_21_34_05_60070.jpg MAIN: 2026-05-18 21:34:06,310 - INFO - duration: 0.8915522359966417 MAIN: 2026-05-18 21:34:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:35:05,475 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:35:05,697 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:35:06,355 - INFO - taking picture MAIN: 2026-05-18 21:35:06,356 - INFO - we take 905 photos in this while loop MAIN: 2026-05-18 21:35:06,356 - INFO - /home/pi/Desktop/images/18052026/21/34/image_18052026_21_35_05_60054.jpg MAIN: 2026-05-18 21:35:06,356 - INFO - duration: 0.8829774800033192 MAIN: 2026-05-18 21:35:06,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/35' MAIN: 2026-05-18 21:36: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-05-18 21:36:05,256 - INFO - taking picture MAIN: 2026-05-18 21:36:05,256 - INFO - we take 906 photos in this while loop MAIN: 2026-05-18 21:36:05,256 - INFO - /home/pi/Desktop/images/18052026/21/35/image_18052026_21_36_04_58901.jpg MAIN: 2026-05-18 21:36:05,256 - INFO - duration: 0.8817571669933386 MAIN: 2026-05-18 21:36:05,256 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/36' MAIN: 2026-05-18 21:36:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 21:37: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-05-18 21:37: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-05-18 21:37:05,309 - INFO - taking picture MAIN: 2026-05-18 21:37:05,310 - INFO - we take 907 photos in this while loop MAIN: 2026-05-18 21:37:05,310 - INFO - /home/pi/Desktop/images/18052026/21/36/image_18052026_21_37_04_60002.jpg MAIN: 2026-05-18 21:37:05,310 - INFO - duration: 0.9334377389968722 MAIN: 2026-05-18 21:37:05,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:38: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-05-18 21:38: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-05-18 21:38:05,890 - INFO - taking picture MAIN: 2026-05-18 21:38:05,891 - INFO - we take 908 photos in this while loop MAIN: 2026-05-18 21:38:05,891 - INFO - /home/pi/Desktop/images/18052026/21/37/image_18052026_21_38_05_60552.jpg MAIN: 2026-05-18 21:38:05,891 - INFO - duration: 0.9617240229999879 MAIN: 2026-05-18 21:38:05,891 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:39:04,787 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:39:05,182 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:39:05,450 - INFO - taking picture MAIN: 2026-05-18 21:39:05,451 - INFO - we take 909 photos in this while loop MAIN: 2026-05-18 21:39:05,451 - INFO - /home/pi/Desktop/images/18052026/21/38/image_18052026_21_39_04_59585.jpg MAIN: 2026-05-18 21:39:05,451 - INFO - duration: 0.9359805089989095 MAIN: 2026-05-18 21:39:05,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/39' MAIN: 2026-05-18 21:40:04,665 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=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-05-18 21:40:05,364 - INFO - taking picture MAIN: 2026-05-18 21:40:05,364 - INFO - we take 910 photos in this while loop MAIN: 2026-05-18 21:40:05,365 - INFO - /home/pi/Desktop/images/18052026/21/39/image_18052026_21_40_04_59876.jpg MAIN: 2026-05-18 21:40:05,365 - INFO - duration: 0.9733490489961696 MAIN: 2026-05-18 21:40:05,365 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/40' MAIN: 2026-05-18 21:40:05,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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 21:41: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-05-18 21:41:05,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-05-18 21:41:06,452 - INFO - taking picture MAIN: 2026-05-18 21:41:06,453 - INFO - we take 911 photos in this while loop MAIN: 2026-05-18 21:41:06,453 - INFO - /home/pi/Desktop/images/18052026/21/40/image_18052026_21_41_05_61092.jpg MAIN: 2026-05-18 21:41:06,453 - INFO - duration: 0.9689323479979066 MAIN: 2026-05-18 21:41:06,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:42: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-05-18 21:42:05,682 - INFO - taking picture MAIN: 2026-05-18 21:42:05,682 - INFO - we take 912 photos in this while loop MAIN: 2026-05-18 21:42:05,682 - INFO - /home/pi/Desktop/images/18052026/21/41/image_18052026_21_42_04_59217.jpg MAIN: 2026-05-18 21:42:05,682 - INFO - duration: 0.9812366750047659 MAIN: 2026-05-18 21:42:05,683 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/42' MAIN: 2026-05-18 21:42: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 21:43:05,117 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:43: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-05-18 21:43:05,779 - INFO - taking picture MAIN: 2026-05-18 21:43:05,780 - INFO - we take 913 photos in this while loop MAIN: 2026-05-18 21:43:05,780 - INFO - /home/pi/Desktop/images/18052026/21/42/image_18052026_21_43_05_60149.jpg MAIN: 2026-05-18 21:43:05,780 - INFO - duration: 0.9294190149958013 MAIN: 2026-05-18 21:43:05,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:44: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-05-18 21:44:05,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-05-18 21:44:06,093 - INFO - taking picture MAIN: 2026-05-18 21:44:06,093 - INFO - we take 914 photos in this while loop MAIN: 2026-05-18 21:44:06,093 - INFO - /home/pi/Desktop/images/18052026/21/43/image_18052026_21_44_05_60301.jpg MAIN: 2026-05-18 21:44:06,093 - INFO - duration: 0.9413566250004806 MAIN: 2026-05-18 21:44:06,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:45: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-05-18 21:45:05,311 - INFO - taking picture MAIN: 2026-05-18 21:45:05,311 - INFO - we take 915 photos in this while loop MAIN: 2026-05-18 21:45:05,311 - INFO - /home/pi/Desktop/images/18052026/21/44/image_18052026_21_45_04_59250.jpg MAIN: 2026-05-18 21:45:05,311 - INFO - duration: 0.9090954630009946 MAIN: 2026-05-18 21:45:05,312 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/45' MAIN: 2026-05-18 21:45:05,570 - 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-05-18 21: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-05-18 21:46: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-05-18 21:46:05,600 - INFO - taking picture MAIN: 2026-05-18 21:46:05,601 - INFO - we take 916 photos in this while loop MAIN: 2026-05-18 21:46:05,601 - INFO - /home/pi/Desktop/images/18052026/21/45/image_18052026_21_46_04_60200.jpg MAIN: 2026-05-18 21:46:05,601 - INFO - duration: 0.9979140700015705 MAIN: 2026-05-18 21:46:05,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:47:05,178 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:47:05,225 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:47:05,930 - INFO - taking picture MAIN: 2026-05-18 21:47:05,931 - INFO - we take 917 photos in this while loop MAIN: 2026-05-18 21:47:05,931 - INFO - /home/pi/Desktop/images/18052026/21/46/image_18052026_21_47_05_60334.jpg MAIN: 2026-05-18 21:47:05,931 - INFO - duration: 0.993653778998123 MAIN: 2026-05-18 21:47:05,931 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:48:05,285 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:48: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-05-18 21:48:05,951 - INFO - taking picture MAIN: 2026-05-18 21:48:05,951 - INFO - we take 918 photos in this while loop MAIN: 2026-05-18 21:48:05,951 - INFO - /home/pi/Desktop/images/18052026/21/47/image_18052026_21_48_05_60108.jpg MAIN: 2026-05-18 21:48:05,951 - INFO - duration: 0.9052527529929648 MAIN: 2026-05-18 21:48:05,952 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:49:04,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-05-18 21:49: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-05-18 21:49:06,190 - INFO - taking picture MAIN: 2026-05-18 21:49:06,191 - INFO - we take 919 photos in this while loop MAIN: 2026-05-18 21:49:06,191 - INFO - /home/pi/Desktop/images/18052026/21/48/image_18052026_21_49_05_60160.jpg MAIN: 2026-05-18 21:49:06,191 - INFO - duration: 0.9843128729989985 MAIN: 2026-05-18 21:49:06,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:50: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-05-18 21:50:05,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-05-18 21:50:06,335 - INFO - taking picture MAIN: 2026-05-18 21:50:06,335 - INFO - we take 920 photos in this while loop MAIN: 2026-05-18 21:50:06,335 - INFO - /home/pi/Desktop/images/18052026/21/49/image_18052026_21_50_05_60224.jpg MAIN: 2026-05-18 21:50:06,335 - INFO - duration: 0.9040625389970955 MAIN: 2026-05-18 21:50:06,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:51: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-05-18 21:51: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-05-18 21:51:06,068 - INFO - taking picture MAIN: 2026-05-18 21:51:06,068 - INFO - we take 921 photos in this while loop MAIN: 2026-05-18 21:51:06,068 - INFO - /home/pi/Desktop/images/18052026/21/50/image_18052026_21_51_05_59687.jpg MAIN: 2026-05-18 21:51:06,069 - INFO - duration: 0.9496132190033677 MAIN: 2026-05-18 21:51:06,069 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:52: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-05-18 21:52:05,356 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:52:05,948 - INFO - taking picture MAIN: 2026-05-18 21:52:05,948 - INFO - we take 922 photos in this while loop MAIN: 2026-05-18 21:52:05,948 - INFO - /home/pi/Desktop/images/18052026/21/51/image_18052026_21_52_05_59830.jpg MAIN: 2026-05-18 21:52:05,948 - INFO - duration: 0.9984301779986708 MAIN: 2026-05-18 21:52:05,948 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:53: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-05-18 21:53:05,408 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:53:06,057 - INFO - taking picture MAIN: 2026-05-18 21:53:06,057 - INFO - we take 923 photos in this while loop MAIN: 2026-05-18 21:53:06,057 - INFO - /home/pi/Desktop/images/18052026/21/52/image_18052026_21_53_05_60178.jpg MAIN: 2026-05-18 21:53:06,057 - INFO - duration: 0.9287811780013726 MAIN: 2026-05-18 21:53:06,058 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21: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-05-18 21:54:05,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-05-18 21:54:05,894 - INFO - taking picture MAIN: 2026-05-18 21:54:05,894 - INFO - we take 924 photos in this while loop MAIN: 2026-05-18 21:54:05,894 - INFO - /home/pi/Desktop/images/18052026/21/53/image_18052026_21_54_05_59848.jpg MAIN: 2026-05-18 21:54:05,894 - INFO - duration: 0.9176719239985687 MAIN: 2026-05-18 21:54:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:55: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-05-18 21:55: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-05-18 21:55:06,072 - INFO - taking picture MAIN: 2026-05-18 21:55:06,073 - INFO - we take 925 photos in this while loop MAIN: 2026-05-18 21:55:06,073 - INFO - /home/pi/Desktop/images/18052026/21/54/image_18052026_21_55_05_60194.jpg MAIN: 2026-05-18 21:55:06,073 - INFO - duration: 0.9023616229969775 MAIN: 2026-05-18 21:55:06,074 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:56: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-05-18 21:56: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-05-18 21:56:06,143 - INFO - taking picture MAIN: 2026-05-18 21:56:06,143 - INFO - we take 926 photos in this while loop MAIN: 2026-05-18 21:56:06,143 - INFO - /home/pi/Desktop/images/18052026/21/55/image_18052026_21_56_05_60043.jpg MAIN: 2026-05-18 21:56:06,144 - INFO - duration: 0.9289346899968223 MAIN: 2026-05-18 21:56:06,144 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:57:04,811 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:57:05,509 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:57:06,208 - INFO - taking picture MAIN: 2026-05-18 21:57:06,208 - INFO - we take 927 photos in this while loop MAIN: 2026-05-18 21:57:06,208 - INFO - /home/pi/Desktop/images/18052026/21/56/image_18052026_21_57_05_60071.jpg MAIN: 2026-05-18 21:57:06,208 - INFO - duration: 0.9222440759986057 MAIN: 2026-05-18 21:57:06,209 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 21:58: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-05-18 21:58: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 ! MAIN: 2026-05-18 21:58:05,546 - INFO - taking picture MAIN: 2026-05-18 21:58:05,547 - INFO - we take 928 photos in this while loop MAIN: 2026-05-18 21:58:05,547 - INFO - /home/pi/Desktop/images/18052026/21/57/image_18052026_21_58_04_59336.jpg MAIN: 2026-05-18 21:58:05,547 - INFO - duration: 0.9247656770021422 MAIN: 2026-05-18 21:58:05,547 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/21/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-05-18 21:59:04,907 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 21:59:05,278 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 21:59:05,575 - INFO - taking picture MAIN: 2026-05-18 21:59:05,576 - INFO - we take 929 photos in this while loop MAIN: 2026-05-18 21:59:05,576 - INFO - /home/pi/Desktop/images/18052026/21/58/image_18052026_21_59_04_60038.jpg MAIN: 2026-05-18 21:59:05,576 - INFO - duration: 0.914915151995956 MAIN: 2026-05-18 21:59:05,576 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:00:05,174 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:00:05,629 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:00:05,880 - INFO - taking picture MAIN: 2026-05-18 22:00:05,880 - INFO - we take 930 photos in this while loop MAIN: 2026-05-18 22:00:05,880 - INFO - /home/pi/Desktop/images/18052026/21/59/image_18052026_22_00_05_60279.jpg MAIN: 2026-05-18 22:00:05,881 - INFO - duration: 0.9402551960010896 MAIN: 2026-05-18 22:00:05,881 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:01: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-05-18 22:01: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-05-18 22:01:06,170 - INFO - taking picture MAIN: 2026-05-18 22:01:06,170 - INFO - we take 931 photos in this while loop MAIN: 2026-05-18 22:01:06,170 - INFO - /home/pi/Desktop/images/18052026/22/00/image_18052026_22_01_05_60303.jpg MAIN: 2026-05-18 22:01:06,171 - INFO - duration: 0.9269051529990975 MAIN: 2026-05-18 22:01:06,171 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:02:05,606 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:02: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 ! MAIN: 2026-05-18 22:02:06,288 - INFO - taking picture MAIN: 2026-05-18 22:02:06,288 - INFO - we take 932 photos in this while loop MAIN: 2026-05-18 22:02:06,289 - INFO - /home/pi/Desktop/images/18052026/22/01/image_18052026_22_02_05_60090.jpg MAIN: 2026-05-18 22:02:06,289 - INFO - duration: 0.9546917260013288 MAIN: 2026-05-18 22:02:06,289 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:03:04,599 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:03:04,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-05-18 22:03:05,282 - INFO - taking picture MAIN: 2026-05-18 22:03:05,282 - INFO - we take 933 photos in this while loop MAIN: 2026-05-18 22:03:05,282 - INFO - /home/pi/Desktop/images/18052026/22/02/image_18052026_22_03_04_59013.jpg MAIN: 2026-05-18 22:03:05,282 - INFO - duration: 0.9344553670016467 MAIN: 2026-05-18 22:03:05,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:04:04,762 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:04: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-05-18 22:04:05,460 - INFO - taking picture MAIN: 2026-05-18 22:04:05,461 - INFO - we take 934 photos in this while loop MAIN: 2026-05-18 22:04:05,461 - INFO - /home/pi/Desktop/images/18052026/22/03/image_18052026_22_04_04_60150.jpg MAIN: 2026-05-18 22:04:05,461 - INFO - duration: 0.9622828290011967 MAIN: 2026-05-18 22:04:05,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:05: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-05-18 22:05: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-05-18 22:05:05,772 - INFO - taking picture MAIN: 2026-05-18 22:05:05,772 - INFO - we take 935 photos in this while loop MAIN: 2026-05-18 22:05:05,772 - INFO - /home/pi/Desktop/images/18052026/22/04/image_18052026_22_05_05_60408.jpg MAIN: 2026-05-18 22:05:05,773 - INFO - duration: 0.865277844000957 MAIN: 2026-05-18 22:05:05,773 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:06: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-05-18 22: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-05-18 22:06:05,800 - INFO - taking picture MAIN: 2026-05-18 22:06:05,801 - INFO - we take 936 photos in this while loop MAIN: 2026-05-18 22:06:05,801 - INFO - /home/pi/Desktop/images/18052026/22/05/image_18052026_22_06_05_59945.jpg MAIN: 2026-05-18 22:06:05,801 - INFO - duration: 0.9480090180004481 MAIN: 2026-05-18 22:06:05,801 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:07:05,349 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:07: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-05-18 22:07:06,034 - INFO - taking picture MAIN: 2026-05-18 22:07:06,035 - INFO - we take 937 photos in this while loop MAIN: 2026-05-18 22:07:06,035 - INFO - /home/pi/Desktop/images/18052026/22/06/image_18052026_22_07_05_60230.jpg MAIN: 2026-05-18 22:07:06,035 - INFO - duration: 0.9515234430000419 MAIN: 2026-05-18 22:07:06,035 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:08: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-05-18 22:08:05,664 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:08:06,126 - INFO - taking picture MAIN: 2026-05-18 22:08:06,126 - INFO - we take 938 photos in this while loop MAIN: 2026-05-18 22:08:06,126 - INFO - /home/pi/Desktop/images/18052026/22/07/image_18052026_22_08_05_60120.jpg MAIN: 2026-05-18 22:08:06,126 - INFO - duration: 0.9223431240025093 MAIN: 2026-05-18 22:08:06,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:09:04,733 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:09: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-05-18 22:09:06,242 - INFO - taking picture MAIN: 2026-05-18 22:09:06,242 - INFO - we take 939 photos in this while loop MAIN: 2026-05-18 22:09:06,242 - INFO - /home/pi/Desktop/images/18052026/22/08/image_18052026_22_09_05_60132.jpg MAIN: 2026-05-18 22:09:06,242 - INFO - duration: 0.9056744029949186 MAIN: 2026-05-18 22:09:06,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:10:04,694 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:10:05,413 - INFO - taking picture MAIN: 2026-05-18 22:10:05,414 - INFO - we take 940 photos in this while loop MAIN: 2026-05-18 22:10:05,414 - INFO - /home/pi/Desktop/images/18052026/22/09/image_18052026_22_10_04_59104.jpg MAIN: 2026-05-18 22:10:05,414 - INFO - duration: 0.972591747995466 MAIN: 2026-05-18 22:10:05,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/10' MAIN: 2026-05-18 22:10: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-05-18 22:11:04,890 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:11:05,041 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:11:05,540 - INFO - taking picture MAIN: 2026-05-18 22:11:05,540 - INFO - we take 941 photos in this while loop MAIN: 2026-05-18 22:11:05,540 - INFO - /home/pi/Desktop/images/18052026/22/10/image_18052026_22_11_04_60205.jpg MAIN: 2026-05-18 22:11:05,540 - INFO - duration: 0.8931688750017202 MAIN: 2026-05-18 22:11:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:12:04,956 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:12: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-05-18 22:12:05,614 - INFO - taking picture MAIN: 2026-05-18 22:12:05,614 - INFO - we take 942 photos in this while loop MAIN: 2026-05-18 22:12:05,614 - INFO - /home/pi/Desktop/images/18052026/22/11/image_18052026_22_12_04_60039.jpg MAIN: 2026-05-18 22:12:05,615 - INFO - duration: 0.9282120009956998 MAIN: 2026-05-18 22:12:05,615 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:13:05,029 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:13: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-05-18 22:13:05,722 - INFO - taking picture MAIN: 2026-05-18 22:13:05,722 - INFO - we take 943 photos in this while loop MAIN: 2026-05-18 22:13:05,723 - INFO - /home/pi/Desktop/images/18052026/22/12/image_18052026_22_13_05_60073.jpg MAIN: 2026-05-18 22:13:05,723 - INFO - duration: 0.9624393709964352 MAIN: 2026-05-18 22:13:05,723 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:14:05,231 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:14: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-05-18 22:14:05,924 - INFO - taking picture MAIN: 2026-05-18 22:14:05,924 - INFO - we take 944 photos in this while loop MAIN: 2026-05-18 22:14:05,924 - INFO - /home/pi/Desktop/images/18052026/22/13/image_18052026_22_14_05_60203.jpg MAIN: 2026-05-18 22:14:05,925 - INFO - duration: 0.9605442829997628 MAIN: 2026-05-18 22:14:05,925 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:15:05,439 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:15:05,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-05-18 22:15:06,142 - INFO - taking picture MAIN: 2026-05-18 22:15:06,142 - INFO - we take 945 photos in this while loop MAIN: 2026-05-18 22:15:06,142 - INFO - /home/pi/Desktop/images/18052026/22/14/image_18052026_22_15_05_60244.jpg MAIN: 2026-05-18 22:15:06,143 - INFO - duration: 0.9341553860067506 MAIN: 2026-05-18 22:15:06,143 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:16: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-05-18 22:16: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-05-18 22:16:06,253 - INFO - taking picture MAIN: 2026-05-18 22:16:06,254 - INFO - we take 946 photos in this while loop MAIN: 2026-05-18 22:16:06,254 - INFO - /home/pi/Desktop/images/18052026/22/15/image_18052026_22_16_05_60145.jpg MAIN: 2026-05-18 22:16:06,254 - INFO - duration: 0.8996081450022757 MAIN: 2026-05-18 22:16:06,254 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:17:04,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-05-18 22:17:05,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 MAIN: 2026-05-18 22:17:06,299 - INFO - taking picture MAIN: 2026-05-18 22:17:06,300 - INFO - we take 947 photos in this while loop MAIN: 2026-05-18 22:17:06,300 - INFO - /home/pi/Desktop/images/18052026/22/16/image_18052026_22_17_05_60027.jpg MAIN: 2026-05-18 22:17:06,300 - INFO - duration: 0.918443586997455 MAIN: 2026-05-18 22:17:06,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:18:05,297 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:18: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-05-18 22:18:06,195 - INFO - taking picture MAIN: 2026-05-18 22:18:06,195 - INFO - we take 948 photos in this while loop MAIN: 2026-05-18 22:18:06,195 - INFO - /home/pi/Desktop/images/18052026/22/17/image_18052026_22_18_05_59852.jpg MAIN: 2026-05-18 22:18:06,195 - INFO - duration: 0.961526920000324 MAIN: 2026-05-18 22:18:06,196 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:19: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-05-18 22:19:05,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-05-18 22:19:06,134 - INFO - taking picture MAIN: 2026-05-18 22:19:06,134 - INFO - we take 949 photos in this while loop MAIN: 2026-05-18 22:19:06,134 - INFO - /home/pi/Desktop/images/18052026/22/18/image_18052026_22_19_05_59999.jpg MAIN: 2026-05-18 22:19:06,134 - INFO - duration: 0.9009373240041896 MAIN: 2026-05-18 22:19:06,134 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:20:05,423 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:20:05,728 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:20:06,092 - INFO - taking picture MAIN: 2026-05-18 22:20:06,092 - INFO - we take 950 photos in this while loop MAIN: 2026-05-18 22:20:06,093 - INFO - /home/pi/Desktop/images/18052026/22/19/image_18052026_22_20_05_59955.jpg MAIN: 2026-05-18 22:20:06,093 - INFO - duration: 0.9041643579985248 MAIN: 2026-05-18 22:20:06,093 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:21: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-05-18 22:21:05,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-05-18 22:21:06,137 - INFO - taking picture MAIN: 2026-05-18 22:21:06,137 - INFO - we take 951 photos in this while loop MAIN: 2026-05-18 22:21:06,137 - INFO - /home/pi/Desktop/images/18052026/22/20/image_18052026_22_21_05_59954.jpg MAIN: 2026-05-18 22:21:06,137 - INFO - duration: 0.9944823629994062 MAIN: 2026-05-18 22:21:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:22:05,604 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:22:05,649 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:22:06,273 - INFO - taking picture MAIN: 2026-05-18 22:22:06,273 - INFO - we take 952 photos in this while loop MAIN: 2026-05-18 22:22:06,273 - INFO - /home/pi/Desktop/images/18052026/22/21/image_18052026_22_22_05_60188.jpg MAIN: 2026-05-18 22:22:06,273 - INFO - duration: 0.9423574639949948 MAIN: 2026-05-18 22:22:06,274 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:23: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-05-18 22:23:05,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-05-18 22:23:06,398 - INFO - taking picture MAIN: 2026-05-18 22:23:06,399 - INFO - we take 953 photos in this while loop MAIN: 2026-05-18 22:23:06,399 - INFO - /home/pi/Desktop/images/18052026/22/22/image_18052026_22_23_05_60152.jpg MAIN: 2026-05-18 22:23:06,399 - INFO - duration: 0.9156045310010086 MAIN: 2026-05-18 22:23:06,399 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:24:04,604 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:24: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-05-18 22:24:05,266 - INFO - taking picture MAIN: 2026-05-18 22:24:05,267 - INFO - we take 954 photos in this while loop MAIN: 2026-05-18 22:24:05,267 - INFO - /home/pi/Desktop/images/18052026/22/23/image_18052026_22_24_04_58872.jpg MAIN: 2026-05-18 22:24:05,267 - INFO - duration: 0.9113818789992365 MAIN: 2026-05-18 22:24:05,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:25:05,189 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:25: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-05-18 22:25:06,281 - INFO - taking picture MAIN: 2026-05-18 22:25:06,281 - INFO - we take 955 photos in this while loop MAIN: 2026-05-18 22:25:06,281 - INFO - /home/pi/Desktop/images/18052026/22/24/image_18052026_22_25_05_61030.jpg MAIN: 2026-05-18 22:25:06,281 - INFO - duration: 0.8955810170009499 MAIN: 2026-05-18 22:25:06,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:26:04,856 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:26:05,544 - INFO - taking picture MAIN: 2026-05-18 22:26:05,544 - INFO - we take 956 photos in this while loop MAIN: 2026-05-18 22:26:05,544 - INFO - /home/pi/Desktop/images/18052026/22/25/image_18052026_22_26_04_59186.jpg MAIN: 2026-05-18 22:26:05,544 - INFO - duration: 0.9717705739967641 MAIN: 2026-05-18 22:26:05,545 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/26' MAIN: 2026-05-18 22:26:05,611 - 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-05-18 22:27:05,012 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:27: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 ! MAIN: 2026-05-18 22:27:05,707 - INFO - taking picture MAIN: 2026-05-18 22:27:05,708 - INFO - we take 957 photos in this while loop MAIN: 2026-05-18 22:27:05,708 - INFO - /home/pi/Desktop/images/18052026/22/26/image_18052026_22_27_05_60172.jpg MAIN: 2026-05-18 22:27:05,708 - INFO - duration: 0.9629848100012168 MAIN: 2026-05-18 22:27:05,708 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:28: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-05-18 22:28:05,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-05-18 22:28:05,886 - INFO - taking picture MAIN: 2026-05-18 22:28:05,887 - INFO - we take 958 photos in this while loop MAIN: 2026-05-18 22:28:05,887 - INFO - /home/pi/Desktop/images/18052026/22/27/image_18052026_22_28_05_60209.jpg MAIN: 2026-05-18 22:28:05,887 - INFO - duration: 0.9326086820001365 MAIN: 2026-05-18 22:28:05,887 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:29: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-05-18 22:29: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-05-18 22:29:06,016 - INFO - taking picture MAIN: 2026-05-18 22:29:06,017 - INFO - we take 959 photos in this while loop MAIN: 2026-05-18 22:29:06,017 - INFO - /home/pi/Desktop/images/18052026/22/28/image_18052026_22_29_05_60123.jpg MAIN: 2026-05-18 22:29:06,017 - INFO - duration: 0.9395586749960785 MAIN: 2026-05-18 22:29:06,017 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:30: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-05-18 22:30: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-05-18 22:30:06,262 - INFO - taking picture MAIN: 2026-05-18 22:30:06,262 - INFO - we take 960 photos in this while loop MAIN: 2026-05-18 22:30:06,262 - INFO - /home/pi/Desktop/images/18052026/22/29/image_18052026_22_30_05_60230.jpg MAIN: 2026-05-18 22:30:06,262 - INFO - duration: 0.9540509690050385 MAIN: 2026-05-18 22:30:06,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:31: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-05-18 22:31:05,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-05-18 22:31:06,420 - INFO - taking picture MAIN: 2026-05-18 22:31:06,420 - INFO - we take 961 photos in this while loop MAIN: 2026-05-18 22:31:06,420 - INFO - /home/pi/Desktop/images/18052026/22/30/image_18052026_22_31_05_60138.jpg MAIN: 2026-05-18 22:31:06,420 - INFO - duration: 0.9728299400012475 MAIN: 2026-05-18 22:31:06,421 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:32:04,764 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:32:05,450 - INFO - taking picture MAIN: 2026-05-18 22:32:05,450 - INFO - we take 962 photos in this while loop MAIN: 2026-05-18 22:32:05,450 - INFO - /home/pi/Desktop/images/18052026/22/31/image_18052026_22_32_04_59052.jpg MAIN: 2026-05-18 22:32:05,451 - INFO - duration: 0.9503175429999828 MAIN: 2026-05-18 22:32:05,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/32' MAIN: 2026-05-18 22:32: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 22:33:04,863 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:33: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-05-18 22:33:05,563 - INFO - taking picture MAIN: 2026-05-18 22:33:05,563 - INFO - we take 963 photos in this while loop MAIN: 2026-05-18 22:33:05,563 - INFO - /home/pi/Desktop/images/18052026/22/32/image_18052026_22_33_04_60076.jpg MAIN: 2026-05-18 22:33:05,563 - INFO - duration: 0.9862232629966456 MAIN: 2026-05-18 22:33:05,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:34:05,048 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:34:05,701 - INFO - taking picture MAIN: 2026-05-18 22:34:05,701 - INFO - we take 964 photos in this while loop MAIN: 2026-05-18 22:34:05,701 - INFO - /home/pi/Desktop/images/18052026/22/33/image_18052026_22_34_05_60223.jpg MAIN: 2026-05-18 22:34:05,701 - INFO - duration: 0.9004060969964485 MAIN: 2026-05-18 22:34:05,702 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/34' MAIN: 2026-05-18 22:34: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-05-18 22:35: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-05-18 22:35: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-05-18 22:35:05,604 - INFO - taking picture MAIN: 2026-05-18 22:35:05,605 - INFO - we take 965 photos in this while loop MAIN: 2026-05-18 22:35:05,605 - INFO - /home/pi/Desktop/images/18052026/22/34/image_18052026_22_35_04_59937.jpg MAIN: 2026-05-18 22:35:05,605 - INFO - duration: 0.8664086499993573 MAIN: 2026-05-18 22:35:05,605 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:36: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-05-18 22:36:05,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 ! MAIN: 2026-05-18 22:36:05,649 - INFO - taking picture MAIN: 2026-05-18 22:36:05,649 - INFO - we take 966 photos in this while loop MAIN: 2026-05-18 22:36:05,649 - INFO - /home/pi/Desktop/images/18052026/22/35/image_18052026_22_36_04_59989.jpg MAIN: 2026-05-18 22:36:05,650 - INFO - duration: 0.9217202930012718 MAIN: 2026-05-18 22:36:05,650 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:37:05,011 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:37: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-05-18 22:37:05,665 - INFO - taking picture MAIN: 2026-05-18 22:37:05,665 - INFO - we take 967 photos in this while loop MAIN: 2026-05-18 22:37:05,665 - INFO - /home/pi/Desktop/images/18052026/22/36/image_18052026_22_37_05_60026.jpg MAIN: 2026-05-18 22:37:05,665 - INFO - duration: 0.9109697829990182 MAIN: 2026-05-18 22:37:05,666 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:38: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-05-18 22:38:05,296 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:38:05,735 - INFO - taking picture MAIN: 2026-05-18 22:38:05,736 - INFO - we take 968 photos in this while loop MAIN: 2026-05-18 22:38:05,736 - INFO - /home/pi/Desktop/images/18052026/22/37/image_18052026_22_38_05_60046.jpg MAIN: 2026-05-18 22:38:05,736 - INFO - duration: 0.9354075859955628 MAIN: 2026-05-18 22:38:05,736 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:39:05,361 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:39: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-05-18 22:39:06,016 - INFO - taking picture MAIN: 2026-05-18 22:39:06,016 - INFO - we take 969 photos in this while loop MAIN: 2026-05-18 22:39:06,016 - INFO - /home/pi/Desktop/images/18052026/22/38/image_18052026_22_39_05_60320.jpg MAIN: 2026-05-18 22:39:06,016 - INFO - duration: 0.8954382079973584 MAIN: 2026-05-18 22:39:06,017 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:40: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-05-18 22:40:05,981 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:40:06,251 - INFO - taking picture MAIN: 2026-05-18 22:40:06,251 - INFO - we take 970 photos in this while loop MAIN: 2026-05-18 22:40:06,251 - INFO - /home/pi/Desktop/images/18052026/22/39/image_18052026_22_40_05_60230.jpg MAIN: 2026-05-18 22:40:06,251 - INFO - duration: 0.8999873280044994 MAIN: 2026-05-18 22:40:06,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:41:04,921 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:41:05,774 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:41:06,460 - INFO - taking picture MAIN: 2026-05-18 22:41:06,460 - INFO - we take 971 photos in this while loop MAIN: 2026-05-18 22:41:06,460 - INFO - /home/pi/Desktop/images/18052026/22/40/image_18052026_22_41_05_60163.jpg MAIN: 2026-05-18 22:41:06,460 - INFO - duration: 0.9453132340058801 MAIN: 2026-05-18 22:41:06,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:42:04,741 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:42: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-05-18 22:42:05,398 - INFO - taking picture MAIN: 2026-05-18 22:42:05,398 - INFO - we take 972 photos in this while loop MAIN: 2026-05-18 22:42:05,399 - INFO - /home/pi/Desktop/images/18052026/22/41/image_18052026_22_42_04_58977.jpg MAIN: 2026-05-18 22:42:05,399 - INFO - duration: 0.9060816310011433 MAIN: 2026-05-18 22:42:05,399 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:43: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-05-18 22:43: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-05-18 22:43:05,524 - INFO - taking picture MAIN: 2026-05-18 22:43:05,524 - INFO - we take 973 photos in this while loop MAIN: 2026-05-18 22:43:05,524 - INFO - /home/pi/Desktop/images/18052026/22/42/image_18052026_22_43_04_60112.jpg MAIN: 2026-05-18 22:43:05,524 - INFO - duration: 0.9195043749932665 MAIN: 2026-05-18 22:43:05,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:44: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-05-18 22:44: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-05-18 22:44:05,638 - INFO - taking picture MAIN: 2026-05-18 22:44:05,638 - INFO - we take 974 photos in this while loop MAIN: 2026-05-18 22:44:05,638 - INFO - /home/pi/Desktop/images/18052026/22/43/image_18052026_22_44_04_60130.jpg MAIN: 2026-05-18 22:44:05,639 - INFO - duration: 0.9035875640111044 MAIN: 2026-05-18 22:44:05,639 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:45:05,152 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:45:05,798 - INFO - taking picture MAIN: 2026-05-18 22:45:05,798 - INFO - we take 975 photos in this while loop MAIN: 2026-05-18 22:45:05,798 - INFO - /home/pi/Desktop/images/18052026/22/44/image_18052026_22_45_05_60190.jpg MAIN: 2026-05-18 22:45:05,798 - INFO - duration: 0.8733813099970575 MAIN: 2026-05-18 22:45:05,799 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/45' MAIN: 2026-05-18 22:45:06,031 - 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-05-18 22:46: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-05-18 22:46:05,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-05-18 22:46:05,900 - INFO - taking picture MAIN: 2026-05-18 22:46:05,900 - INFO - we take 976 photos in this while loop MAIN: 2026-05-18 22:46:05,900 - INFO - /home/pi/Desktop/images/18052026/22/45/image_18052026_22_46_05_60053.jpg MAIN: 2026-05-18 22:46:05,900 - INFO - duration: 0.9216380970028695 MAIN: 2026-05-18 22:46:05,901 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:47:05,272 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:47:05,460 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:47:05,925 - INFO - taking picture MAIN: 2026-05-18 22:47:05,926 - INFO - we take 977 photos in this while loop MAIN: 2026-05-18 22:47:05,926 - INFO - /home/pi/Desktop/images/18052026/22/46/image_18052026_22_47_05_60043.jpg MAIN: 2026-05-18 22:47:05,926 - INFO - duration: 0.9032501070032595 MAIN: 2026-05-18 22:47:05,926 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:48: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-05-18 22:48: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-05-18 22:48:06,130 - INFO - taking picture MAIN: 2026-05-18 22:48:06,130 - INFO - we take 978 photos in this while loop MAIN: 2026-05-18 22:48:06,130 - INFO - /home/pi/Desktop/images/18052026/22/47/image_18052026_22_48_05_60245.jpg MAIN: 2026-05-18 22:48:06,130 - INFO - duration: 0.8616370300005656 MAIN: 2026-05-18 22:48:06,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:49:04,866 - INFO - cam.read() return no image Will output and maybe also write in take_pic/pic_log.txt Using /dev/video for video capture ! MAIN: 2026-05-18 22:49:05,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-05-18 22:49:06,319 - INFO - taking picture MAIN: 2026-05-18 22:49:06,319 - INFO - we take 979 photos in this while loop MAIN: 2026-05-18 22:49:06,319 - INFO - /home/pi/Desktop/images/18052026/22/48/image_18052026_22_49_05_60140.jpg MAIN: 2026-05-18 22:49:06,319 - INFO - duration: 0.9103360400040401 MAIN: 2026-05-18 22:49:06,320 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:50: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-05-18 22:50:05,512 - INFO - taking picture MAIN: 2026-05-18 22:50:05,512 - INFO - we take 980 photos in this while loop MAIN: 2026-05-18 22:50:05,512 - INFO - /home/pi/Desktop/images/18052026/22/49/image_18052026_22_50_04_59197.jpg MAIN: 2026-05-18 22:50:05,512 - INFO - duration: 0.9061530909966677 MAIN: 2026-05-18 22:50:05,513 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/50' MAIN: 2026-05-18 22:50: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 ! [ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index MAIN: 2026-05-18 22:51: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-05-18 22:51: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-05-18 22:51:05,558 - INFO - taking picture MAIN: 2026-05-18 22:51:05,558 - INFO - we take 981 photos in this while loop MAIN: 2026-05-18 22:51:05,558 - INFO - /home/pi/Desktop/images/18052026/22/50/image_18052026_22_51_04_60033.jpg MAIN: 2026-05-18 22:51:05,558 - INFO - duration: 0.9189254459924996 MAIN: 2026-05-18 22:51:05,559 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:52:05,096 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:52:05,784 - INFO - taking picture MAIN: 2026-05-18 22:52:05,784 - INFO - we take 982 photos in this while loop MAIN: 2026-05-18 22:52:05,784 - INFO - /home/pi/Desktop/images/18052026/22/51/image_18052026_22_52_05_60201.jpg MAIN: 2026-05-18 22:52:05,784 - INFO - duration: 0.9430731619941071 MAIN: 2026-05-18 22:52:05,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/52' MAIN: 2026-05-18 22:52:05,808 - 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-05-18 22:53: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-05-18 22:53: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-05-18 22:53:06,049 - INFO - taking picture MAIN: 2026-05-18 22:53:06,050 - INFO - we take 983 photos in this while loop MAIN: 2026-05-18 22:53:06,050 - INFO - /home/pi/Desktop/images/18052026/22/52/image_18052026_22_53_05_60256.jpg MAIN: 2026-05-18 22:53:06,050 - INFO - duration: 0.9525223880045814 MAIN: 2026-05-18 22:53:06,050 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:54: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-05-18 22:54: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 ! MAIN: 2026-05-18 22:54:06,009 - INFO - taking picture MAIN: 2026-05-18 22:54:06,009 - INFO - we take 984 photos in this while loop MAIN: 2026-05-18 22:54:06,009 - INFO - /home/pi/Desktop/images/18052026/22/53/image_18052026_22_54_05_59979.jpg MAIN: 2026-05-18 22:54:06,010 - INFO - duration: 0.9322192440013168 MAIN: 2026-05-18 22:54:06,010 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:55: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-05-18 22:55:05,592 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:55:06,280 - INFO - taking picture MAIN: 2026-05-18 22:55:06,280 - INFO - we take 985 photos in this while loop MAIN: 2026-05-18 22:55:06,280 - INFO - /home/pi/Desktop/images/18052026/22/54/image_18052026_22_55_05_60241.jpg MAIN: 2026-05-18 22:55:06,281 - INFO - duration: 0.9616708940011449 MAIN: 2026-05-18 22:55:06,281 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/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-05-18 22:56: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-05-18 22:56: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-05-18 22:56:05,402 - INFO - taking picture MAIN: 2026-05-18 22:56:05,402 - INFO - we take 986 photos in this while loop MAIN: 2026-05-18 22:56:05,402 - INFO - /home/pi/Desktop/images/18052026/22/55/image_18052026_22_56_04_59163.jpg MAIN: 2026-05-18 22:56:05,402 - INFO - duration: 0.9199659980076831 MAIN: 2026-05-18 22:56:05,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:57:04,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 ! MAIN: 2026-05-18 22:57:05,006 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:57:05,655 - INFO - taking picture MAIN: 2026-05-18 22:57:05,655 - INFO - we take 987 photos in this while loop MAIN: 2026-05-18 22:57:05,655 - INFO - /home/pi/Desktop/images/18052026/22/56/image_18052026_22_57_05_60229.jpg MAIN: 2026-05-18 22:57:05,655 - INFO - duration: 0.9429079760011518 MAIN: 2026-05-18 22:57:05,656 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:58:04,994 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:58:05,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-05-18 22:58:05,696 - INFO - taking picture MAIN: 2026-05-18 22:58:05,696 - INFO - we take 988 photos in this while loop MAIN: 2026-05-18 22:58:05,696 - INFO - /home/pi/Desktop/images/18052026/22/57/image_18052026_22_58_04_60033.jpg MAIN: 2026-05-18 22:58:05,696 - INFO - duration: 0.9506425160070648 MAIN: 2026-05-18 22:58:05,696 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/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-05-18 22:59:05,140 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 22:59: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-05-18 22:59:05,841 - INFO - taking picture MAIN: 2026-05-18 22:59:05,841 - INFO - we take 989 photos in this while loop MAIN: 2026-05-18 22:59:05,841 - INFO - /home/pi/Desktop/images/18052026/22/58/image_18052026_22_59_05_60133.jpg MAIN: 2026-05-18 22:59:05,841 - INFO - duration: 0.9623546130023897 MAIN: 2026-05-18 22:59:05,842 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/18052026/22/59' MAIN: 2026-05-18 23:00:05,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-05-18 23:00:06,356 - INFO - taking picture MAIN: 2026-05-18 23:00:06,357 - INFO - we take 990 photos in this while loop MAIN: 2026-05-18 23:00:06,357 - INFO - /home/pi/Desktop/images/18052026/22/59/image_18052026_23_00_05_60500.jpg MAIN: 2026-05-18 23:00:06,357 - INFO - duration: 0.9777879859902896 MAIN: 2026-05-18 23:01:04,646 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:01:05,323 - INFO - taking picture MAIN: 2026-05-18 23:01:05,324 - INFO - we take 991 photos in this while loop MAIN: 2026-05-18 23:01:05,324 - INFO - /home/pi/Desktop/images/18052026/23/00/image_18052026_23_01_04_59006.jpg MAIN: 2026-05-18 23:01:05,324 - INFO - duration: 0.9384530539973639 MAIN: 2026-05-18 23:02:04,938 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:02:05,584 - INFO - taking picture MAIN: 2026-05-18 23:02:05,584 - INFO - we take 992 photos in this while loop MAIN: 2026-05-18 23:02:05,584 - INFO - /home/pi/Desktop/images/18052026/23/01/image_18052026_23_02_04_60295.jpg MAIN: 2026-05-18 23:02:05,584 - INFO - duration: 0.9037986740004271 MAIN: 2026-05-18 23:03: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-05-18 23:03:05,637 - INFO - taking picture MAIN: 2026-05-18 23:03:05,637 - INFO - we take 993 photos in this while loop MAIN: 2026-05-18 23:03:05,637 - INFO - /home/pi/Desktop/images/18052026/23/02/image_18052026_23_03_04_59974.jpg MAIN: 2026-05-18 23:03:05,637 - INFO - duration: 0.9820624559943099 MAIN: 2026-05-18 23:04:05,001 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:04:05,648 - INFO - taking picture MAIN: 2026-05-18 23:04:05,648 - INFO - we take 994 photos in this while loop MAIN: 2026-05-18 23:04:05,648 - INFO - /home/pi/Desktop/images/18052026/23/03/image_18052026_23_04_05_60097.jpg MAIN: 2026-05-18 23:04:05,649 - INFO - duration: 0.8959983810054837 MAIN: 2026-05-18 23:05: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-05-18 23:05:05,607 - INFO - taking picture MAIN: 2026-05-18 23:05:05,607 - INFO - we take 995 photos in this while loop MAIN: 2026-05-18 23:05:05,607 - INFO - /home/pi/Desktop/images/18052026/23/04/image_18052026_23_05_04_59964.jpg MAIN: 2026-05-18 23:05:05,608 - INFO - duration: 0.8904756669944618 MAIN: 2026-05-18 23:06:05,029 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:06:05,678 - INFO - taking picture MAIN: 2026-05-18 23:06:05,678 - INFO - we take 996 photos in this while loop MAIN: 2026-05-18 23:06:05,678 - INFO - /home/pi/Desktop/images/18052026/23/05/image_18052026_23_06_05_60068.jpg MAIN: 2026-05-18 23:06:05,678 - INFO - duration: 0.8924547560018254 MAIN: 2026-05-18 23:07:04,787 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:07:05,432 - INFO - taking picture MAIN: 2026-05-18 23:07:05,433 - INFO - we take 997 photos in this while loop MAIN: 2026-05-18 23:07:05,433 - INFO - /home/pi/Desktop/images/18052026/23/06/image_18052026_23_07_04_59734.jpg MAIN: 2026-05-18 23:07:05,433 - INFO - duration: 0.9123979290015996 MAIN: 2026-05-18 23:08: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-05-18 23:08:05,524 - INFO - taking picture MAIN: 2026-05-18 23:08:05,525 - INFO - we take 998 photos in this while loop MAIN: 2026-05-18 23:08:05,525 - INFO - /home/pi/Desktop/images/18052026/23/07/image_18052026_23_08_04_60093.jpg MAIN: 2026-05-18 23:08:05,525 - INFO - duration: 0.9106389049993595 MAIN: 2026-05-18 23:09: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-05-18 23:09:05,468 - INFO - taking picture MAIN: 2026-05-18 23:09:05,468 - INFO - we take 999 photos in this while loop MAIN: 2026-05-18 23:09:05,468 - INFO - /home/pi/Desktop/images/18052026/23/08/image_18052026_23_09_04_59939.jpg MAIN: 2026-05-18 23:09:05,468 - INFO - duration: 0.9144195709959604 MAIN: 2026-05-18 23:10: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-05-18 23:10:05,528 - INFO - taking picture MAIN: 2026-05-18 23:10:05,528 - INFO - we take 1000 photos in this while loop MAIN: 2026-05-18 23:10:05,529 - INFO - /home/pi/Desktop/images/18052026/23/09/image_18052026_23_10_04_60063.jpg MAIN: 2026-05-18 23:10:05,529 - INFO - duration: 0.9110812060098397 MAIN: 2026-05-18 23:11:04,587 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:11:05,274 - INFO - taking picture MAIN: 2026-05-18 23:11:05,275 - INFO - we take 1001 photos in this while loop MAIN: 2026-05-18 23:11:05,275 - INFO - /home/pi/Desktop/images/18052026/23/10/image_18052026_23_11_04_59743.jpg MAIN: 2026-05-18 23:11:05,275 - INFO - duration: 0.9140162429976044 MAIN: 2026-05-18 23:12: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-05-18 23:12:05,270 - INFO - taking picture MAIN: 2026-05-18 23:12:05,271 - INFO - we take 1002 photos in this while loop MAIN: 2026-05-18 23:12:05,271 - INFO - /home/pi/Desktop/images/18052026/23/11/image_18052026_23_12_04_60027.jpg MAIN: 2026-05-18 23:12:05,271 - INFO - duration: 0.8819596730027115 MAIN: 2026-05-18 23:13:04,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-05-18 23:13:05,223 - INFO - taking picture MAIN: 2026-05-18 23:13:05,224 - INFO - we take 1003 photos in this while loop MAIN: 2026-05-18 23:13:05,224 - INFO - /home/pi/Desktop/images/18052026/23/12/image_18052026_23_13_04_59949.jpg MAIN: 2026-05-18 23:13:05,224 - INFO - duration: 0.8853545669990126 MAIN: 2026-05-18 23:14: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-05-18 23:14:05,454 - INFO - taking picture MAIN: 2026-05-18 23:14:05,454 - INFO - we take 1004 photos in this while loop MAIN: 2026-05-18 23:14:05,454 - INFO - /home/pi/Desktop/images/18052026/23/13/image_18052026_23_14_04_60169.jpg MAIN: 2026-05-18 23:14:05,454 - INFO - duration: 0.9460499300039373 MAIN: 2026-05-18 23:15: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-05-18 23:15:05,640 - INFO - taking picture MAIN: 2026-05-18 23:15:05,640 - INFO - we take 1005 photos in this while loop MAIN: 2026-05-18 23:15:05,640 - INFO - /home/pi/Desktop/images/18052026/23/14/image_18052026_23_15_04_60206.jpg MAIN: 2026-05-18 23:15:05,641 - INFO - duration: 0.9260403189982753 MAIN: 2026-05-18 23:16:05,231 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:16:05,924 - INFO - taking picture MAIN: 2026-05-18 23:16:05,924 - INFO - we take 1006 photos in this while loop MAIN: 2026-05-18 23:16:05,924 - INFO - /home/pi/Desktop/images/18052026/23/15/image_18052026_23_16_05_60222.jpg MAIN: 2026-05-18 23:16:05,925 - INFO - duration: 0.9874995819991454 MAIN: 2026-05-18 23:17:05,421 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:17:06,067 - INFO - taking picture MAIN: 2026-05-18 23:17:06,067 - INFO - we take 1007 photos in this while loop MAIN: 2026-05-18 23:17:06,067 - INFO - /home/pi/Desktop/images/18052026/23/16/image_18052026_23_17_05_60226.jpg MAIN: 2026-05-18 23:17:06,067 - INFO - duration: 0.9039868600084446 MAIN: 2026-05-18 23:18:05,264 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:18:05,911 - INFO - taking picture MAIN: 2026-05-18 23:18:05,911 - INFO - we take 1008 photos in this while loop MAIN: 2026-05-18 23:18:05,911 - INFO - /home/pi/Desktop/images/18052026/23/17/image_18052026_23_18_05_59837.jpg MAIN: 2026-05-18 23:18:05,911 - INFO - duration: 0.9110869209980592 MAIN: 2026-05-18 23:19: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-05-18 23:19:05,615 - INFO - taking picture MAIN: 2026-05-18 23:19:05,615 - INFO - we take 1009 photos in this while loop MAIN: 2026-05-18 23:19:05,615 - INFO - /home/pi/Desktop/images/18052026/23/18/image_18052026_23_19_04_59706.jpg MAIN: 2026-05-18 23:19:05,615 - INFO - duration: 0.9089146379992599 MAIN: 2026-05-18 23:20: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-05-18 23:20:05,628 - INFO - taking picture MAIN: 2026-05-18 23:20:05,629 - INFO - we take 1010 photos in this while loop MAIN: 2026-05-18 23:20:05,629 - INFO - /home/pi/Desktop/images/18052026/23/19/image_18052026_23_20_04_60032.jpg MAIN: 2026-05-18 23:20:05,629 - INFO - duration: 0.8901272960065398 MAIN: 2026-05-18 23:21:04,796 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:21:05,442 - INFO - taking picture MAIN: 2026-05-18 23:21:05,443 - INFO - we take 1011 photos in this while loop MAIN: 2026-05-18 23:21:05,443 - INFO - /home/pi/Desktop/images/18052026/23/20/image_18052026_23_21_04_59796.jpg MAIN: 2026-05-18 23:21:05,443 - INFO - duration: 0.9072516080050264 MAIN: 2026-05-18 23:22: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-05-18 23:22:05,390 - INFO - taking picture MAIN: 2026-05-18 23:22:05,390 - INFO - we take 1012 photos in this while loop MAIN: 2026-05-18 23:22:05,390 - INFO - /home/pi/Desktop/images/18052026/23/21/image_18052026_23_22_04_59949.jpg MAIN: 2026-05-18 23:22:05,390 - INFO - duration: 0.9052311670093331 MAIN: 2026-05-18 23:23: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-05-18 23:23:05,334 - INFO - taking picture MAIN: 2026-05-18 23:23:05,334 - INFO - we take 1013 photos in this while loop MAIN: 2026-05-18 23:23:05,334 - INFO - /home/pi/Desktop/images/18052026/23/22/image_18052026_23_23_04_59940.jpg MAIN: 2026-05-18 23:23:05,335 - INFO - duration: 0.9087062920007156 MAIN: 2026-05-18 23:24: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-05-18 23:24:05,410 - INFO - taking picture MAIN: 2026-05-18 23:24:05,410 - INFO - we take 1014 photos in this while loop MAIN: 2026-05-18 23:24:05,410 - INFO - /home/pi/Desktop/images/18052026/23/23/image_18052026_23_24_04_60072.jpg MAIN: 2026-05-18 23:24:05,410 - INFO - duration: 0.9121539170009783 MAIN: 2026-05-18 23:25: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-05-18 23:25:05,503 - INFO - taking picture MAIN: 2026-05-18 23:25:05,503 - INFO - we take 1015 photos in this while loop MAIN: 2026-05-18 23:25:05,503 - INFO - /home/pi/Desktop/images/18052026/23/24/image_18052026_23_25_04_60134.jpg MAIN: 2026-05-18 23:25:05,503 - INFO - duration: 0.8707189440028742 MAIN: 2026-05-18 23:26: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-05-18 23:26:05,430 - INFO - taking picture MAIN: 2026-05-18 23:26:05,430 - INFO - we take 1016 photos in this while loop MAIN: 2026-05-18 23:26:05,430 - INFO - /home/pi/Desktop/images/18052026/23/25/image_18052026_23_26_04_59879.jpg MAIN: 2026-05-18 23:26:05,430 - INFO - duration: 0.9178173239924945 MAIN: 2026-05-18 23:27:04,862 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:27:05,508 - INFO - taking picture MAIN: 2026-05-18 23:27:05,508 - INFO - we take 1017 photos in this while loop MAIN: 2026-05-18 23:27:05,508 - INFO - /home/pi/Desktop/images/18052026/23/26/image_18052026_23_27_04_60084.jpg MAIN: 2026-05-18 23:27:05,508 - INFO - duration: 0.9107388010015711 MAIN: 2026-05-18 23:28: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-05-18 23:28:05,494 - INFO - taking picture MAIN: 2026-05-18 23:28:05,494 - INFO - we take 1018 photos in this while loop MAIN: 2026-05-18 23:28:05,494 - INFO - /home/pi/Desktop/images/18052026/23/27/image_18052026_23_28_04_60010.jpg MAIN: 2026-05-18 23:28:05,494 - INFO - duration: 0.8866113719996065 MAIN: 2026-05-18 23:29: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-05-18 23:29:05,448 - INFO - taking picture MAIN: 2026-05-18 23:29:05,448 - INFO - we take 1019 photos in this while loop MAIN: 2026-05-18 23:29:05,448 - INFO - /home/pi/Desktop/images/18052026/23/28/image_18052026_23_29_04_59941.jpg MAIN: 2026-05-18 23:29:05,449 - INFO - duration: 0.8996668850013521 MAIN: 2026-05-18 23:30: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-05-18 23:30:05,554 - INFO - taking picture MAIN: 2026-05-18 23:30:05,555 - INFO - we take 1020 photos in this while loop MAIN: 2026-05-18 23:30:05,555 - INFO - /home/pi/Desktop/images/18052026/23/29/image_18052026_23_30_04_60096.jpg MAIN: 2026-05-18 23:30:05,555 - INFO - duration: 0.909581005005748 MAIN: 2026-05-18 23:31: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-05-18 23:31:05,550 - INFO - taking picture MAIN: 2026-05-18 23:31:05,551 - INFO - we take 1021 photos in this while loop MAIN: 2026-05-18 23:31:05,551 - INFO - /home/pi/Desktop/images/18052026/23/30/image_18052026_23_31_04_59993.jpg MAIN: 2026-05-18 23:31:05,551 - INFO - duration: 0.9119987619924359 MAIN: 2026-05-18 23:32: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-05-18 23:32:05,610 - INFO - taking picture MAIN: 2026-05-18 23:32:05,610 - INFO - we take 1022 photos in this while loop MAIN: 2026-05-18 23:32:05,611 - INFO - /home/pi/Desktop/images/18052026/23/31/image_18052026_23_32_04_60063.jpg MAIN: 2026-05-18 23:32:05,611 - INFO - duration: 0.9081652360036969 MAIN: 2026-05-18 23:33: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-05-18 23:33:05,519 - INFO - taking picture MAIN: 2026-05-18 23:33:05,519 - INFO - we take 1023 photos in this while loop MAIN: 2026-05-18 23:33:05,519 - INFO - /home/pi/Desktop/images/18052026/23/32/image_18052026_23_33_04_59890.jpg MAIN: 2026-05-18 23:33:05,519 - INFO - duration: 0.9264624850038672 MAIN: 2026-05-18 23:34:04,814 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:34:05,461 - INFO - taking picture MAIN: 2026-05-18 23:34:05,462 - INFO - we take 1024 photos in this while loop MAIN: 2026-05-18 23:34:05,462 - INFO - /home/pi/Desktop/images/18052026/23/33/image_18052026_23_34_04_59957.jpg MAIN: 2026-05-18 23:34:05,462 - INFO - duration: 0.9110760470066452 MAIN: 2026-05-18 23:35: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-05-18 23:35:05,694 - INFO - taking picture MAIN: 2026-05-18 23:35:05,694 - INFO - we take 1025 photos in this while loop MAIN: 2026-05-18 23:35:05,694 - INFO - /home/pi/Desktop/images/18052026/23/34/image_18052026_23_35_05_60244.jpg MAIN: 2026-05-18 23:35:05,695 - INFO - duration: 0.8991468110034475 MAIN: 2026-05-18 23:36:05,199 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:36:05,895 - INFO - taking picture MAIN: 2026-05-18 23:36:05,895 - INFO - we take 1026 photos in this while loop MAIN: 2026-05-18 23:36:05,895 - INFO - /home/pi/Desktop/images/18052026/23/35/image_18052026_23_36_05_60127.jpg MAIN: 2026-05-18 23:36:05,896 - INFO - duration: 0.9721935879933881 MAIN: 2026-05-18 23:37:05,408 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:37:06,093 - INFO - taking picture MAIN: 2026-05-18 23:37:06,094 - INFO - we take 1027 photos in this while loop MAIN: 2026-05-18 23:37:06,094 - INFO - /home/pi/Desktop/images/18052026/23/36/image_18052026_23_37_05_60199.jpg MAIN: 2026-05-18 23:37:06,094 - INFO - duration: 0.971428302989807 MAIN: 2026-05-18 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-05-18 23:38:05,926 - INFO - taking picture MAIN: 2026-05-18 23:38:05,926 - INFO - we take 1028 photos in this while loop MAIN: 2026-05-18 23:38:05,926 - INFO - /home/pi/Desktop/images/18052026/23/37/image_18052026_23_38_05_59890.jpg MAIN: 2026-05-18 23:38:05,926 - INFO - duration: 0.9126086550095351 MAIN: 2026-05-18 23:39: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-05-18 23:39:05,848 - INFO - taking picture MAIN: 2026-05-18 23:39:05,848 - INFO - we take 1029 photos in this while loop MAIN: 2026-05-18 23:39:05,848 - INFO - /home/pi/Desktop/images/18052026/23/38/image_18052026_23_39_05_59916.jpg MAIN: 2026-05-18 23:39:05,848 - INFO - duration: 0.9182712620095117 MAIN: 2026-05-18 23:40:05,159 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:40:05,851 - INFO - taking picture MAIN: 2026-05-18 23:40:05,851 - INFO - we take 1030 photos in this while loop MAIN: 2026-05-18 23:40:05,851 - INFO - /home/pi/Desktop/images/18052026/23/39/image_18052026_23_40_05_59987.jpg MAIN: 2026-05-18 23:40:05,851 - INFO - duration: 0.9336822799959918 MAIN: 2026-05-18 23:41: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-05-18 23:41:05,798 - INFO - taking picture MAIN: 2026-05-18 23:41:05,799 - INFO - we take 1031 photos in this while loop MAIN: 2026-05-18 23:41:05,799 - INFO - /home/pi/Desktop/images/18052026/23/40/image_18052026_23_41_05_59983.jpg MAIN: 2026-05-18 23:41:05,799 - INFO - duration: 0.8983568549883785 MAIN: 2026-05-18 23:42: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-05-18 23:42:05,672 - INFO - taking picture MAIN: 2026-05-18 23:42:05,673 - INFO - we take 1032 photos in this while loop MAIN: 2026-05-18 23:42:05,673 - INFO - /home/pi/Desktop/images/18052026/23/41/image_18052026_23_42_05_59850.jpg MAIN: 2026-05-18 23:42:05,673 - INFO - duration: 0.9212065510073444 MAIN: 2026-05-18 23:43:04,745 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:43:05,395 - INFO - taking picture MAIN: 2026-05-18 23:43:05,395 - INFO - we take 1033 photos in this while loop MAIN: 2026-05-18 23:43:05,396 - INFO - /home/pi/Desktop/images/18052026/23/42/image_18052026_23_43_04_59724.jpg MAIN: 2026-05-18 23:43:05,396 - INFO - duration: 0.9191713710024487 MAIN: 2026-05-18 23:44:04,609 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:44:05,255 - INFO - taking picture MAIN: 2026-05-18 23:44:05,255 - INFO - we take 1034 photos in this while loop MAIN: 2026-05-18 23:44:05,255 - INFO - /home/pi/Desktop/images/18052026/23/43/image_18052026_23_44_04_59879.jpg MAIN: 2026-05-18 23:44:05,255 - INFO - duration: 0.8993880329944659 MAIN: 2026-05-18 23:45:05,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-05-18 23:45:06,351 - INFO - taking picture MAIN: 2026-05-18 23:45:06,351 - INFO - we take 1035 photos in this while loop MAIN: 2026-05-18 23:45:06,351 - INFO - /home/pi/Desktop/images/18052026/23/44/image_18052026_23_45_05_61082.jpg MAIN: 2026-05-18 23:45:06,351 - INFO - duration: 0.9129030719923321 MAIN: 2026-05-18 23:46:05,536 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:46:06,186 - INFO - taking picture MAIN: 2026-05-18 23:46:06,186 - INFO - we take 1036 photos in this while loop MAIN: 2026-05-18 23:46:06,186 - INFO - /home/pi/Desktop/images/18052026/23/45/image_18052026_23_46_05_59836.jpg MAIN: 2026-05-18 23:46:06,186 - INFO - duration: 0.9117551590024959 MAIN: 2026-05-18 23:47: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-05-18 23:47:05,971 - INFO - taking picture MAIN: 2026-05-18 23:47:05,971 - INFO - we take 1037 photos in this while loop MAIN: 2026-05-18 23:47:05,972 - INFO - /home/pi/Desktop/images/18052026/23/46/image_18052026_23_47_05_59781.jpg MAIN: 2026-05-18 23:47:05,972 - INFO - duration: 0.9152520289935637 MAIN: 2026-05-18 23:48: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-05-18 23:48:05,963 - INFO - taking picture MAIN: 2026-05-18 23:48:05,964 - INFO - we take 1038 photos in this while loop MAIN: 2026-05-18 23:48:05,964 - INFO - /home/pi/Desktop/images/18052026/23/47/image_18052026_23_48_05_59996.jpg MAIN: 2026-05-18 23:48:05,964 - INFO - duration: 0.9112845180061413 MAIN: 2026-05-18 23:49:05,276 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:49:05,923 - INFO - taking picture MAIN: 2026-05-18 23:49:05,923 - INFO - we take 1039 photos in this while loop MAIN: 2026-05-18 23:49:05,923 - INFO - /home/pi/Desktop/images/18052026/23/48/image_18052026_23_49_05_59923.jpg MAIN: 2026-05-18 23:49:05,924 - INFO - duration: 0.9476110099931248 MAIN: 2026-05-18 23:50:05,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-05-18 23:50:06,365 - INFO - taking picture MAIN: 2026-05-18 23:50:06,365 - INFO - we take 1040 photos in this while loop MAIN: 2026-05-18 23:50:06,365 - INFO - /home/pi/Desktop/images/18052026/23/49/image_18052026_23_50_05_60408.jpg MAIN: 2026-05-18 23:50:06,365 - INFO - duration: 0.9808200360130286 MAIN: 2026-05-18 23:51:05,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-05-18 23:51:06,296 - INFO - taking picture MAIN: 2026-05-18 23:51:06,297 - INFO - we take 1041 photos in this while loop MAIN: 2026-05-18 23:51:06,297 - INFO - /home/pi/Desktop/images/18052026/23/50/image_18052026_23_51_05_59996.jpg MAIN: 2026-05-18 23:51:06,297 - INFO - duration: 0.9166502440057229 MAIN: 2026-05-18 23:52:05,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-05-18 23:52:06,428 - INFO - taking picture MAIN: 2026-05-18 23:52:06,428 - INFO - we take 1042 photos in this while loop MAIN: 2026-05-18 23:52:06,428 - INFO - /home/pi/Desktop/images/18052026/23/51/image_18052026_23_52_05_60131.jpg MAIN: 2026-05-18 23:52:06,428 - INFO - duration: 0.9164816440024879 MAIN: 2026-05-18 23:53:04,609 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:53:05,256 - INFO - taking picture MAIN: 2026-05-18 23:53:05,256 - INFO - we take 1043 photos in this while loop MAIN: 2026-05-18 23:53:05,256 - INFO - /home/pi/Desktop/images/18052026/23/52/image_18052026_23_53_04_58826.jpg MAIN: 2026-05-18 23:53:05,256 - INFO - duration: 0.9177065529947868 MAIN: 2026-05-18 23:54:05,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-05-18 23:54:06,428 - INFO - taking picture MAIN: 2026-05-18 23:54:06,428 - INFO - we take 1044 photos in this while loop MAIN: 2026-05-18 23:54:06,428 - INFO - /home/pi/Desktop/images/18052026/23/53/image_18052026_23_54_05_61130.jpg MAIN: 2026-05-18 23:54:06,428 - INFO - duration: 0.9586571310064755 MAIN: 2026-05-18 23:55: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-05-18 23:55:05,355 - INFO - taking picture MAIN: 2026-05-18 23:55:05,355 - INFO - we take 1045 photos in this while loop MAIN: 2026-05-18 23:55:05,355 - INFO - /home/pi/Desktop/images/18052026/23/54/image_18052026_23_55_04_58982.jpg MAIN: 2026-05-18 23:55:05,355 - INFO - duration: 0.9028711819992168 MAIN: 2026-05-18 23:56: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-05-18 23:56:05,260 - INFO - taking picture MAIN: 2026-05-18 23:56:05,260 - INFO - we take 1046 photos in this while loop MAIN: 2026-05-18 23:56:05,260 - INFO - /home/pi/Desktop/images/18052026/23/55/image_18052026_23_56_04_59900.jpg MAIN: 2026-05-18 23:56:05,260 - INFO - duration: 0.9075094259897014 MAIN: 2026-05-18 23:57:04,609 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:57:05,254 - INFO - taking picture MAIN: 2026-05-18 23:57:05,254 - INFO - we take 1047 photos in this while loop MAIN: 2026-05-18 23:57:05,254 - INFO - /home/pi/Desktop/images/18052026/23/56/image_18052026_23_57_04_59975.jpg MAIN: 2026-05-18 23:57:05,254 - INFO - duration: 0.925975449004909 MAIN: 2026-05-18 23:58: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-05-18 23:58:05,261 - INFO - taking picture MAIN: 2026-05-18 23:58:05,262 - INFO - we take 1048 photos in this while loop MAIN: 2026-05-18 23:58:05,262 - INFO - /home/pi/Desktop/images/18052026/23/57/image_18052026_23_58_04_60026.jpg MAIN: 2026-05-18 23:58:05,262 - INFO - duration: 0.9076435489987489 MAIN: 2026-05-18 23:59:05,768 - INFO - Driver Info: Driver name : uvcvideo Card type : Arducam IMX477 HQ Camera: Arduc Bus info : usb-0000:01:00.0-1.4 Driver version : 5.4.79 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : Arducam IMX477 HQ Camera: Arduc Serial : UC517 Bus info : usb-0000:01:00.0-1.4 Media version : 5.4.79 Hardware revision: 0x00000100 (256) Driver version : 5.4.79 Interface Info: ID : 0x03000002 Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : Arducam IMX477 HQ Camera: Arduc Function : V4L2 I/O Flags : default Pad 0x01000007 : 0: Sink Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 3840/2160 Pixel Format : 'MJPG' (Motion-JPEG) Field : None Bytes per Line : 0 Size Image : 16589389 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 3840, Height 2160 Default : Left 0, Top 0, Width 3840, Height 2160 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 20.000 (20/1) Read buffers : 0 brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0 contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=128 step=1 default=64 value=64 hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100 gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2 white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3 backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=157 flags=inactive exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 focus_auto 0x009a090c (bool) : default=1 value=1 MAIN: 2026-05-18 23:59:06,459 - INFO - taking picture MAIN: 2026-05-18 23:59:06,459 - INFO - we take 1049 photos in this while loop MAIN: 2026-05-18 23:59:06,459 - INFO - /home/pi/Desktop/images/18052026/23/58/image_18052026_23_59_05_61152.jpg MAIN: 2026-05-18 23:59:06,460 - INFO - duration: 0.952434947990696